Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | change insertdict to not steal references (#13903) | Benjamin Peterson | 2012-04-30 | 1 | -13/+3 |
| | |||||
* | Issue #14687: Avoid an useless duplicated string in PyUnicode_Format() | Victor Stinner | 2012-04-30 | 1 | -11/+7 |
| | |||||
* | Issue #14687: Cleanup PyUnicode_Format() | Victor Stinner | 2012-04-30 | 1 | -54/+28 |
| | |||||
* | Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py. | Brett Cannon | 2012-04-29 | 1 | -1/+1 |
| | | | | Thanks to Eric Snow for the patch. | ||||
* | Fix my previous commit: bool is a long, restore the specical case for bool | Victor Stinner | 2012-04-27 | 1 | -1/+4 |
| | |||||
* | Simplify and optimize formatlong() | Victor Stinner | 2012-04-27 | 2 | -150/+128 |
| | | | | | | | * Remove _PyBytes_FormatLong(): inline it into formatlong() * the input type is always a long, so remove the code for bool * don't duplicate the string if the length does not change * Use PyUnicode_DATA() instead of _PyUnicode_AsString() | ||||
* | Optimize _PyUnicode_FindMaxChar() find pure ASCII strings | Victor Stinner | 2012-04-27 | 1 | -0/+3 |
| | |||||
* | decref cached keys on type deallocation (#13903) | Benjamin Peterson | 2012-04-27 | 1 | -3/+5 |
| | |||||
* | Check newly created consistency using _PyUnicode_CheckConsistency(str, 1) | Victor Stinner | 2012-04-27 | 2 | -10/+18 |
| | | | | | | * In debug mode, fill the string data with invalid characters * Simplify also reference counting in PyCodec_BackslashReplaceErrors() and PyCodec_XMLCharRefReplaceError() | ||||
* | _PyUnicode_CheckConsistency() ensures that the unicode string ends with a | Victor Stinner | 2012-04-25 | 1 | -2/+6 |
| | | | | null character | ||||
* | long_to_decimal_string() and _PyLong_Format() check the consistency of newly | Victor Stinner | 2012-04-25 | 1 | -0/+2 |
| | | | | created strings using _PyUnicode_CheckConsistency() in debug mode | ||||
* | distiguish between refusing to creating shared keys and error (#13903) | Benjamin Peterson | 2012-04-24 | 1 | -4/+7 |
| | |||||
* | Account for shared keys in type's __sizeof__ (#13903). | Martin v. Loewis | 2012-04-24 | 2 | -11/+30 |
| | |||||
* | merge 3.2 (#14658) | Benjamin Peterson | 2012-04-24 | 1 | -2/+3 |
|\ | |||||
| * | don't use a slot wrapper from a different special method (closes #14658) | Benjamin Peterson | 2012-04-24 | 1 | -2/+3 |
| | | | | | | | | | | | | | | This also alters the fix to #11603. Specifically, setting __repr__ to object.__str__ now raises a recursion RuntimeError when str() or repr() is called instead of silently bypassing the recursion. I believe this behavior is more correct. | ||||
* | | fix dict gc tracking (#13903) | Benjamin Peterson | 2012-04-24 | 1 | -0/+3 |
| | | |||||
* | | make pointer arith c89 | Benjamin Peterson | 2012-04-24 | 1 | -2/+2 |
| | | |||||
* | | use correct base ptr | Benjamin Peterson | 2012-04-23 | 1 | -1/+2 |
| | | |||||
* | | simplify and reformat | Benjamin Peterson | 2012-04-23 | 1 | -9/+11 |
| | | |||||
* | | Close #14648: Compute correctly maxchar in str.format() for substrin | Victor Stinner | 2012-04-23 | 1 | -0/+31 |
| | | |||||
* | | fix instance dicts with str subclasses (#13903) | Benjamin Peterson | 2012-04-23 | 1 | -1/+5 |
| | | |||||
* | | don't make shared keys with dict subclasses | Benjamin Peterson | 2012-04-23 | 1 | -1/+1 |
| | | |||||
* | | Implement PEP 412: Key-sharing dictionaries (closes #13903) | Benjamin Peterson | 2012-04-23 | 4 | -777/+1281 |
| | | | | | | | | Patch from Mark Shannon. | ||||
* | | Issue #14630: Merge fix from 3.2. | Mark Dickinson | 2012-04-20 | 1 | -3/+1 |
|\ \ | |/ | |||||
| * | Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of ↵ | Mark Dickinson | 2012-04-20 | 1 | -3/+1 |
| | | | | | | | | an int subclass. | ||||
* | | Issue #14339: Improve speed of bin, oct and hex builtins. Patch by Serhiy ↵ | Mark Dickinson | 2012-04-20 | 1 | -26/+31 |
| | | | | | | | | Storchaka (with minor modifications). | ||||
* | | Issue #14385: Support other types than dict for __builtins__ | Victor Stinner | 2012-04-18 | 1 | -4/+2 |
| | | | | | | | | | | | | It is now possible to use a custom type for the __builtins__ namespace, instead of a dict. It can be used for sandboxing for example. Raise also a NameError instead of ImportError if __build_class__ name if not found in __builtins__. | ||||
* | | merge 3.2 (#14612) | Benjamin Peterson | 2012-04-18 | 1 | -2/+4 |
|\ \ | |/ | |||||
| * | SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ↵ | Benjamin Peterson | 2012-04-18 | 1 | -2/+4 |
| | | | | | | | | (closes #14612) | ||||
* | | Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType | Victor Stinner | 2012-04-15 | 1 | -60/+110 |
| | | |||||
* | | Issue #2377: Make importlib the implementation of __import__(). | Brett Cannon | 2012-04-14 | 3 | -6/+41 |
| | | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__(). | ||||
* | | Issue #1559549: Add 'name' and 'path' attributes to ImportError. | Brett Cannon | 2012-04-13 | 1 | -2/+97 |
| | | | | | | | | | | | | | | | | Currently import does not use these attributes as they are planned for use by importlib (which will be another commit). Thanks to Filip Gruszczyński for the initial patch and Brian Curtin for refining it. | ||||
* | | merge 3.2 (#14509) | Benjamin Peterson | 2012-04-09 | 2 | -0/+4 |
|\ \ | |/ | |||||
| * | merge 3.1 (#14509) | Benjamin Peterson | 2012-04-09 | 2 | -0/+4 |
| |\ | |||||
| | * | fix build without Py_DEBUG and DNDEBUG (closes #14509) | Benjamin Peterson | 2012-04-09 | 2 | -0/+4 |
| | | | |||||
* | | | Close #14249: Use bit shifts instead of an union, it's more efficient. | Victor Stinner | 2012-04-05 | 1 | -27/+34 |
| | | | | | | | | | | | | Patch written by Serhiy Storchaka | ||||
* | | | Close #14249: Use an union instead of a long to short pointer to avoid aliasing | Victor Stinner | 2012-04-05 | 1 | -19/+25 |
| | | | | | | | | | | | | issue. Speed up UTF-16 by 20%. | ||||
* | | | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵ | Antoine Pitrou | 2012-04-04 | 10 | -32/+32 |
| | | | | | | | | | | | | the stable ABI. | ||||
* | | | Issue #14288: Serialization support for builtin iterators. | Kristján Valur Jónsson | 2012-04-03 | 10 | -6/+509 |
| | | | |||||
* | | | merge 3.2 | Benjamin Peterson | 2012-04-01 | 1 | -13/+9 |
|\ \ \ | |/ / | |||||
| * | | adjust formatting | Benjamin Peterson | 2012-04-01 | 1 | -5/+5 |
| | | | |||||
| * | | remove extraneous condition | Benjamin Peterson | 2012-04-01 | 1 | -6/+4 |
| | | | |||||
| * | | merge heads | Benjamin Peterson | 2012-04-01 | 1 | -2/+6 |
| |\ \ | |||||
| * | | | be consistent with rest of function | Benjamin Peterson | 2012-04-01 | 1 | -2/+1 |
| | | | | |||||
* | | | | Issue #13019: Fix potential reference leaks in bytearray.extend(). | Antoine Pitrou | 2012-04-01 | 1 | -2/+6 |
|\ \ \ \ | | |/ / | |/| | | | | | | Patch by Suman Saha. | ||||
| * | | | Issue #13019: Fix potential reference leaks in bytearray.extend(). | Antoine Pitrou | 2012-04-01 | 1 | -2/+6 |
| |/ / | | | | | | | | | | Patch by Suman Saha. | ||||
* | | | Issue #14435: Remove special block allocation code from floatobject.c | Kristján Valur Jónsson | 2012-03-30 | 1 | -131/+27 |
| | | | | | | | | | | | | | | | | | | PyFloatObjects are now allocated using PyObject_MALLOC like all other internal types, but maintain a limited freelist of objects at hand for performance. This will result in more consistent memory usage by Python. | ||||
* | | | Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions | Victor Stinner | 2012-03-26 | 2 | -118/+105 |
| | | | | | | | | | | | | | | | These functions simplify the usage of static constant Unicode strings. Generalize the usage of _Py_Identifier in ceval.c and typeobject.c. | ||||
* | | | grammar | Benjamin Peterson | 2012-03-26 | 1 | -1/+1 |
| | | | |||||
* | | | merge 3.2 | Benjamin Peterson | 2012-03-26 | 1 | -4/+0 |
|\ \ \ | |/ / |