summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-26423: Fix possible overflow in wrap_lenfunc() (GH-13606)Zackery Spytz2019-05-281-0/+4
| | | | Fix possible overflow in wrap_lenfunc() when sizeof(long) < sizeof(Py_ssize_t) (e.g., 64-bit Windows).
* bpo-36026: make descr error message consistent (GH-11930)Inada Naoki2019-04-011-2/+29
| | | | set.add(0) and set.add.__get__(0) now raise TypeError with same error message.
* bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)Inada Naoki2019-03-261-3/+18
| | | https://bugs.python.org/issue36433
* bpo-30040: new empty dict uses key-sharing dict (GH-1080)Inada Naoki2019-03-121-3/+3
| | | | Sizeof new empty dict becomes 72 bytes from 240 bytes (amd64). It is same size to empty dict created by dict.clear().
* bpo-36109: Fix random test_descr failure. (GH-12044)Serhiy Storchaka2019-02-261-1/+5
|
* bpo-25750: Add test on bad descriptor __get__() (GH-9084)jdemeyer2018-10-191-0/+21
|
* bpo-1617161: Make the hash and equality of methods not depending on the ↵Serhiy Storchaka2018-07-311-25/+58
| | | | | | | | | | | value of self. (GH-7848) * The hash of BuiltinMethodType instances no longer depends on the hash of __self__. It depends now on the hash of id(__self__). * The hash and equality of ModuleType and MethodWrapperType instances no longer depend on the hash and equality of __self__. They depend now on the hash and equality of id(__self__). * MethodWrapperType instances no longer support ordering.
* bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)Oren Milman2018-02-131-0/+18
|
* bpo-32379: Faster MRO computation for single inheritance (#4932)Antoine Pitrou2017-12-201-0/+6
| | | | * bpo-32379: Faster MRO computation for single inheritance
* bpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843)Serhiy Storchaka2017-04-081-1/+14
| | | | object.__reduce__() no longer takes arguments, object.__reduce_ex__() now requires one argument.
* bpo-24329: allow __qualname__ and __classcell__ in __slots__ (GH-495)Xiang Zhang2017-03-081-0/+40
|
* bpo-29695: Fixed tests after removing keyword args support in some basic ↵Serhiy Storchaka2017-03-061-8/+14
| | | | type constructors. (GH-520)
* Merge from 3.6.Serhiy Storchaka2016-12-141-0/+2
|\
| * Revert changeset 1f31bf3f76f5 (issue5322) except tests.Serhiy Storchaka2016-12-141-0/+2
| |
* | Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.Serhiy Storchaka2016-12-071-0/+88
|\ \ | |/ | | | | Original patch by Andreas Stührk.
| * Issue #5322: Fixed setting __new__ to a PyCFunction inside Python code.Serhiy Storchaka2016-12-021-0/+88
| | | | | | | | Original patch by Andreas Stührk.
| * Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1
| |
* | Implement compact dictVictor Stinner2016-09-081-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Issue #27350: `dict` implementation is changed like PyPy. It is more compact and preserves insertion order. _PyDict_Dummy() function has been removed. Disable test_gdb: python-gdb.py is not updated yet to the new structure of compact dictionaries (issue #28023). Patch written by INADA Naoki.
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-1/+1
| |
* | Backed out changeset af29d89083b3 (closes #25548) (closes #27498)Benjamin Peterson2016-07-141-2/+2
| |
* | Issue #25548: Showing memory address of class objects in replKushal Das2016-06-041-2/+2
| |
* | merge 3.5Benjamin Peterson2016-05-281-8/+0
|\ \ | |/
| * backout 3c9512d8ac0dBenjamin Peterson2016-05-281-8/+0
| |
* | Merge typo fixes from 3.5Martin Panter2016-05-081-1/+1
|\ \ | |/
| * Fix typos in comments, documentation and test method namesMartin Panter2016-05-081-1/+1
| |
* | merge 3.5 (#25731)Benjamin Peterson2016-01-191-0/+8
|\ \ | |/
| * 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.
| | * 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 #24164: Fixed test_descr: __getnewargs_ex__ now is supported in ↵Serhiy Storchaka2015-10-111-8/+1
|/ / | | | | | | protocols 2 and 3.
* | 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
|/