Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Simplify partial.__new__. (#813) | 3c749fc867f69deac75f866d5c1ba0f60e54c1fa | Serhiy Storchaka | 2017-03-25 10:10:16 |
bpo-29862: Fix grammar in importlib.reload() exception (GH-809) | 9f0aa4843f8c26937d5817f27cac4aae9c0a034f | Mandeep Bhutani | 2017-03-25 04:51:21 |
bpo-29892: Fix wrong markup on doc-lib-functions (GH-802) | 29540cdf6c66df9f806375a95078c0c63192ef78 | NAKAMURA Osamu | 2017-03-25 02:55:08 |
bpo-28810: Document remaining bytecode changes in 3.6 (GH-651) | 8f9e1bbf2dbdf46a0bf920279568a31460043376 | Ivan Levkivskyi | 2017-03-24 21:05:04 |
bpo-29894: Deprecate returning an instance of complex subclass from __complex__. (#798) | 671079ef6063fe227460a6c3114625fb6282bbd0 | Serhiy Storchaka | 2017-03-24 19:28:43 |
bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805) | af7b9ec5c855366feef4c67dc492d64b3baf84ca | Serhiy Storchaka | 2017-03-24 18:51:53 |
bpo-29861: release references to multiprocessing Pool tasks (#743) | 8988945cdc27ffa86ba8c624e095b51c459f5154 | Antoine Pitrou | 2017-03-24 12:52:11 |
bpo-19930: The mode argument of os.makedirs() no longer affects the file (#799) | e304e33c16e060932d1e2cc8a030d42b02b429b5 | Serhiy Storchaka | 2017-03-24 11:27:42 |
doc: Fix small typos in library/multiprocessing (GH-698) | 5619ab2db3a6c62ffaa55e8826cf67b7459fc484 | Sylvain Bellemare | 2017-03-24 08:26:07 |
`make tags` fixes (GH-717) | 8a543c0bc7347d5b333f334d157bf4a7cd33c14a | Alex Dzyoba | 2017-03-24 08:23:43 |
faulthandler: Restore the old sigaltstack during teardown (#777) | 20fbf8accd494fd15b0fc4c84928178c71ead4d1 | Christophe Zeitouny | 2017-03-23 17:14:29 |
Use NULL rather than 0. (#778) | 0b3ec192259a65971001ce8f0de85a9c1e71d9c7 | Serhiy Storchaka | 2017-03-23 15:53:47 |
bpo-6532: Make the thread id an unsigned integer. (#781) | aefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5 | Serhiy Storchaka | 2017-03-23 13:48:39 |
bpo-29728: Provide socket.TCP_NOTSENT_LOWAT (#477) | 1e2147b9d75a64df370a9393c2b5b9d170dc0afd | Nathaniel J. Smith | 2017-03-23 03:56:55 |
Remove an outdated statement in execution model docs (GH-754) | fad7f1560669af1766c583c7ef242c55d8c8de41 | Ivan Levkivskyi | 2017-03-23 00:54:53 |
doc: minor fix for library/profile (GH-761) | bd3d8ba3b22da0bad018b53a3e6610ae03c5aa49 | INADA Naoki | 2017-03-22 07:56:36 |
fix function name in tabnanny documentation (GH-759) | 75b6cf879fab58c0576d5415eaf38d92bfd678ab | Jelle Zijlstra | 2017-03-22 06:53:57 |
bpo-29859: Fix error messages from return codes for pthread_* calls (GH-741) | d7fa6b259e00fca04dbf816bfcf4115fdda14bb7 | Daniel Birnstiel | 2017-03-21 13:06:06 |
bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748) | fff9a31a91283c39c363af219e595eab7d4da6f7 | Serhiy Storchaka | 2017-03-21 06:53:25 |
Don't use Py_SIZE for dict object. (#747) | c61ac1642d19f54c7b755098230967ad2e603180 | Serhiy Storchaka | 2017-03-21 06:52:38 |
File | Lines added | Lines deleted |
---|---|---|
Modules/_functoolsmodule.c | 2 | 8 |
File Modules/_functoolsmodule.c changed (mode: 100644) (index 592edbb614..567300e3f3) | |||
... | ... | partial_new(PyTypeObject *type, PyObject *args, PyObject *kw) | |
66 | 66 | Py_DECREF(pto); | Py_DECREF(pto); |
67 | 67 | return NULL; | return NULL; |
68 | 68 | } | } |
69 | if (pargs == NULL || PyTuple_GET_SIZE(pargs) == 0) { | ||
69 | if (pargs == NULL) { | ||
70 | 70 | pto->args = nargs; | pto->args = nargs; |
71 | Py_INCREF(nargs); | ||
72 | } | ||
73 | else if (PyTuple_GET_SIZE(nargs) == 0) { | ||
74 | pto->args = pargs; | ||
75 | Py_INCREF(pargs); | ||
76 | 71 | } | } |
77 | 72 | else { | else { |
78 | 73 | pto->args = PySequence_Concat(pargs, nargs); | pto->args = PySequence_Concat(pargs, nargs); |
74 | Py_DECREF(nargs); | ||
79 | 75 | if (pto->args == NULL) { | if (pto->args == NULL) { |
80 | Py_DECREF(nargs); | ||
81 | 76 | Py_DECREF(pto); | Py_DECREF(pto); |
82 | 77 | return NULL; | return NULL; |
83 | 78 | } | } |
84 | 79 | assert(PyTuple_Check(pto->args)); | assert(PyTuple_Check(pto->args)); |
85 | 80 | } | } |
86 | Py_DECREF(nargs); | ||
87 | 81 | ||
88 | 82 | if (pkw == NULL || PyDict_GET_SIZE(pkw) == 0) { | if (pkw == NULL || PyDict_GET_SIZE(pkw) == 0) { |
89 | 83 | if (kw == NULL) { | if (kw == NULL) { |