summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
Commit message (Collapse)AuthorAgeFilesLines
* move SharedKeyTests to test_descrBenjamin Peterson2014-03-171-1/+23
|
* correct the fix for #20637; allow slot descriptor inheritance to take place ↵Benjamin Peterson2014-03-171-0/+8
| | | | before creating cached keys
* look up __getnewargs__ and __getnewargs_ex__ on the object type (#16251)Benjamin Peterson2014-02-161-0/+14
|
* Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-0/+1
|\
| * Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-0/+1
| |
* | Fix whitespaceAntoine Pitrou2013-11-231-3/+3
| |
* | Issue #17810: Implement PEP 3154, pickle protocol 4.Antoine Pitrou2013-11-231-172/+433
| | | | | | | | Most of the work is by Alexandre.
* | Implement PEP 451 (ModuleSpec).Eric Snow2013-11-221-1/+1
| |
* | Issue #19603: Use specific asserts in test_decr.Serhiy Storchaka2013-11-171-157/+168
|\ \ | |/
| * Issue #19603: Use specific asserts in test_decr.Serhiy Storchaka2013-11-171-157/+168
| |
* | cleanup the construction of __qualname__ (closes #19301 again)Benjamin Peterson2013-10-201-1/+3
| |
* | give explicitly global functions and classes a global __qualname__ (closes ↵Benjamin Peterson2013-10-191-0/+5
| | | | | | | | #19301)
* | Issue #18112: PEP 442 implementation (safe object finalization).Antoine Pitrou2013-07-301-10/+0
| |
* | #17115,17116: Have modules initialize the __package__ and __loader__Brett Cannon2013-05-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attributes to None. The long-term goal is for people to be able to rely on these attributes existing and checking for None to see if they have been set. Since import itself sets these attributes when a loader does not the only instances when the attributes are None are from someone overloading __import__() and not using a loader or someone creating a module from scratch. This patch also unifies module initialization. Before you could have different attributes with default values depending on how the module object was created. Now the only way to not get the same default set of attributes is to circumvent initialization by calling ModuleType.__new__() directly.
* | remove pointless changeBenjamin Peterson2013-04-131-1/+1
| |
* | properly lookup the __round__ special method (closes #17722)Benjamin Peterson2013-04-131-1/+2
|/
* Issue #16447: Fix potential segfault when setting __name__ on a class.Mark Dickinson2013-04-131-0/+14
|
* do safety checks on __qualname__ assignmentBenjamin Peterson2012-10-311-0/+8
|
* don't shadow the __qualname__ descriptor with __qualname__ in the class's ↵Benjamin Peterson2012-10-311-4/+4
| | | | __dict__ (closes #16271)
* merge 3.2 (#14699)Benjamin Peterson2012-05-011-0/+16
|\
| * fix calling the classmethod descriptor directly (closes #14699)Benjamin Peterson2012-05-011-0/+16
| |
* | merge 3.2 (#14658)Benjamin Peterson2012-04-241-1/+9
|\ \ | |/
| * don't use a slot wrapper from a different special method (closes #14658)Benjamin Peterson2012-04-241-1/+9
| | | | | | | | | | | | | | 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.
* | Issue #14386: Expose the dict_proxy internal type as types.MappingProxyTypeVictor Stinner2012-04-151-2/+2
| |
* | correctly lookup __trunc__ in int() constructorBenjamin Peterson2012-03-211-0/+1
| |
* | make extra arguments to object.__init__/__new__ to errors in most cases ↵Benjamin Peterson2012-03-171-0/+20
| | | | | | | | (finishes #1683368)
* | merge 3.2 (#14334)Benjamin Peterson2012-03-161-0/+3
|\ \ | |/
| * check to make sure the attribute is a string (#14334)Benjamin Peterson2012-03-161-0/+3
| |
* | Close #14199: _PyType_Lookup() and super_getattro() keep a strong reference toVictor Stinner2012-03-081-1/+29
| | | | | | | | the type MRO to avoid a crash if the MRO is changed during the lookup.
* | merge 3.2 (#3787e896dbe9)Benjamin Peterson2012-03-081-2/+17
|\ \ | |/
| * allow cycles throught the __dict__ slot to be cleared (closes #1469629)Benjamin Peterson2012-03-081-2/+17
| | | | | | | | Patch from Armin, test from me.
| * Fix use of deprecated assert_ method.Georg Brandl2012-02-201-2/+2
| |
| * Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵Georg Brandl2012-02-201-1/+11
| |\ | | | | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
| | * Issue #13703: add a way to randomize the hash values of basic types (str, ↵Georg Brandl2012-02-201-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior.
* | | Close #14095: type.__new__() doesn't remove __qualname__ key from the classVictor Stinner2012-02-251-3/+13
| | | | | | | | | | | | | | | dict anymore if the key is present. Reject also non-string qualified names. And fix reference leaks in type.__new__().
* | | initialize __dict__ if neededBenjamin Peterson2012-02-191-0/+2
| | |
* | | allow arbitrary attributes on classmethod and staticmethod (closes #14051)Benjamin Peterson2012-02-191-0/+13
| | |
* | | Issue #13577: various kinds of descriptors now have a __qualname__ attribute.Antoine Pitrou2011-12-121-0/+18
| | | | | | | | | | | | Patch by sbt.
* | | PEP 3155 / issue #13448: Qualified name for classes and functions.Antoine Pitrou2011-11-251-3/+8
| | |
* | | Merge issue 1294232 patch from 3.2Nick Coghlan2011-10-231-0/+168
|\ \ \ | |/ /
| * | Issue 1294232: Fix errors in metaclass calculation affecting some cases of ↵Nick Coghlan2011-10-231-0/+168
| | | | | | | | | | | | metaclass inheritance. Patch by Daniel Urban.
* | | make __doc__ mutable on heaptypes (closes #12773)Benjamin Peterson2011-08-171-0/+13
| | |
* | | improve test nameBenjamin Peterson2011-08-171-1/+1
| | |
* | | complain when a class variable shadows a name in __slots__ (closes #12766)Benjamin Peterson2011-08-161-0/+8
| | |
* | | Issue 12647: Add __bool__() method to the None object.Raymond Hettinger2011-07-281-3/+0
| | |
* | | Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-0/+8
|\ \ \ | |/ / | | | | | | Patch by Andreas Stührk.
| * | Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-0/+8
| |\ \ | | |/ | | | | | | Patch by Andreas Stührk.
| | * Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-0/+8
| | | | | | | | | | | | Patch by Andreas Stührk.
* | | excellent place for assertRaisesBenjamin Peterson2011-05-251-6/+1
| | |
* | | merge 3.2Benjamin Peterson2011-05-231-0/+1
|\ \ \ | |/ /