Georg Brandl
63cdb867f0
#2003 : fix sentence.
2008-02-03 12:29:00 +00:00
Georg Brandl
953e1ee8f4
Fix \xhh specs, #1889 .
2008-01-22 07:53:31 +00:00
Georg Brandl
a9e073d100
Note that genexps are function scopes too and therefore won't see class attributes.
2008-01-18 16:42:57 +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
f725b9587c
Doc patch #1730 from Robin Stocker; minor corrections mostly to os.rst.
2008-01-05 19:44:22 +00:00
Georg Brandl
6265833d91
Simplify index entries; fix #1712 .
2008-01-05 19:29:45 +00:00
Jeffrey Yasskin
9871d8fe22
Continue rolling back pep-3141 changes that changed behavior from 2.5. This
...
round included:
* Revert round to its 2.6 behavior (half away from 0).
* Because round, floor, and ceil always return float again, it's no
longer necessary to have them delegate to __xxx___, so I've ripped
that out of their implementations and the Real ABC. This also helps
in implementing types that work in both 2.6 and 3.0: you return int
from the __xxx__ methods, and let it get enabled by the version
upgrade.
* Make pow(-1, .5) raise a ValueError again.
2008-01-05 08:47:13 +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
Christian Heimes
44eeaec173
Patch #1537 from Chad Austin
...
Change GeneratorExit's base class from Exception to BaseException
(This time I'm applying the patch to the correct sandbox.)
2007-12-03 20:01:02 +00:00
Georg Brandl
584265b001
Add more entries to the glossary.
...
Written by Jeff Wheeler for GHOP.
2007-12-02 14:58:50 +00:00
Georg Brandl
03c1d1e9c4
Remove duplication of "this".
2007-11-11 15:16:16 +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
Mark Summerfield
d92e871ad8
Added note in footnote about string comparisons about
...
unicodedata.normalize().
2007-10-03 08:53:21 +00:00
Georg Brandl
745e48dffa
A bit of reordering, also show more subheadings in the lang ref index.
2007-09-18 07:24:40 +00:00
Georg Brandl
8360d5de7e
Fix a wrong indentation for sublists.
2007-09-07 14:14:40 +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
Georg Brandl
3761422749
Bug #1758696 : more info about descriptors.
2007-08-23 21:42:54 +00:00
Georg Brandl
8d9e84554e
Bug #1697820 : document that the old slice protocol is still used by builtin types.
2007-08-23 20:35:00 +00:00
Georg Brandl
32008321f5
Bug #1777168 : replace operator names "opa"... with "op1"... and mark everything up as literal,
...
to enhance readability.
2007-08-21 06:12:19 +00:00
Georg Brandl
ff457b1d05
Bug #1777160 : mention explicitly that e.g. -1**2 is -1.
2007-08-21 06:07:08 +00:00
Mark Summerfield
216ad337bd
Added a note in each regarding the fact that unicode strings that look the same
...
may not compare equal (due to the possibility of multiple representations).
2007-08-16 10:09:22 +00:00
Georg Brandl
8ec7f65613
Move the 2.6 reST doc tree in place.
2007-08-15 14:28:01 +00:00