List of commits:
Subject Hash Author Date (UTC)
bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. (#501) 783d0c1a1c723733adcdf4249240246fc35a5bcb Serhiy Storchaka 2017-03-12 12:43:12
bpo-15695: Add PyAPI_FUNC() to _PyDict_SizeOf() declaration. (#639) bc44f045e6a801903bd7530a4fc5474e657832da Serhiy Storchaka 2017-03-12 12:15:54
bpo-26121: Revert to using the own implementations of lgamma and gamma on all platforms. (#637) 4125e5c60e24ffcff8031817dc60984335917f59 Serhiy Storchaka 2017-03-12 12:08:06
bpo-8256: Fixed possible failing or crashing input() (#517) c2cf12857187aa147c268651f10acd6da2c9cb74 Serhiy Storchaka 2017-03-12 11:50:36
bpo-26121: Use C library implementation for math functions erf() and erfc() on Windows. (#632) 4dadcd4ed7824c7904add78577e6a05864cfe493 Serhiy Storchaka 2017-03-12 11:39:22
bpo-29723: Add missing NEWS entry (#638) 27abb0e533a6f7ad195bd56b064c32164296a56e Nick Coghlan 2017-03-12 11:34:32
bpo-28692: Deprecate using non-integer value for selecting a plural form in gettext. (#507) f6595983e08fe20cf06a2535d74d912c6dbb044f Serhiy Storchaka 2017-03-12 11:15:01
bpo-20185: Convert the resource moduel to Argument Clinic. (#545) 1989763f0d0858ce6274f5e1d725b5b8da91a780 Serhiy Storchaka 2017-03-12 11:08:30
bpo-29723: Consistently configure sys.path[0] (#575) d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d Nick Coghlan 2017-03-12 10:38:32
bpo-29798: Handle git worktree in `make patchcheck` (#629) 6a6d090612dd7deaac2bc0399fad743e5e2db606 Nick Coghlan 2017-03-12 09:37:09
bpo-15695: Implemented StgDict.__sizeof__(). (#509) 8999caeb003ed292011e98b8a30746cce787a125 Serhiy Storchaka 2017-03-12 09:12:30
bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) 202fda55c2dffe27125703225e5af92254602dc6 Serhiy Storchaka 2017-03-12 08:10:47
bpo-20185: Convert the marshal module to Argument Clinic. (#541) 0767ad40bfe83525d2ba290cc6eb7c97ce01cdd6 Serhiy Storchaka 2017-03-12 07:20:15
bpo-29746: Update marshal docs to Python 3. (#547) c611a5b1d4fab0123bf622f06c3bfa510221dc32 Serhiy Storchaka 2017-03-12 06:53:22
bpo-29763: Use support.unlink instead of os.unlink (GH-624) 93710c152e6bcfffdf2f1f15bb5f75b013aef422 Zachary Ware 2017-03-12 04:10:07
bpo-29656: Handle PR branches in 'make patchcheck' (#302) 482f7a274fa52b7ba34ff308cd9acdcac9f41ba5 Nick Coghlan 2017-03-12 03:19:08
bpo-26121: Use C library implementation for math functions: (#515) 97553fdf9daa8231eb05a1ca9933a2b03b0bdad0 Serhiy Storchaka 2017-03-11 21:37:16
Only trigger AppVeyor on code or config changes (GH-611) c5d3bfea0b0bba34bc3cd517a12153e189c80556 Zachary Ware 2017-03-11 20:55:35
tempfile.rst: Fix some typos (GH-610) d3b8f98696b905367da3975f73b482bac380b51c Jelle Zijlstra 2017-03-11 17:34:55
bpo-20185: Convert float object implementation to Argument Clinic. (#543) b5c51d3dd95bbfde533655fb86ac0f96f771ba7b Serhiy Storchaka 2017-03-11 07:21:05
Commit 783d0c1a1c723733adcdf4249240246fc35a5bcb - bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. (#501)
FreeBSD is the only platforms with unsigned FD_SETSIZE.
Author: Serhiy Storchaka
Author date (UTC): 2017-03-12 12:43
Committer name: GitHub
Committer date (UTC): 2017-03-12 12:43
Parent(s): bc44f045e6a801903bd7530a4fc5474e657832da
Signer:
Signing key:
Signing status: N
Tree: 15745c18439463475dbc63be52fbad5fff4f6868
File Lines added Lines deleted
Include/fileobject.h 1 1
Modules/selectmodule.c 4 4
File Include/fileobject.h changed (mode: 100644) (index 6120e51ed0..1dde17e1ef)
... ... PyAPI_DATA(PyTypeObject) PyStdPrinter_Type;
39 39
40 40 /* A routine to check if a file descriptor can be select()-ed. */ /* A routine to check if a file descriptor can be select()-ed. */
41 41 #ifdef HAVE_SELECT #ifdef HAVE_SELECT
42 #define _PyIsSelectable_fd(FD) (((FD) >= 0) && ((FD) < FD_SETSIZE))
42 #define _PyIsSelectable_fd(FD) ((unsigned int)(FD) < (unsigned int)FD_SETSIZE)
43 43 #else #else
44 44 #define _PyIsSelectable_fd(FD) (1) #define _PyIsSelectable_fd(FD) (1)
45 45 #endif /* HAVE_SELECT */ #endif /* HAVE_SELECT */
File Modules/selectmodule.c changed (mode: 100644) (index 8bdf3359d4..6f71d58556)
... ... typedef struct {
68 68 static void static void
69 69 reap_obj(pylist fd2obj[FD_SETSIZE + 1]) reap_obj(pylist fd2obj[FD_SETSIZE + 1])
70 70 { {
71 int i;
72 for (i = 0; i < FD_SETSIZE + 1 && fd2obj[i].sentinel >= 0; i++) {
71 unsigned int i;
72 for (i = 0; i < (unsigned int)FD_SETSIZE + 1 && fd2obj[i].sentinel >= 0; i++) {
73 73 Py_CLEAR(fd2obj[i].obj); Py_CLEAR(fd2obj[i].obj);
74 74 } }
75 75 fd2obj[0].sentinel = -1; fd2obj[0].sentinel = -1;
 
... ... static int
83 83 seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1])
84 84 { {
85 85 int max = -1; int max = -1;
86 int index = 0;
86 unsigned int index = 0;
87 87 Py_ssize_t i; Py_ssize_t i;
88 88 PyObject* fast_seq = NULL; PyObject* fast_seq = NULL;
89 89 PyObject* o = NULL; PyObject* o = NULL;
 
... ... seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1])
120 120 FD_SET(v, set); FD_SET(v, set);
121 121
122 122 /* add object and its file descriptor to the list */ /* add object and its file descriptor to the list */
123 if (index >= FD_SETSIZE) {
123 if (index >= (unsigned int)FD_SETSIZE) {
124 124 PyErr_SetString(PyExc_ValueError, PyErr_SetString(PyExc_ValueError,
125 125 "too many file descriptors in select()"); "too many file descriptors in select()");
126 126 goto finally; goto finally;
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main