Commit Graph

53 Commits

Author SHA1 Message Date
Eli Bendersky 761473f28a Issue #12223: Typo fix in datamodel docs 2011-06-10 10:36:34 +03:00
Raymond Hettinger 1fd26525a4 Issue #10771: Clarify that descriptors get used in an *owner* class or one of its parents. 2011-03-22 17:51:57 -07:00
Raymond Hettinger 405a4717e1 Issue 10787: Document the probability density function for random.gammavariate. 2011-03-22 15:52:46 -07:00
Raymond Hettinger b76f6200d2 Issue 10988: fix description of super's descriptor call. 2011-03-22 15:28:45 -07:00
Gregory P. Smith 28d57c0d5c Explicitly mention that people should not depend on finalization of
objects to happen immediately.
2011-03-10 11:49:27 -08:00
Éric Araujo 5c804ffa6e Merged revisions 87486 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87486 | eric.araujo | 2010-12-26 03:18:49 +0100 (dim., 26 déc. 2010) | 2 lines

  Fix typo spotted by Rodrigo Bernardo Pimentel (#9891)
........
2010-12-26 02:24:42 +00:00
Benjamin Peterson dc9542435b Merged revisions 85392 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85392 | benjamin.peterson | 2010-10-12 17:57:59 -0500 (Tue, 12 Oct 2010) | 1 line

  prefer clearing global objects to obscure module.__dict__ bugs #10068
........
2010-10-12 23:02:35 +00:00
Senthil Kumaran fca48efeb1 Merged revisions 85156 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85156 | senthil.kumaran | 2010-10-02 08:46:04 +0530 (Sat, 02 Oct 2010) | 3 lines

  Fix - issue10010 .. index:: position in the docs.
........
2010-10-02 03:29:31 +00:00
Andrew M. Kuchling b3437c9f95 Minor grammar re-wording 2010-04-30 13:46:55 +00:00
Georg Brandl 9f5fd6092b Fix missing. 2010-04-14 21:46:45 +00:00
Georg Brandl 710a5dbc4a #5250: document __instancecheck__ and __subclasscheck__. I hope the part about the class/metaclass distinction is understandable. 2010-04-14 21:34:44 +00:00
Raymond Hettinger 06bc0b6d2e Add tests for functools.total_ordering. 2010-04-04 22:24:03 +00:00
Mark Dickinson 82b34c5dbe Issue #5211: Fix complex type to avoid implicit calls to
complex.__coerce__.  Thanks Meador Inge for the patch.
2010-02-21 12:57:35 +00:00
Benjamin Peterson 9179dab3f4 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.
2010-01-18 23:07:56 +00:00
Georg Brandl 030d65811f Reorder __slots__ fine print and add a clarification. 2009-10-22 15:27:24 +00:00
Georg Brandl 2eee1d4df1 #6324: membership test tries iteration via __iter__. 2009-10-22 15:00:06 +00:00
Georg Brandl 6c14e587f5 Use "impl-detail" directive where applicable. 2009-10-22 11:48:10 +00:00
Georg Brandl 86158fc4c7 #6810: add a link to the section about frame objects instead of just a description where to find it. 2009-09-01 08:00:47 +00:00
Georg Brandl d7d4fd7336 builtin -> built-in. 2009-07-26 14:37:28 +00:00
Georg Brandl 8dc3b445ec #6034: clarify __reversed__ doc. 2009-05-16 11:13:21 +00:00
Georg Brandl 2ce1c61ca6 Fix-up unwanted change. 2009-03-31 19:14:42 +00:00
Georg Brandl dc340eedaa #5039: make it clear that the impl. note refers to CPython. 2009-03-30 22:43:00 +00:00
Georg Brandl 3259ef3dff #5493: clarify __nonzero__ docs. 2009-03-15 21:37:16 +00:00
Raymond Hettinger 351de8017c Add reference to solution for a commonly asked question. 2009-03-12 00:25:03 +00:00
Georg Brandl 9834dd72bc #3734: document complex coercing behavior better. 2009-02-13 10:44:17 +00:00
Brett Cannon 5b0d5531f2 Clarify some __del__ stuff. 2009-01-29 00:54:11 +00:00
Georg Brandl fe11f4d524 #4986: augassigns are not expressions. 2009-01-18 18:25:30 +00:00
Benjamin Peterson b746448f46 fix grammar 2009-01-18 01:28:46 +00:00
Benjamin Peterson f1a4069481 bytearrays are mutable sequences 2009-01-18 01:28:09 +00:00
Georg Brandl 9a05373145 #4517: add "special method" glossary entry and clarify when __getattribute__ is bypassed. 2008-12-05 15:29:39 +00:00
Georg Brandl 3fc4226057 Add an index entry for "subclassing immutable types". 2008-12-05 08:06:57 +00:00
Benjamin Peterson 233bb00c1c improve __hash__ docs 2008-11-17 22:05:19 +00:00
Benjamin Peterson c756dcdd60 only nonempty __slots__ don't work 2008-10-23 21:43:48 +00:00
Nick Coghlan 82358691f7 Issue 2235: document the ability to block inheritance of __hash__ in the language reference 2008-08-31 13:10:50 +00:00
Georg Brandl c176814d82 #3716: fix typo. 2008-08-30 09:52:44 +00:00
Brett Cannon 9329846f00 Fix markup for various binary operation examples where the operands were bolded
and the operator was made literal, leading to non-valid reST. Changed to have
the entire expression just be a literal bit of text.
2008-08-14 05:55:18 +00:00
Nick Coghlan a510748085 Issue 643841: better documentation of the special method lookup process, especially for new-style classes. Also removes the warnings about not being authoritative for new-style classes - the language reference actually covers those fairly well now (albeit in a fashion that isn't always particularly easy to follow). 2008-08-04 12:40:59 +00:00
Georg Brandl 3de1e69dc7 #3323: mention that if inheriting from a class without __slots__,
the subclass will have a __dict__ available too.
2008-07-19 13:09:42 +00:00
Georg Brandl e9135ba79d #2147: PEP 237 changes to overflow behavior. 2008-05-11 10:55:59 +00:00
Georg Brandl 3fbe20c01e Add docs for __func__ and __self__ on methods. 2008-03-21 19:20:21 +00:00
Georg Brandl 63cdb867f0 #2003: fix sentence. 2008-02-03 12:29:00 +00:00
Georg Brandl 3ccb49afed Clarify metaclass docs and add example. 2008-01-07 19:17:10 +00:00
Georg Brandl 81de0d24d5 #1582: document __reversed__, patch by Mark Russell. 2008-01-06 16:17:56 +00:00
Georg Brandl 6265833d91 Simplify index entries; fix #1712. 2008-01-05 19:29:45 +00:00
Jeffrey Yasskin 2f3c16be73 Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just
the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361,
r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new
documentation. The only significant difference is that round(x) returns a float
to preserve backward-compatibility. See http://bugs.python.org/issue1689.
2008-01-03 02:21:52 +00:00
Georg Brandl b19be571e0 Some cleanup in the docs. 2007-12-29 10:57:00 +00:00
Georg Brandl 7c3e79f67f Make "hashable" a glossary entry and clarify docs on __cmp__, __eq__ and __hash__.
I hope the concept of hashability is better understandable now.
Thanks to Tim Hatch for pointing out the flaws here.
2007-11-02 20:06:17 +00:00
Georg Brandl a739503881 Add :term:s for "new-style class". 2007-10-21 12:15:05 +00:00
Georg Brandl 63fa168326 Unify "byte code" to "bytecode". Also sprinkle :term: markup for it. 2007-10-21 10:24:20 +00:00
Georg Brandl 5768d577d3 Backport from Py3k: Bug #1684991: explain lookup semantics for __special__ methods (new-style classes only). 2007-09-05 13:36:44 +00:00