summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1
|
* backout 3c9512d8ac0dBenjamin Peterson2016-05-281-8/+0
|
* Fix typos in comments, documentation and test method namesMartin Panter2016-05-081-1/+1
|
* set tp_new from the class in the hierarchy that actually owns the descriptor ↵Benjamin Peterson2016-01-191-0/+8
| | | | | | (closes #25731) Debugging by Eryk Sun.
* Issue #24097: Fixed crash in object.__reduce__() if slot name is freed insideSerhiy Storchaka2015-11-251-0/+17
|\ | | | | | | __getattr__. Original patch by Antoine Pitrou.
| * Issue #24097: Fixed crash in object.__reduce__() if slot name is freed insideSerhiy Storchaka2015-11-251-0/+17
| | | | | | | | __getattr__. Original patch by Antoine Pitrou.
* | No longer skip tests for classes with __getnewargs_ex__. The copy moduleSerhiy Storchaka2015-10-111-4/+0
| | | | | | | | already supports reduce protocol 4 (issue #20289).
* | Cleanup test_descr: remove C8 that is the same as C3.Serhiy Storchaka2015-10-111-8/+0
|\ \ | |/
| * Cleanup test_descr: remove C8 that is the same as C3.Serhiy Storchaka2015-10-111-8/+0
| |
* | merge 3.4 (#24806)Benjamin Peterson2015-10-071-0/+31
|\ \ | |/
| * prevent unacceptable bases from becoming bases through multiple inheritance ↵Benjamin Peterson2015-10-071-0/+31
| | | | | | | | (#24806)
* | Issue #24912: Prevent __class__ assignment to immutable built-in objects.Guido van Rossum2015-09-051-0/+45
| |
* | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.Yury Selivanov2015-07-031-3/+3
| |
* | Issue #24064: Property() docstrings are now writeable.Raymond Hettinger2015-05-131-1/+4
| | | | | | | | (Patch by Berker Peksag.)
* | Issue #23726: Don't enable GC for user subclasses of non-GC types that don't ↵Antoine Pitrou2015-04-131-2/+0
| | | | | | | | | | | | add any new fields. Patch by Eugene Toder.
* | Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-16/+9
|\ \ | |/ | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__.
| * Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-16/+8
| | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB.
* | merge 3.4 (#22735)Benjamin Peterson2015-02-061-1/+226
|\ \ | |/
| * fix many custom mro() edge cases and improve code quality (#22735)Benjamin Peterson2015-02-061-1/+226
| | | | | | | | Patch by Eldar Abusalimov.
* | allow changing __class__ between a heaptype and non-heaptype in some cases ↵Benjamin Peterson2015-01-301-0/+16
| | | | | | | | | | | | (closes #22986) Patch by Nathaniel Smith.
* | Issue #22783: Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EXSerhiy Storchaka2014-12-161-18/+7
| | | | | | | | opcode if possible.
* | use __qualname__ to compute bound method repr (closes #21389)Benjamin Peterson2014-08-201-0/+55
| | | | | | | | Patch from Steven Barker.
* | Merge.Charles-François Natali2014-06-201-1/+1
|\ \ | |/
| * Issue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa.Terry Jan Reedy2014-06-201-1/+1
| |
* | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176)Benjamin Peterson2014-04-101-0/+1
|/
* 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
| |