490 Commits (fe8440aec00af5bc2e995aaad205efa2e693a364)

Author SHA1 Message Date
Benjamin Peterson 64acccf46d decref cached keys on type deallocation (#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 7d95e40721 Implement PEP 412: Key-sharing dictionaries (closes #13903) 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
Victor Stinner 3c1e48176e Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions 14 years ago
Benjamin Peterson 96384b93aa make extra arguments to object.__init__/__new__ to errors in most cases (finishes #1683368) 14 years ago
Benjamin Peterson 9a03ecfa50 simply this slightly 14 years ago
Benjamin Peterson 16d84ac355 check to make sure the attribute is a string (#14334) 14 years ago
Victor Stinner d74782b0ac Close #14199: _PyType_Lookup() and super_getattro() keep a strong reference to 14 years ago
Benjamin Peterson 52c424343d allow cycles throught the __dict__ slot to be cleared (closes #1469629) 14 years ago
Victor Stinner 6f73874edd Close #14095: type.__new__() doesn't remove __qualname__ key from the class 14 years ago
Benjamin Peterson 006c5a2235 check for NULL to fix segfault 14 years ago
Benjamin Peterson 8eb1269c34 add generic implementation of a __dict__ descriptor for C types 14 years ago
Benjamin Peterson 2652d2570e ready types returned from PyType_FromSpec 14 years ago
Benjamin Peterson e28108cbd7 adjust declaration 14 years ago
Benjamin Peterson ce79852077 use the static identifier api for looking up special methods 14 years ago
Antoine Pitrou 5b62942074 Issue #13577: Built-in methods and functions now have a __qualname__. 14 years ago
Antoine Pitrou 2e872082f6 Fix the fix for issue #12149: it was incorrect, although it had the side 14 years ago
Florent Xicluna aa6c1d240f Issue #13575: there is only one class type. 14 years ago
Antoine Pitrou 86a36b500a PEP 3155 / issue #13448: Qualified name for classes and functions. 14 years ago
Eli Bendersky d3baae73be Issue #13161: fix doc strings of __i*__ operators 14 years ago
Martin v. Löwis d10759f6ed Make _PyUnicode_FromId return borrowed references. 14 years ago
Nick Coghlan de31b191e5 Issue 1294232: Fix errors in metaclass calculation affecting some cases of metaclass inheritance. Patch by Daniel Urban. 14 years ago
Martin v. Löwis bd928fef42 Rename _Py_identifier to _Py_IDENTIFIER. 15 years ago
Martin v. Löwis bfc6d74b25 Use GetAttrId directly. Proposed by Amaury. 15 years ago
Martin v. Löwis 1ee1b6fe0d Use identifier API for PyObject_GetAttrString. 15 years ago
Martin v. Löwis afe55bba33 Add API for static strings, primarily good for identifiers. 15 years ago
Victor Stinner 639418812f Use the new Py_ARRAY_LENGTH macro 15 years ago
Ezio Melotti 2aa2b3b4d5 Clean up a few tabs that went in with PEP393. 15 years ago
Martin v. Löwis d63a3b8beb Implement PEP 393. 15 years ago
Benjamin Peterson 01fc6cd056 make __doc__ mutable on heaptypes (closes #12773) 15 years ago
Benjamin Peterson d9f23d2004 factor out common checks for setting special type attributes 15 years ago
Benjamin Peterson d17cefc787 crush other possible refleaks in this section 15 years ago
Benjamin Peterson ae13c88d8d fix possible refleaks 15 years ago
Benjamin Peterson c4085c8470 complain when a class variable shadows a name in __slots__ (closes #12766) 15 years ago
Brian Curtin dfc80e3d97 Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED. 15 years ago
Antoine Pitrou 8cdc40e3b0 Issue #11603: Fix a crash when __str__ is rebound as __repr__. 15 years ago
Antoine Pitrou 84f1b1718d Issue #12149: Update the method cache after a type's dictionnary gets 15 years ago
Benjamin Peterson f5ff22329b use a invalid name for the __class__ closure for super() (closes #12370) 15 years ago
Benjamin Peterson c7284122be indicate return value on __dir__ methods 15 years ago
Benjamin Peterson fbe56bb8bd use '->' to indicate return values 15 years ago
Benjamin Peterson 82b00c1d30 move specialized dir implementations into __dir__ methods (closes #12166) 15 years ago
Ezio Melotti 13925008dc #11565: Fix several typos. Patch by Piotr Kasprzyk. 15 years ago
Eric V. Smith b9cd3531c4 Issue 9856: Change object.__format__ with a non-empty format string from a PendingDeprecationWarning to a DeprecationWarning. 15 years ago
Antoine Pitrou 16c4ce1903 Issue #9935: Speed up pickling of instances of user-defined classes. 15 years ago
Victor Stinner f3fd733f92 Remove useless argument of _PyUnicode_AsDefaultEncodedString() 15 years ago
Brett Cannon b94767ff44 Issue #8914: fix various warnings from the Clang static analyzer v254. 15 years ago