| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rewrote the subsection on coercion rules (and made it a proper
subsection, with a label). The new section is much less precise,
because precise rules would be too hard to give (== I don't know what
they are any more :-). OTOH, the new section gives much more
up-to-date information.
Also noted that __coerce__ may return NotImplemented, with the same
meaning as None.
I beg Fred forgiveness: my use of \code{} is probably naive. Please
fix this and other markup nits. An index entry would be nice.
This could be a 2.2 bugfix candidate, if we bother about old docs
(Fred?)
|
| |
|
|
|
|
| |
Type class unification invalidated the statement: x.__getitem__[i] is not equivalent to x[i].
|
|
|
|
|
|
|
| |
(reported by François Pinard).
Added some missing "_" characters in the same cluster of productions.
Added missing floor division operator in m_expr production, and mention
floor division in the relevant portion of the text.
|
| |
|
|
|
|
|
| |
dropped in the HTML formatted version.
Reported by Mike Coleman.
|
|
|
|
| |
Closes SF bug #518985.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PEP 285. Everything described in the PEP is here, and there is even
some documentation. I had to fix 12 unit tests; all but one of these
were printing Boolean outcomes that changed from 0/1 to False/True.
(The exception is test_unicode.py, which did a type(x) == type(y)
style comparison. I could've fixed that with a single line using
issubtype(x, type(y)), but instead chose to be explicit about those
places where a bool is expected.
Still to do: perhaps more documentation; change standard library
modules to return False/True from predicates.
|
| |
|
|
|
|
|
|
|
|
| |
the manual refer to it.
XXX Not sure that it belongs in this section, or that the concept is
particularly important for writing documentation. Perhaps references
to the frame should be removed entirely.
|
| |
|
|
|
|
| |
free variable and is subject to those rules.
|
|
|
|
| |
function is enforced.
|
|
|
|
|
|
|
| |
Names bound by import statements may not occur in global
statements in the same scope.
Why not?
|
|
|
|
| |
Note that deleteing an unbound local will raise a NameError.
|
| |
|
|
|
|
| |
How do I create a cross reference to section 4.1?
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace section 4.1 with section A.3.
The new section 4.1 is titled "Naming and binding." It includes the
text of section A.3 augmented with some of the detailed text from the
old section 4.1.
The \dfn, \index stuff is probably wrong, but I tried.
Also update other parts of appendix A to mention that nested scopes
and generators are standard features.
|
|
|
|
|
|
|
|
| |
Split the description of co_flags into two paragraphs. The first
describes the flags that are used for non-future purposes, where
CO_GENERATOR was added. The second describes __future__'s use of
co_flags and mentions the only one currently meaningful,
CO_FUTURE_DIVISION.
|
|
|
|
|
|
| |
func_closure is a readonly attribute.
Add \ttindex{} for func_closure.
Remove discussion of func_closure specific to 2.1.
|
| |
|
|
|
|
|
| |
grammer productions.
Fixes SF bug #520959.
|
|
|
|
|
|
| |
level of predictability. This is not really "good" markup, but is arguably
better than we had before.
This closes SF bug #523117.
|
| |
|
| |
|
|
|
|
| |
This should be included in Python 2.2.1.
|
|
|
|
| |
appropriately marked.
|
|
|
|
|
|
|
| |
This partially fixes SF bug #492619.
Fix a typo & use the new notice environment instead of (ab)using the \note
and \warning macros.
|
|
|
|
|
| |
they were represented by newlines in the document source.
Partially fixes SF bug #493243.
|
|
|
|
| |
[ #429329 ] actual-parameters *arg, **kws not doc'd
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
line was not indented at all, so the example is no longer indented at all.
All of the errors being shown remain.
Typo: characteru --> character
|
|
|
|
| |
with Python 2.2.
|
|
|
|
| |
Should this be labeled as changed? How?)
|
|
|
|
|
|
|
| |
attribute of file objects, the print statement, and other file operations.
This closes SF bug #484857.
Fix minor markup nits.
|
|
|
|
| |
reserved words. No longer need to import string.
|
|
|
|
| |
didn't use reswords.py, as the comment clearly states. :-(
|
|
|
|
|
|
| |
of references that now state that these attributes have been removed,
directing the reader to the dir() function.
This closes SF bug #456420.
|
|
|
|
|
|
|
|
| |
parameters (like \UNIX) are commonly entered using an empty group to
separate the markup from a following inter-word space; this is not
needed when the next character is punctuation, or the markup is the
last thing in the enclosing group. These cases were marked
inconsistently; the empty group is now *only* used when needed.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
set of names imported (the "public names"), adding a definition of "public
names" that describes the use of __all__.
This closes SF bug #473986.
Flesh out the vague reference to __import__().
|
| |
|
| |
|
| |
|