Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Update Argument Clinic generated code for bpo-29878. (#1001) | bae6881b4215b2613ad08ef0dc7bed7743c2b8cc | Serhiy Storchaka | 2017-04-05 09:00:42 |
bpo-29762: More use "raise from None". (#569) | 5affd23e6f42125998724787025080a24839266e | Serhiy Storchaka | 2017-04-05 06:37:24 |
bpo-29549: Fixes docstring for str.index (#256) | 43ba8861e0ad044efafa46a7cc04e12ac5df640e | Lisa Roach | 2017-04-05 05:36:22 |
correct parse_qs and parse_qsl test case descriptions. (#968) | 257b980b316a5206ecf6c23b958e2b7c4df4f3de | Senthil Kumaran | 2017-04-05 04:19:43 |
bpo-29649: Improve struct.pack_into() boundary error messages (#424) | f78b119364b521307237a1484ba5f43f42300898 | Andrew Nester | 2017-04-04 10:46:25 |
bpo-29972: Skip tests known to fail on AIX (#979) | 5de85a17029356084b96db63e04d9eb150efd9c0 | Victor Stinner | 2017-04-04 08:35:15 |
bpo-29725: DOC: add text for arraysize in sqlite3.Cursor (#947) | 02e12138000da834f23719521a011fa93763384d | csabella | 2017-04-04 05:16:14 |
Remove obsolete declaration in tokenizer.h (#962) | cf1958af4c762c970d1f2fa0e92577f577774c22 | Jim Fasarakis-Hilliard | 2017-04-03 16:18:32 |
Correct typo (#976) | 8614b59910c0b3529891be164aee581eb729f1b3 | Angus Hollands | 2017-04-03 16:16:14 |
test_locale now ignores the DeprecationWarning (#977) | 9acc6a03f1fd684fce2755b3b22f7448ad4c1dd6 | Victor Stinner | 2017-04-03 16:09:55 |
Fix misleading documentation for math.exp. (#951) | 734125938d4653459593ebd28a0aec086efb1f27 | Mark Dickinson | 2017-04-02 15:30:04 |
bpo-19225: Add a table of warning names and missed exception names in C API doc (#881) | e8c763128fb459c5c98194e4312f31493c0f12df | cocoatomo | 2017-04-02 10:45:40 |
bpo-29654 : Support If-Modified-Since HTTP header (browser cache) (#298) | 351adda54bed3afbbf6db7725699679e68722d7d | Pierre Quentel | 2017-04-02 10:26:12 |
Minor spell fix and formatting fixes in urllib tests. (#959) | efbd4ea65dbb9f87b1afeec6a760802756badee5 | Senthil Kumaran | 2017-04-02 06:47:35 |
bpo-29957: change LBYL key lookup to dict.setdefault (#938) | 11fa3c7cd1b151e302d4eee0369cafbaf151c8fb | Michael Selik | 2017-04-02 06:02:31 |
bpo-26947: DOC: clarify wording on hashable in glossary (#948) | 64c887ab3a400cf91bde4f0c5ef69eacc88bc5e1 | csabella | 2017-04-02 02:50:47 |
bpo-29949: Fix set memory usage regression (GH-943) | e82cf8675bacd7a03de508ed11865fc2701dcef5 | INADA Naoki | 2017-04-01 08:20:25 |
Revert "bpo-29763: Use unittest cleanup in test_site (GH-841)" (GH-942) | cd815edf012dc6dd20dfeef91951270e96607616 | Zachary Ware | 2017-04-01 06:29:31 |
bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879) | 7bd8d3e794782582a4ad1c9749424fff86802c3e | s-sanjay | 2017-04-01 06:09:53 |
Add helpful explaination to test_password_manager tests. (#936) | 1f5425ff69ea0531d869b4f9fa28bd3f66ca3de7 | Senthil Kumaran | 2017-04-01 05:27:27 |
File | Lines added | Lines deleted |
---|---|---|
Objects/clinic/complexobject.c.h | 2 | 2 |
Objects/clinic/floatobject.c.h | 2 | 2 |
Objects/complexobject.c | 1 | 1 |
Objects/floatobject.c | 1 | 1 |
File Objects/clinic/complexobject.c.h changed (mode: 100644) (index b0b4c0e9c0..0cbfb793e1) | |||
... | ... | complex_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) | |
19 | 19 | PyObject *return_value = NULL; | PyObject *return_value = NULL; |
20 | 20 | static const char * const _keywords[] = {"real", "imag", NULL}; | static const char * const _keywords[] = {"real", "imag", NULL}; |
21 | 21 | static _PyArg_Parser _parser = {"|OO:complex", _keywords, 0}; | static _PyArg_Parser _parser = {"|OO:complex", _keywords, 0}; |
22 | PyObject *r = Py_False; | ||
22 | PyObject *r = _PyLong_Zero; | ||
23 | 23 | PyObject *i = NULL; | PyObject *i = NULL; |
24 | 24 | ||
25 | 25 | if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, | if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser, |
... | ... | complex_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) | |
31 | 31 | exit: | exit: |
32 | 32 | return return_value; | return return_value; |
33 | 33 | } | } |
34 | /*[clinic end generated code: output=74035493480ab5e5 input=a9049054013a1b77]*/ | ||
34 | /*[clinic end generated code: output=5017b2458bdc4ecd input=a9049054013a1b77]*/ |
File Objects/clinic/floatobject.c.h changed (mode: 100644) (index d2680b5e1f..d9ac39dd35) | |||
... | ... | static PyObject * | |
171 | 171 | float_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) | float_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) |
172 | 172 | { | { |
173 | 173 | PyObject *return_value = NULL; | PyObject *return_value = NULL; |
174 | PyObject *x = Py_False; | ||
174 | PyObject *x = _PyLong_Zero; | ||
175 | 175 | ||
176 | 176 | if ((type == &PyFloat_Type) && | if ((type == &PyFloat_Type) && |
177 | 177 | !_PyArg_NoKeywords("float", kwargs)) { | !_PyArg_NoKeywords("float", kwargs)) { |
... | ... | float___format__(PyObject *self, PyObject *arg) | |
313 | 313 | exit: | exit: |
314 | 314 | return return_value; | return return_value; |
315 | 315 | } | } |
316 | /*[clinic end generated code: output=a3dafb0f6c6f1514 input=a9049054013a1b77]*/ | ||
316 | /*[clinic end generated code: output=dc6b0b67a7e40c93 input=a9049054013a1b77]*/ |
File Objects/complexobject.c changed (mode: 100644) (index 9a416a873a..3bf37ee437) | |||
... | ... | This is equivalent to (real + imag*1j) where imag defaults to 0. | |
946 | 946 | ||
947 | 947 | static PyObject * | static PyObject * |
948 | 948 | complex_new_impl(PyTypeObject *type, PyObject *r, PyObject *i) | complex_new_impl(PyTypeObject *type, PyObject *r, PyObject *i) |
949 | /*[clinic end generated code: output=b6c7dd577b537dc1 input=e3d6b77ddcf280da]*/ | ||
949 | /*[clinic end generated code: output=b6c7dd577b537dc1 input=6f6b0bedba29bcb5]*/ | ||
950 | 950 | { | { |
951 | 951 | PyObject *tmp; | PyObject *tmp; |
952 | 952 | PyNumberMethods *nbr, *nbi = NULL; | PyNumberMethods *nbr, *nbi = NULL; |
File Objects/floatobject.c changed (mode: 100644) (index 87af0ba650..8c4fe74d1b) | |||
... | ... | Convert a string or number to a floating point number, if possible. | |
1619 | 1619 | ||
1620 | 1620 | static PyObject * | static PyObject * |
1621 | 1621 | float_new_impl(PyTypeObject *type, PyObject *x) | float_new_impl(PyTypeObject *type, PyObject *x) |
1622 | /*[clinic end generated code: output=ccf1e8dc460ba6ba input=c98d8e811ad2037a]*/ | ||
1622 | /*[clinic end generated code: output=ccf1e8dc460ba6ba input=540ee77c204ff87a]*/ | ||
1623 | 1623 | { | { |
1624 | 1624 | if (type != &PyFloat_Type) | if (type != &PyFloat_Type) |
1625 | 1625 | return float_subtype_new(type, x); /* Wimp out */ | return float_subtype_new(type, x); /* Wimp out */ |