4217 Commits (438106b66ef4d65746ddecfee3441eb4e20e679b)

Author SHA1 Message Date
Victor Stinner 438106b66e Issue #14687: Cleanup PyUnicode_Format() 14 years ago
Victor Stinner b5c3ea3af3 Issue #14687: Optimize str%args 14 years ago
Benjamin Peterson 7295c6a871 fix calling the classmethod descriptor directly (closes #14699) 14 years ago
Benjamin Peterson a6f195e48e change insertdict to not steal references (#13903) 14 years ago
Victor Stinner b80e46eca4 Issue #14687: Avoid an useless duplicated string in PyUnicode_Format() 14 years ago
Victor Stinner aff3cc659b Issue #14687: Cleanup PyUnicode_Format() 14 years ago
Brett Cannon 62228dbd6c Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py. 14 years ago
Victor Stinner b11d91d969 Fix my previous commit: bool is a long, restore the specical case for bool 14 years ago
Victor Stinner d0880d57b0 Simplify and optimize formatlong() 14 years ago
Victor Stinner 94d558b063 Optimize _PyUnicode_FindMaxChar() find pure ASCII strings 14 years ago
Benjamin Peterson 64acccf46d decref cached keys on type deallocation (#13903) 14 years ago
Victor Stinner 8f825060f1 Check newly created consistency using _PyUnicode_CheckConsistency(str, 1) 14 years ago
Victor Stinner 718fbf078c _PyUnicode_CheckConsistency() ensures that the unicode string ends with a 14 years ago
Victor Stinner 3065093bb3 long_to_decimal_string() and _PyLong_Format() check the consistency of newly 14 years ago
Benjamin Peterson 15ee821eb5 distiguish between refusing to creating shared keys and error (#13903) 14 years ago
Martin v. Loewis 4f2f3b6217 Account for shared keys in type's __sizeof__ (#13903). 14 years ago
Benjamin Peterson 7b1668735a don't use a slot wrapper from a different special method (closes #14658) 14 years ago
Benjamin Peterson 7ce67e45f8 fix dict gc tracking (#13903) 14 years ago
Benjamin Peterson b9f4c9daad make pointer arith c89 14 years ago
Benjamin Peterson f3b7d86e25 use correct base ptr 14 years ago
Benjamin Peterson 2844a7a6d3 simplify and reformat 14 years ago
Victor Stinner ece58deb9f Close #14648: Compute correctly maxchar in str.format() for substrin 14 years ago
Benjamin Peterson db780d0d13 fix instance dicts with str subclasses (#13903) 14 years ago
Benjamin Peterson 53b977127f don't make shared keys with dict subclasses 14 years ago
Benjamin Peterson 7d95e40721 Implement PEP 412: Key-sharing dictionaries (closes #13903) 14 years ago
Mark Dickinson bcc17eefd2 Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of an int subclass. 14 years ago
Mark Dickinson e28465482c Issue #14339: Improve speed of bin, oct and hex builtins. Patch by Serhiy Storchaka (with minor modifications). 14 years ago
Victor Stinner b0b224233e Issue #14385: Support other types than dict for __builtins__ 14 years ago
Benjamin Peterson e42fb307ed SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno (closes #14612) 14 years ago
Victor Stinner 0db176f8f6 Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType 14 years ago
Brett Cannon fd0741555b Issue #2377: Make importlib the implementation of __import__(). 14 years ago
Brett Cannon 79ec55e980 Issue #1559549: Add 'name' and 'path' attributes to ImportError. 14 years ago
Benjamin Peterson f6622c8a3e fix build without Py_DEBUG and DNDEBUG (closes #14509) 14 years ago
Victor Stinner afb5205c48 Close #14249: Use bit shifts instead of an union, it's more efficient. 14 years ago
Victor Stinner e7eee01f36 Close #14249: Use an union instead of a long to short pointer to avoid aliasing 14 years ago
Antoine Pitrou a701388de1 Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI. 14 years ago
Kristján Valur Jónsson 31668b8f7a Issue #14288: Serialization support for builtin iterators. 14 years ago
Benjamin Peterson b6af60c2a9 adjust formatting 14 years ago
Benjamin Peterson 3471bb67e7 remove extraneous condition 14 years ago
Benjamin Peterson ab3c1c1994 be consistent with rest of function 14 years ago
Antoine Pitrou 58bb82e7b4 Issue #13019: Fix potential reference leaks in bytearray.extend(). 14 years ago
Kristján Valur Jónsson daa06544c8 Issue #14435: Remove special block allocation code from floatobject.c 14 years ago
Victor Stinner 3c1e48176e Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions 14 years ago
Benjamin Peterson 0df542985a grammar 14 years ago
Benjamin Peterson a8755c586e kill this terribly outdated comment 14 years ago
Antoine Pitrou 0197ff97d0 Issue #14387: Do not include accu.h from Python.h. 14 years ago
Victor Stinner 59af08f545 Micro-optimize PyObject_GetAttrString() 14 years ago
Benjamin Peterson 520e8508a0 long() -> int() 14 years ago
Benjamin Peterson b7f1da5a3c make _PyNumber_ConvertIntegralToInt static, since it's only used in abstract.c 14 years ago
Benjamin Peterson d614e707ca rewrite this function, which was still accounting for classic classes 14 years ago