Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) | Victor Stinner | 2018-08-03 | 1 | -2/+3 |
| | | | | sys_setcheckinterval() now uses a local variable to parse arguments, before writing into interp->check_interval. | ||||
* | bpo-24618: Add a check in the code constructor. (GH-8283) | Serhiy Storchaka | 2018-07-16 | 1 | -3/+15 |
| | | | Check that the size of the varnames tuple is enough at least for all arguments. | ||||
* | bpo-33299: Return an object itself for some types in _PyCode_ConstantKey(). ↵ | Serhiy Storchaka | 2018-04-19 | 1 | -4/+11 |
| | | | | (GH-6513) | ||||
* | bpo-32176: Set CO_NOFREE in the code object constructor (GH-4675) | Nick Coghlan | 2017-12-03 | 1 | -1/+9 |
| | | | | | | | | Previously, CO_NOFREE was set in the compiler, which meant it could end up being set incorrectly when code objects were created directly. Setting it in the constructor based on freevars and cellvars ensures it is always accurate, regardless of how the code object is defined. | ||||
* | 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 | 1 | -1/+5 |
| | |||||
* | update all_name_chars comment after 9020ac7cce97dddad51b285fffc31fe4ddf60898 ↵ | Benjamin Peterson | 2017-09-07 | 1 | -2/+1 |
| | | | | (#3452) | ||||
* | 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-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-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-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-12414: Update code_sizeof() to take in account co_extra memory. (#1168) | Dong-hee Na | 2017-04-20 | 1 | -2/+6 |
| | |||||
* | bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is (#376) | Brian Coleman | 2017-03-02 | 1 | -10/+14 |
| | | | | | | | | allocated. On PyMem_Realloc failure, _PyCode_SetExtra should free co_extra if co_extra->ce_extras could not be allocated. On PyMem_Realloc success, _PyCode_SetExtra should set all unused slots in co_extra->ce_extras to NULL. | ||||
* | Issue #29337: Fixed possible BytesWarning when compare the code objects. | Serhiy Storchaka | 2017-01-24 | 1 | -3/+3 |
|\ | | | | | | | Warnings could be emitted at compile time. | ||||
| * | Issue #29337: Fixed possible BytesWarning when compare the code objects. | Serhiy Storchaka | 2017-01-24 | 1 | -3/+3 |
| |\ | | | | | | | | | | Warnings could be emitted at compile time. | ||||
| | * | Issue #29337: Fixed possible BytesWarning when compare the code objects. | Serhiy Storchaka | 2017-01-24 | 1 | -3/+3 |
| | | | | | | | | | | | | Warnings could be emitted at compile time. | ||||
* | | | Issue #18896: Python function can now have more than 255 parameters. | Serhiy Storchaka | 2016-12-16 | 1 | -7/+13 |
| | | | | | | | | | | | | collections.namedtuple() now supports tuples with more than 255 elements. | ||||
* | | | Issue #19569: Compiler warnings are now emitted if use most of deprecated | Serhiy Storchaka | 2016-11-20 | 1 | -3/+2 |
|/ / | | | | | | | functions. | ||||
* | | Merge 3.5 (issue #27942) | Yury Selivanov | 2016-11-09 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | ssue #27942: Fix memory leak in codeobject.c | Yury Selivanov | 2016-11-09 | 1 | -0/+2 |
| | | |||||
* | | Issue #28350: String constants with null character no longer interned. | Serhiy Storchaka | 2016-10-04 | 1 | -8/+8 |
|\ \ | |/ | |||||
| * | Issue #28350: String constants with null character no longer interned. | Serhiy Storchaka | 2016-10-04 | 1 | -8/+8 |
| | | |||||
* | | Issue #27942: String constants now interned recursively in tuples and ↵ | Serhiy Storchaka | 2016-09-30 | 1 | -7/+45 |
|\ \ | |/ | | | | | frozensets. | ||||
| * | Issue #27942: String constants now interned recursively in tuples and ↵ | Serhiy Storchaka | 2016-09-30 | 1 | -7/+45 |
| | | | | | | | | frozensets. | ||||
| * | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 1 | -1/+1 |
| | | |||||
* | | Make PyCodeObject.co_extra even more private to force users through the ↵ | Brett Cannon | 2016-09-07 | 1 | -23/+31 |
| | | | | | | | | proper API. | ||||
* | | Change error return value to be more consistent with the rest of Python | Brett Cannon | 2016-09-07 | 1 | -5/+5 |
| | | |||||
* | | use a the bool type for a boolean variable | Benjamin Peterson | 2016-09-07 | 1 | -2/+4 |
| | | |||||
* | | Add the co_extra field and accompanying APIs to code objects. | Brett Cannon | 2016-09-07 | 1 | -0/+91 |
| | | | | | | | | This completes PEP 523. | ||||
* | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -1/+1 |
| | | |||||
* | | Issue #15984: Merge PyUnicode doc from 3.5 | Martin Panter | 2016-04-15 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc | Martin Panter | 2016-04-15 | 1 | -1/+1 |
| | | | | | | | | This affects documentation, code comments, and a debugging messages. | ||||
| * | code_richcompare() now uses the constants types | Victor Stinner | 2016-01-22 | 1 | -1/+138 |
| | | | | | | | | | | | | | | | | | | Issue #25843: When compiling code, don't merge constants if they are equal but have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now correctly compiled to two different functions: f1() returns 1 (int) and f2() returns 1.0 (int), even if 1 and 1.0 are equal. Add a new _PyCode_ConstantKey() private function. | ||||
* | | code_richcompare() now uses the constants types | Victor Stinner | 2016-01-22 | 1 | -1/+138 |
| | | | | | | | | | | | | | | | | | | Issue #25843: When compiling code, don't merge constants if they are equal but have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now correctly compiled to two different functions: f1() returns 1 (int) and f2() returns 1.0 (int), even if 1 and 1.0 are equal. Add a new _PyCode_ConstantKey() private function. | ||||
* | | co_lnotab supports negative line number delta | Victor Stinner | 2016-01-20 | 1 | -4/+7 |
|/ | | | | | | | | | | | | | | | | | | | | | Issue #26107: The format of the co_lnotab attribute of code objects changes to support negative line number delta. Changes: * assemble_lnotab(): if line number delta is less than -128 or greater than 127, emit multiple (offset_delta, lineno_delta) in co_lnotab * update functions decoding co_lnotab to use signed 8-bit integers - dis.findlinestarts() - PyCode_Addr2Line() - _PyCode_CheckLineNumber() - frame_setlineno() * update lnotab_notes.txt * increase importlib MAGIC_NUMBER to 3361 * document the change in What's New in Python 3.6 * cleanup also PyCode_Optimize() to use better variable names | ||||
* | Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. | Serhiy Storchaka | 2015-12-19 | 1 | -1/+1 |
| | | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined. | ||||
* | Issue #18874: PyCode_New() now ensures that the filename is a ready Unicode | Victor Stinner | 2013-10-10 | 1 | -0/+5 |
| | | | | | string. This change does nothing is most cases, but it is useful on Windows in some cases. | ||||
* | Issue #15456: Fix code __sizeof__ after #12399 change. | Martin v. Löwis | 2012-07-26 | 1 | -1/+17 |
| | | | | Patch by Serhiy Storchaka. | ||||
* | Make PyUnicode_Copy() private => _PyUnicode_Copy() | Victor Stinner | 2011-12-12 | 1 | -1/+1 |
| | | | | | | Undocument the function. Make also decode_utf8_errors() as private (static). | ||||
* | Reuse PyUnicode_Copy() in validate_and_copy_tuple() | Victor Stinner | 2011-10-11 | 1 | -3/+1 |
| | |||||
* | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -6/+9 |
| | |||||
* | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED. | Brian Curtin | 2011-08-10 | 1 | -2/+1 |
| | | | | The macro was introduced in #12724. | ||||
* | map cells to arg slots at code creation time (closes #12399) | Benjamin Peterson | 2011-06-25 | 1 | -29/+65 |
| | | | | This removes nested loops in PyEval_EvalCodeEx. | ||||
* | Remove arbitrary string length limits | Victor Stinner | 2011-01-05 | 1 | -2/+2 |
| | | | | | PyUnicode_FromFormat() and PyErr_Format() allocates a buffer of the needed size, it is no more a fixed-buffer of 500 bytes. | ||||
* | Issue #9566: use Py_ssize_t instead of int | Victor Stinner | 2011-01-04 | 1 | -2/+3 |
| | |||||
* | make hashes always the size of pointers; introduce Py_hash_t #9778 | Benjamin Peterson | 2010-10-17 | 1 | -2/+2 |
| | |||||
* | Remove unused label. | Georg Brandl | 2010-10-15 | 1 | -4/+0 |
| | |||||
* | Use locale encoding if Py_FileSystemDefaultEncoding is not set | Victor Stinner | 2010-10-15 | 1 | -13/+0 |
| | | | | | | | | * PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_DecodeFSDefault() use the locale encoding instead of UTF-8 if Py_FileSystemDefaultEncoding is NULL * redecode_filenames() functions and _Py_code_object_list (issue #9630) are no more needed: remove them | ||||
* | Issue #9630: Redecode filenames when setting the filesystem encoding | Victor Stinner | 2010-09-29 | 1 | -0/+17 |
| | | | | | | | | | | | | | | Redecode the filenames of: - all modules: __file__ and __path__ attributes - all code objects: co_filename attribute - sys.path - sys.meta_path - sys.executable - sys.path_importer_cache (keys) Keep weak references to all code objects until initfsencoding() is called, to be able to redecode co_filename attribute of all code objects. | ||||
* | Recorded merge of revisions 81029 via svnmerge from | Antoine Pitrou | 2010-05-09 | 1 | -453/+453 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ |