summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Close #14648: Compute correctly maxchar in str.format() for substrinVictor Stinner2012-04-231-0/+31
|
* fix instance dicts with str subclasses (#13903)Benjamin Peterson2012-04-231-1/+5
|
* don't make shared keys with dict subclassesBenjamin Peterson2012-04-231-1/+1
|
* Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson2012-04-234-777/+1281
| | | | Patch from Mark Shannon.
* Issue #14630: Merge fix from 3.2.Mark Dickinson2012-04-201-3/+1
|\
| * Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of ↵Mark Dickinson2012-04-201-3/+1
| | | | | | | | an int subclass.
* | Issue #14339: Improve speed of bin, oct and hex builtins. Patch by Serhiy ↵Mark Dickinson2012-04-201-26/+31
| | | | | | | | Storchaka (with minor modifications).
* | Issue #14385: Support other types than dict for __builtins__Victor Stinner2012-04-181-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 Peterson2012-04-181-2/+4
|\ \ | |/
| * SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ↵Benjamin Peterson2012-04-181-2/+4
| | | | | | | | (closes #14612)
* | Issue #14386: Expose the dict_proxy internal type as types.MappingProxyTypeVictor Stinner2012-04-151-60/+110
| |
* | Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-143-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 Cannon2012-04-131-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 Peterson2012-04-092-0/+4
|\ \ | |/
| * merge 3.1 (#14509)Benjamin Peterson2012-04-092-0/+4
| |\
| | * fix build without Py_DEBUG and DNDEBUG (closes #14509)Benjamin Peterson2012-04-092-0/+4
| | |
* | | Close #14249: Use bit shifts instead of an union, it's more efficient.Victor Stinner2012-04-051-27/+34
| | | | | | | | | | | | Patch written by Serhiy Storchaka
* | | Close #14249: Use an union instead of a long to short pointer to avoid aliasingVictor Stinner2012-04-051-19/+25
| | | | | | | | | | | | issue. Speed up UTF-16 by 20%.
* | | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵Antoine Pitrou2012-04-0410-32/+32
| | | | | | | | | | | | the stable ABI.
* | | Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson2012-04-0310-6/+509
| | |
* | | merge 3.2Benjamin Peterson2012-04-011-13/+9
|\ \ \ | |/ /
| * | adjust formattingBenjamin Peterson2012-04-011-5/+5
| | |
| * | remove extraneous conditionBenjamin Peterson2012-04-011-6/+4
| | |
| * | merge headsBenjamin Peterson2012-04-011-2/+6
| |\ \
| * | | be consistent with rest of functionBenjamin Peterson2012-04-011-2/+1
| | | |
* | | | Issue #13019: Fix potential reference leaks in bytearray.extend().Antoine Pitrou2012-04-011-2/+6
|\ \ \ \ | | |/ / | |/| | | | | | Patch by Suman Saha.
| * | | Issue #13019: Fix potential reference leaks in bytearray.extend().Antoine Pitrou2012-04-011-2/+6
| |/ / | | | | | | | | | Patch by Suman Saha.
* | | Issue #14435: Remove special block allocation code from floatobject.cKristján Valur Jónsson2012-03-301-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() functionsVictor Stinner2012-03-262-118/+105
| | | | | | | | | | | | | | | These functions simplify the usage of static constant Unicode strings. Generalize the usage of _Py_Identifier in ceval.c and typeobject.c.
* | | grammarBenjamin Peterson2012-03-261-1/+1
| | |
* | | merge 3.2Benjamin Peterson2012-03-261-4/+0
|\ \ \ | |/ /
| * | kill this terribly outdated commentBenjamin Peterson2012-03-261-4/+0
| | |
* | | Issue #14387: Do not include accu.h from Python.h.Antoine Pitrou2012-03-224-0/+4
|\ \ \ | |/ /
| * | Issue #14387: Do not include accu.h from Python.h.Antoine Pitrou2012-03-223-0/+3
| | |
* | | Micro-optimize PyObject_GetAttrString()Victor Stinner2012-03-221-1/+1
| | | | | | | | | | | | w cannot be NULL so use Py_DECREF() instead of Py_XDECREF().
* | | long() -> int()Benjamin Peterson2012-03-211-2/+2
| | |
* | | make _PyNumber_ConvertIntegralToInt static, since it's only used in abstract.cBenjamin Peterson2012-03-211-4/+10
| | |
* | | rewrite this function, which was still accounting for classic classesBenjamin Peterson2012-03-211-24/+12
| | |
* | | correctly lookup __trunc__ in int() constructorBenjamin Peterson2012-03-211-2/+3
| | |
* | | some more identifier goodnessBenjamin Peterson2012-03-211-27/+8
| | |
* | | make extra arguments to object.__init__/__new__ to errors in most cases ↵Benjamin Peterson2012-03-171-35/+10
| | | | | | | | | | | | (finishes #1683368)
* | | simply this slightlyBenjamin Peterson2012-03-171-9/+6
| | |
* | | merge 3.2 (#14334)Benjamin Peterson2012-03-161-0/+7
|\ \ \ | |/ /
| * | check to make sure the attribute is a string (#14334)Benjamin Peterson2012-03-161-0/+7
| | |
* | | spaceBenjamin Peterson2012-03-151-1/+1
| | |
* | | perform yield from delegation by repeating YIELD_FROM opcode (closes #14230)Benjamin Peterson2012-03-152-124/+59
| | | | | | | | | | | | | | | | | | | | | This allows generators that are using yield from to be seen by debuggers. It also kills the f_yieldfrom field on frame objects. Patch mostly from Mark Shannon with a few tweaks by me.
* | | Close #14232: catch mmap() failure in new_arena() of obmallocVictor Stinner2012-03-091-3/+8
| | |
* | | refactor and avoid warningsBenjamin Peterson2012-03-091-7/+5
| | |
* | | Issue #14211: _PyObject_GenericSetAttrWithDict() keeps a strong reference toVictor Stinner2012-03-081-4/+5
| | | | | | | | | | | | | | | the descriptor because it may be destroyed before being used, destroyed during the update of the dict for example.
* | | Close #14199: _PyType_Lookup() and super_getattro() keep a strong reference toVictor Stinner2012-03-081-0/+9
| | | | | | | | | | | | the type MRO to avoid a crash if the MRO is changed during the lookup.