| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
and examples of the dict() constructor.
|
| |
|
|
|
|
|
|
|
| |
the semantics and presentation used in the library reference.
Added an explanation of the use of [...] to denote optional arguments, since
this is the only use of this in a signature line.
Closes SF bug #567127.
|
|
|
|
|
| |
that are in the process of deprecation (PendingDeprecationWarning).
Docs could be improved.
|
| |
|
|
|
|
| |
This closes SF patch #547162.
|
|
|
|
| |
This closes SF bug #526277.
|
|
|
|
|
|
| |
completely determined by the example; dict insertion order and the string
hash algorithm no longer affect the output.
This fixes SF bug #509281.
|
|
|
|
|
| |
advice on docstrings.
This fixes SF bug #495601.
|
|
|
|
|
|
|
| |
modules, or the module cannot be properly imported. (Based on a suggestion
sent to python-docs.)
Update the displayed dir() of the sys and __builtin__ module with Python 2.2.
|
|
|
|
|
| |
give examples for which str() and repr() yield different results.
This closes SF bug #485446.
|
|
|
|
| |
Andrew Koenig.
|
|
|
|
| |
sent to python-docs.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Reported by Francesco Trentini.
|
|
|
|
|
|
|
|
|
| |
the source file using "in ?".
Added a description of the bare "raise" statement.
Added more description and examples for user-defined exceptions; this
is part of a response to SF bug #443559.
|
|
|
|
| |
Fixes bug reported as SF bug #453728.
|
|
|
|
|
| |
less hostile to newbie use at the interactive prompt.
This is in response to SF bug #458654.
|
|
|
|
| |
This closes SF bug #450633.
|
|
|
|
| |
This closes SF bug #445749.
|
|
|
|
|
|
|
|
| |
sample startup script provided by Itamar Shtull-Trauring.
This closes SF patch #410890.
Add some logical markup where it was missing.
|
| |
|
|
|
|
|
| |
translation more difficult, as well as reading the English more
difficult for non-native speakers.
|
|
|
|
| |
example. It actually confused a reader.
|
| |
|
|
|
|
|
| |
Also replaced a *star* style emphasis in the Representation Error section
with an \emph{} thingie.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
need to understand about the binary & decimal fp, so that representation
weirdness is documented somewhere. This makes it easier to repond to "bug"
reports caused by user confusion & ignorance of the issues.
This closes SF patch #426208.
|
|
|
|
|
|
|
|
| |
numbers that display nicely after repr(). From much doctest experience
with the same trick, I believe people find examples with simple fractions
easier to understand too: they can usually check the results in their
head, and so feel confident about what they're seeing. Not even I get a
warm feeling from a result that looks like 70330.345024097141 ...
|
|
|
|
|
|
|
|
|
|
| |
floating point numbers in an interactive example.
Added comment to help explain control flow in the example code showing
how to check if a number is prime.
This closes SF bugs 419434 and 424552.
|
|
|
|
| |
interactive examples. Error noted by Dinu Gherman.
|
|
|
|
| |
only documentation file that appears to be affected by the change!
|
|
|
|
|
|
|
|
| |
Change "EOF" to "end-of-file", on the premise that it is easier for
new programmers to understand (at least a little).
This does not attempt to explain "file or device attached to standard
input."
|
|
|
|
|
|
|
|
| |
hyperlink.
Fix two English usage errors caught by Jan Wells: Changed "subsequence"
to "sub-sequence" in two places, and avoid improper use of "hopefully" in
the first paragraph of the "What Now?" chapter.
|
|
|
|
| |
trashed.
|
|
|
|
|
|
| |
Remove premature use of negative indexes in string operation examples;
negative indexes have not been explained at that point, and the use of
negative indexes are not necessary for the examples.
|
|
|
|
| |
"innermost last" --> "most recent call last"
|
| |
|
|
|
|
| |
Switch from octal escapes to hex escapes for other nonprintable characters.
|
|
|
|
|
|
| |
this is not hard to explain!
Closes SF bug #129345.
|
| |
|
|
|
|
| |
This closes bug #123730.
|
| |
|
| |
|
| |
|
|
|
|
| |
This closes bug #117706.
|
|
|
|
|
|
|
|
|
| |
to reflect current behavior.
This closes SourceForge bug #117305.
Made a reference to the library reference a hyperlink.
Fixed some minor markup nits.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed displays of the interactive prompt in running text.
These close SourceForge bug #115658.
Also:
Updated discussion of tuple unpacking to reflect the general ability
to unpack any sequence type. Explained that it is possible to create
tuples which contain mutable values, and noted in the dictionary
section that such tuples cannot be used as keys.
Noted that .pyc and .pyo files can be run directly when provided as
the script parameter to the interpreter, and slightly clarified
comments about using modules with only the byte compiled code.
Removed some XXX comments that are no longer relevant.
Removed commented-out paragraph about __private names being experimental.
Adjusted markup for consistency in some places.
|