summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \ \ | |/ /
| * | merge 3.1Benjamin Peterson2011-05-231-0/+1
| |\ \ | | |/
| | * correctly lookup __dir__Benjamin Peterson2011-05-231-0/+1
| | |
* | | (Merge 3.2) Issue #9756: When calling a method descriptor or a slot wrapperVictor Stinner2011-05-011-0/+16
|\ \ \ | |/ / | | | | | | | | | | | | descriptor, the check of the object type doesn't read the __class__ attribute anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy of the str type).
| * | (Merge 3.1) Issue #9756: When calling a method descriptor or a slot wrapperVictor Stinner2011-05-011-0/+16
| |\ \ | | |/ | | | | | | | | | | | | descriptor, the check of the object type doesn't read the __class__ attribute anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy of the str type).
| | * Issue #9756: When calling a method descriptor or a slot wrapper descriptor, theVictor Stinner2011-05-011-0/+16
| | | | | | | | | | | | | | | | | | check of the object type doesn't read the __class__ attribute anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy of the str type).
* | | #11565: Merge with 3.2.Ezio Melotti2011-03-161-1/+1
|\ \ \ | |/ /
| * | #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
| |\ \ | | |/
| | * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| | |
* | | #11515: Merge with 3.2.Ezio Melotti2011-03-151-1/+1
|\ \ \ | |/ /
| * | #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
| |\ \ | | |/
| | * #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
| | |
| | * Merged revisions 87952-87954 via svnmerge fromBenjamin Peterson2011-01-121-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87952 | benjamin.peterson | 2011-01-12 09:24:27 -0600 (Wed, 12 Jan 2011) | 1 line move this test to test_descr; it's not abc specific ........ r87953 | benjamin.peterson | 2011-01-12 09:25:02 -0600 (Wed, 12 Jan 2011) | 1 line oops, wrong class ........ r87954 | benjamin.peterson | 2011-01-12 09:34:01 -0600 (Wed, 12 Jan 2011) | 1 line don't segfault on deleting __abstractmethods__ #10892 ........
| | * Merged revisions 87368 via svnmerge fromEzio Melotti2010-12-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87368 | ezio.melotti | 2010-12-18 15:59:43 +0100 (Sat, 18 Dec 2010) | 1 line #5587: add a repr to dict_proxy objects. Patch by David Stanek and Daniel Urban. ........
| | * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| | * Merged revisions 84984 via svnmerge fromMark Dickinson2010-09-231-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84984 | mark.dickinson | 2010-09-23 21:11:19 +0100 (Thu, 23 Sep 2010) | 5 lines Issue #9930: Remove an unnecessary type check in wrap_binaryfunc_r; this was causing reversed method calls like float.__radd__(3.0, 1) to return NotImplemented instead of the expected numeric value. ........
| | * Merged revisions 77937 via svnmerge fromBenjamin Peterson2010-02-031-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77937 | benjamin.peterson | 2010-02-02 20:35:45 -0600 (Tue, 02 Feb 2010) | 75 lines Merged revisions 77484,77487,77561,77570,77593,77603,77608,77667,77702-77703,77739,77858,77887,77889 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77484 | skip.montanaro | 2010-01-13 19:12:34 -0600 (Wed, 13 Jan 2010) | 4 lines Update PyEval_EvalFrame to PyEval_EvalFrameEx. This looks to have been done partially before. Also add a comment describing how this might have to work with different versions of the interpreter. ........ r77487 | ezio.melotti | 2010-01-14 05:34:10 -0600 (Thu, 14 Jan 2010) | 1 line Fixed typo ........ r77561 | georg.brandl | 2010-01-17 02:42:30 -0600 (Sun, 17 Jan 2010) | 1 line #7699: improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such. ........ r77570 | georg.brandl | 2010-01-17 06:14:42 -0600 (Sun, 17 Jan 2010) | 1 line Add note about usage of STRINGLIB_EMPTY. ........ r77593 | georg.brandl | 2010-01-17 17:33:53 -0600 (Sun, 17 Jan 2010) | 1 line Fix internal reference. ........ r77603 | benjamin.peterson | 2010-01-18 17:07:56 -0600 (Mon, 18 Jan 2010) | 8 lines data descriptors do not override the class dictionary if __get__ is not defined Adjust documentation and add a test to verify this behavior. See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for discussion. ........ r77608 | gregory.p.smith | 2010-01-19 02:19:03 -0600 (Tue, 19 Jan 2010) | 6 lines Do not compile stubs for the sha2 series hashes in the openssl hashlib module when the openssl version is too old to support them. That leads both compiled code bloat and to unittests attempting to test implementations that don't exist for comparison purposes on such platforms. ........ r77667 | mark.dickinson | 2010-01-21 12:32:27 -0600 (Thu, 21 Jan 2010) | 1 line Add two more test_strtod test values. ........ r77702 | georg.brandl | 2010-01-23 02:43:31 -0600 (Sat, 23 Jan 2010) | 1 line #7762: fix refcount annotation of PyUnicode_Tailmatch(). ........ r77703 | georg.brandl | 2010-01-23 02:47:54 -0600 (Sat, 23 Jan 2010) | 1 line #7725: fix referencing issue. ........ r77739 | benjamin.peterson | 2010-01-24 21:52:52 -0600 (Sun, 24 Jan 2010) | 1 line mention from_float() in error message ........ r77858 | georg.brandl | 2010-01-30 11:57:48 -0600 (Sat, 30 Jan 2010) | 1 line #7802: fix invalid example (heh). ........ r77887 | georg.brandl | 2010-01-31 12:51:49 -0600 (Sun, 31 Jan 2010) | 5 lines Fix-up ftplib documentation: move exception descriptions to toplevel, not inside a class remove attribution in "versionadded" spell and grammar check docstring of FTP_TLS ........ r77889 | michael.foord | 2010-01-31 13:59:26 -0600 (Sun, 31 Jan 2010) | 1 line Minor modification to unittest documentation. ........ ................