Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-30860: Fix a refleak. (#3506) | Eric Snow | 2017-09-11 | 1 | -12/+15 | |
| | | | | | | | | | | | | | | * Drop warnoptions from PyInterpreterState. * Drop xoptions from PyInterpreterState. * Don't set warnoptions and _xoptions again. * Decref after adding to sys.__dict__. * Drop an unused macro. * Check sys.xoptions *before* we delete it. | |||||
* | bpo-31373: remove overly strict float range checks (#3486) | Benjamin Peterson | 2017-09-10 | 1 | -2/+2 | |
| | | | | | This undoes a853a8ba7850381d49b284295dd6f0dc491dbe44 except for the pytime.c parts. We want to continue to allow IEEE 754 doubles larger than FLT_MAX to be rounded into finite floats. Tests were added to very this behavior. | |||||
* | replace custom table with pyctype (#3456) | Benjamin Peterson | 2017-09-08 | 1 | -12/+1 | |
| | ||||||
* | bpo-31393: Fix the use of PyUnicode_READY(). (#3451) | Serhiy Storchaka | 2017-09-08 | 3 | -6/+16 | |
| | ||||||
* | update all_name_chars comment after 9020ac7cce97dddad51b285fffc31fe4ddf60898 ↵ | Benjamin Peterson | 2017-09-07 | 1 | -2/+1 | |
| | | | | (#3452) | |||||
* | bpo-30860: Consolidate stateful runtime globals. (#3397) | Eric Snow | 2017-09-07 | 25 | -634/+206 | |
| | | | | | | | * group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py). | |||||
* | optimize all_name_chars (#3442) | Benjamin Peterson | 2017-09-07 | 1 | -14/+14 | |
| | | | Remove redundant PyUnicode_Check call. Use a static table for checking chars. | |||||
* | bpo-31344: Per-frame control of trace events (GH-3417) | Nick Coghlan | 2017-09-08 | 1 | -0/+4 | |
| | | | | | | | | | f_trace_lines: enable/disable line trace events f_trace_opcodes: enable/disable opcode trace events These are intended primarily for testing of the interpreter itself, as they make it much easier to emulate signals arriving at unfortunate times. | |||||
* | bpo-31373: fix undefined floating-point demotions (#3396) | Benjamin Peterson | 2017-09-07 | 1 | -4/+6 | |
| | ||||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 2 | -8/+0 | |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | |||||
* | Revert "bpo-30860: Consolidate stateful runtime globals." (#3379) | Eric Snow | 2017-09-05 | 4 | -171/+634 | |
| | | | Windows buildbots started failing due to include-related errors. | |||||
* | bpo-30860: Consolidate stateful runtime globals. (#2594) | Eric Snow | 2017-09-05 | 4 | -634/+171 | |
| | | | | | | | | | * group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py). | |||||
* | bpo-30662: fixed OrderedDict.__init__ docstring re PEP 468 (#2179) | Jonathan Eunice | 2017-09-05 | 1 | -2/+1 | |
| | | | | | | | | | | | | * fixed OrderedDict.__init__ docstring re PEP 468 * tightened comment and mirrored to C impl * added space after period per marco-buttu * preserved substituted for stable * drop references to Python 3.6 and PEP 468 | |||||
* | bpo-31347: _PyObject_FastCall_Prepend: do not call memcpy if args might not ↵ | Benjamin Peterson | 2017-09-04 | 1 | -3/+3 | |
| | | | | | be null (#3329) Passing NULL as the second argument to to memcpy is undefined behavior even if the size is 0. | |||||
* | Fix terminology in comment and add more design rationale. (#3335) | Raymond Hettinger | 2017-09-04 | 1 | -3/+10 | |
| | | | | | | * Fix terminology in comment and add more design rationale. * Fix extra space | |||||
* | bpo-28411: Remove "modules" field from Py_InterpreterState. (#1638) | Eric Snow | 2017-09-04 | 2 | -5/+10 | |
| | | | sys.modules is the one true source. | |||||
* | bpo-31279: Silence -Wstringop-overflow warning. (#3207) | Stefan Krah | 2017-08-25 | 1 | -1/+1 | |
| | ||||||
* | bpo-31095: fix potential crash during GC (GH-2974) | INADA Naoki | 2017-08-24 | 2 | -0/+9 | |
| | ||||||
* | bpo-31161: only check for parens error for SyntaxError (#3082) | Martijn Pieters | 2017-08-22 | 1 | -5/+10 | |
| | | | | Subclasses such as IndentError and TabError should not have this message applied. | |||||
* | bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. ↵ | Stefan Krah | 2017-08-21 | 3 | -6/+7 | |
| | | | | (#3157) | |||||
* | bpo-30721: Add missing '?' to new error message (GH-3131) | Sanyam Khurana | 2017-08-18 | 1 | -1/+1 | |
| | ||||||
* | bpo-30721: Show correct syntax hint in Py3 when using Py2 redirection syntax ↵ | Sanyam Khurana | 2017-08-18 | 1 | -0/+15 | |
| | | | | (#2345) | |||||
* | bpo-29304: Simplify dict lookup functions (GH-2407) | INADA Naoki | 2017-08-03 | 3 | -270/+132 | |
| | | | | * remove hashpos parameter from lookdict functions. * remove many duplicated code from lookdict functions. | |||||
* | bpo-30978: str.format_map() now passes key lookup exceptions through. (#2790) | Serhiy Storchaka | 2017-08-03 | 1 | -6/+10 | |
| | | | Previously any exception was replaced with a KeyError exception. | |||||
* | bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and ↵ | Zackery Spytz | 2017-07-31 | 1 | -1/+1 | |
| | | | | | PyEval_EvalCodeEx() (#2919) k + 1 was calculated with k = NULL. | |||||
* | bpo-22207: Add checks for possible integer overflows in unicodeobject.c. (#2623) | Serhiy Storchaka | 2017-07-11 | 1 | -6/+12 | |
| | | | Based on patch by Victor Stinner. | |||||
* | bpo-30878: Fix error message when keyword arguments are passed (#2635) | Sylvain | 2017-07-09 | 1 | -4/+4 | |
| | | | to staticmethod() and classmethod(). | |||||
* | bpo-30789: Use a single memory block for co_extra. (#2555) | Serhiy Storchaka | 2017-07-04 | 1 | -39/+15 | |
| | | | | | | * bpo-30789: Use a single memory block for co_extra. * Address review comments. | |||||
* | bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) | Serhiy Storchaka | 2017-07-03 | 12 | -186/+83 | |
| | | | | | the bare METH_FASTCALL be used for functions with positional-only parameters. | |||||
* | [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) | Serhiy Storchaka | 2017-06-28 | 1 | -0/+14 | |
| | | | | | | | Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters. | |||||
* | bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455) | Victor Stinner | 2017-06-28 | 1 | -1/+2 | |
| | | | Free also co_extra->ce_extras, not only co_extra. | |||||
* | bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285) | Serhiy Storchaka | 2017-06-27 | 1 | -27/+22 | |
| | | | | | Raise a ValueError if the second argument is NULL and the wchar_t\* string contains null characters. | |||||
* | bp-29304: Simplify dictobject.c (GH-2347) | INADA Naoki | 2017-06-24 | 1 | -6/+6 | |
| | | | replace `(i << 2) + 1` with `i*5` | |||||
* | bpo-30730: Prevent environment variables injection in subprocess on Windows. ↵ | Serhiy Storchaka | 2017-06-23 | 1 | -2/+2 | |
| | | | | | | (#2325) Prevent passing other invalid environment variables and command arguments. | |||||
* | bpo-29304: simplify lookdict_index() function. (GH-2273) | INADA Naoki | 2017-06-23 | 1 | -15/+6 | |
| | ||||||
* | bpo-30736: upgrade to Unicode 10.0 (#2344) | Benjamin Peterson | 2017-06-22 | 1 | -2262/+2295 | |
| | | | Straightforward. While we're at it, though, strip trailing whitespace from generated tables. | |||||
* | bpo-30604: clean up co_extra support (#2144) | Dino Viehland | 2017-06-21 | 1 | -12/+18 | |
| | | | bpo-30604: port fix from 3.6 dropping binary compatibility tweaks | |||||
* | bpo-30597: Show expected input in custom 'print' error message. (#2009) | Sanyam Khurana | 2017-06-20 | 1 | -3/+45 | |
| | ||||||
* | bpo-30600: Fix error messages (condition order in Argument Clinic) (#2051) | Sylvain | 2017-06-10 | 7 | -110/+110 | |
| | | | | | | | | The function '_PyArg_ParseStack()' and '_PyArg_UnpackStack' were failing (with error "XXX() takes Y argument (Z given)") before the function '_PyArg_NoStackKeywords()' was called. Thus, the latter did not raise its more meaningful error : "XXX() takes no keyword arguments". | |||||
* | bpo-30486: Allow setting cell value (#1840) | Lisa Roach | 2017-06-08 | 1 | -1/+10 | |
| | | | The cell_contents attribute of the cell object is now writable. | |||||
* | bpo-30592: Fixed error messages for some builtins. (#1996) | Serhiy Storchaka | 2017-06-08 | 5 | -6/+6 | |
| | | | | | Error messages when pass keyword arguments to some builtins that don't support keyword arguments contained double parenthesis: "()()". The regression was introduced by bpo-30534. | |||||
* | bpo-30534: Fixed error messages when pass keyword arguments (#1901) | Serhiy Storchaka | 2017-06-06 | 2 | -25/+26 | |
| | | | | | | | to functions implemented in C that don't support this. Also unified error messages for functions that don't take positional or keyword arguments. | |||||
* | bpo-30509: Clean up calling type slots. (#1883) | Serhiy Storchaka | 2017-06-01 | 1 | -68/+26 | |
| | | | Also speed up slot_sq_item. | |||||
* | bpo-27945: Fixed various segfaults with dict. (#1657) | Serhiy Storchaka | 2017-05-20 | 1 | -25/+43 | |
| | | | | Based on patches by Duane Griffin and Tim Mitchell. | |||||
* | bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. (#1652) | Serhiy Storchaka | 2017-05-20 | 1 | -6/+33 | |
| | | | | Based on patch by Eryk Sun. | |||||
* | bpo-28974: `object.__format__(x, '')` is now equivalent to `str(x)` (#506) | Serhiy Storchaka | 2017-05-13 | 1 | -9/+1 | |
| | | | | rather than `format(str(self), '')`. | |||||
* | bpo-30341: Improve _PyTrash_thread_destroy_chain() a little bit (#1545) | Xiang Zhang | 2017-05-13 | 1 | -2/+15 | |
| | | | | | * add a comment about why we need to increase trash_delete_nesting * move increase and decrese outside of the loop | |||||
* | bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480) | Xiang Zhang | 2017-05-10 | 1 | -3/+5 | |
| | ||||||
* | bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and ↵ | Serhiy Storchaka | 2017-04-22 | 1 | -1/+1 | |
| | | | | PySet_GET_SIZE. (#751) | |||||
* | bpo-29802: Fix reference counting in module-level struct functions (#1213) | Serhiy Storchaka | 2017-04-20 | 1 | -0/+1 | |
| | | | | when pass arguments of wrong type. |