summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)Miss Islington (bot)2020-07-181-0/+36
| | | | | | | | Walk down the MRO backwards to find the type that originally defined the final `tp_setattro`, then make sure we are not jumping over intermediate C-level bases with the Python-level call. Automerge-Triggered-By: @gvanrossum (cherry picked from commit c53b310e5926266ce267c44a168165cacd786d6e) Co-authored-by: scoder <stefan_ml@behnel.de>
* bpo-35712: Make using NotImplemented in a boolean context issue a ↵MojoVampire2020-03-031-3/+3
| | | | deprecation warning (GH-13195)
* bpo-37645: add new function _PyObject_FunctionStr() (GH-14890)Jeroen Demeyer2019-11-051-1/+1
| | | | | | | | | | | | Additional note: the `method_check_args` function in `Objects/descrobject.c` is written in such a way that it applies to all kinds of descriptors. In particular, a future re-implementation of `wrapper_descriptor` could use that code. CC @vstinner @encukou https://bugs.python.org/issue37645 Automerge-Triggered-By: @encukou
* bpo-37619: update_one_slot() should not ignore wrapper descriptors for wrong ↵Jeroen Demeyer2019-09-101-0/+12
| | | | type (GH-14836)
* Fix typos mostly in comments, docs and test names (GH-15209)Min ho Kim2019-08-301-1/+1
|
* Fix an invalid assertEqual() call in test_descr.py (GH-15318)Zackery Spytz2019-08-261-5/+1
|
* bpo-36922: use Py_TPFLAGS_METHOD_DESCRIPTOR in lookup_maybe_method() (GH-13865)Jeroen Demeyer2019-06-171-0/+2
|
* bpo-37151: simplify classmethoddescr_call (GH-13340)Jeroen Demeyer2019-06-071-2/+2
|
* 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.