| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
Clarify parameter name.
|
| | |
|
| |
|
|
|
| |
closes SF bug #764003
- fix markup for consistency
|
| | |
|
| |
|
|
| |
section instead of the specific item being referenced.
|
| | |
|
| |
|
|
| |
* Noted the Py2.3 in the optional arg for bool().
|
| |
|
|
|
|
| |
* Indicate that arguments are optional for most builtin type constructors.
* Replace e.g. in staticmethod() and classmethod() docs.
* Add \code{} markup to some in-line code examples.
|
| |
|
|
| |
Added missing jump target labels.
|
| |
|
|
|
| |
explanation of int in terms of string.atoi. Explain sum in terms of
reduce.
|
| |
|
|
|
| |
- when marking a function, the trailing () should be included
consistently
|
| | |
|
| |
|
|
| |
- various adjustments to sum() markup and explanation
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
error handers in the Unicode codecs: Negative
positions are treated as being relative to the end of
the input and out of bounds positions result in an
IndexError.
Also update the PEP and include an explanation of
this in the documentation for codecs.register_error.
Fixes a small bug in iconv_codecs: if the position
from the callback is negative *add* it to the size
instead of substracting it.
From SF patch #677429.
|
| |
|
|
| |
Clarify the operation of locals().
|
| |
|
|
| |
http://mail.python.org/pipermail/python-dev/2003-January/031556.html
|
| |
|
|
|
|
|
|
| |
Try to clear up confusion about the current globals being copied
into a globals dict passed to eval(). This wording (more or less)
was suggested in bug report. It should probably be made clearer.
Backport candidate.
|
| |
|
|
|
|
|
|
| |
Added doc for functions new to 2.2: classmethod property staticmethod super
Taken from docstrings. Could use review.
Hope there wasn't a reason why these shouldn't have been added.
Backport candidate.
|
| |
|
|
|
|
|
|
|
|
|
| |
supported as the second argument. This has the same meaning as
for isinstance(), i.e. issubclass(X, (A, B)) is equivalent
to issubclass(X, A) or issubclass(X, B). Compared to isinstance(),
this patch does not search the tuple recursively for classes, i.e.
any entry in the tuple that is not a class, will result in a
TypeError.
This closes SF patch #649608.
|
| |
|
|
| |
arguments.
|
| |
|
|
|
|
|
| |
dict() constructor. Example:
>>> dict(a=1, b=2)
{'a': 1, 'b': 2}
>>>
|
| |
|
|
|
|
|
| |
that is outside the integer range no longer raises OverflowError, but
returns a long object instead.
This fixes SF bug http://www.python.org/sf/635115
|
| |
|
|
|
|
|
| |
preference of using "is" instead of "==" to compare types, use
built-in names where available, and point to the isinstance()
function.
Closes SF bug #632196.
|
| | |
|
| | |
|
| |
|
|
| |
not abstract characters.
|
| | |
|
| |
|
|
| |
completely equivalent.
|
| |
|
|
|
|
|
|
| |
interning. I modified Oren's patch significantly, but the basic idea
and most of the implementation is unchanged. Interned strings created
with PyString_InternInPlace() are now mortal, and you must keep a
reference to the resulting string around; use the new function
PyString_InternImmortal() to create immortal interned strings.
|
| |
|
|
| |
initial/default value.
|
| |
|
|
| |
Closes SF bug #513666.
|
| |
|
|
| |
Clarify the return value when the parameter is a Unicode object.
|
| |
|
|
| |
Closes SF bug #575272.
|
| | |
|
| |
|
|
| |
constructor, vetted by Barry.
|
| | |
|
| |
|
|
| |
This closes SF patch #547162.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bugfix candidate.
+ Updated dir() description to match actual 2.2 behavior.
+ Replaced the dir(sys) example with dir(struct), because the former
was way out of date and is bound to change frequently, while the
latter is stable.
+ Added a note cautioning that dir() is supplied primarily for
convenience at an interactive prompt (hoping to discourage its
use as the foundation of introspective code outside the core).
|
| |
|
|
| |
This is part of SF patch #494622.
|
| |
|
|
|
| |
and only if there is no second arg.
This closes SF patch #479551.
|
| |
|
|
| |
python-docs.
|
| |
|
|
|
|
| |
of references that now state that these attributes have been removed,
directing the reader to the dir() function.
This closes SF bug #456420.
|
| |
|
|
| |
with the signature, not an ad hoc abbreviated form.
|
| |
|
|
|
| |
not affect the API. Clean up the text about call syntax apply() is
equivalent to. Based on comments by Thomas Guettler.
|
| | |
|