| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
revision 1.127
date: 2003/01/04 02:16:22; author: rhettinger; state: Exp; lines: +1 -1
SF bug #655271: Slightly modify locals() doc
Clarify the operation of locals().
revision 1.125
date: 2002/12/17 01:08:06; author: nnorwitz; state: Exp; lines: +6 -1
Fix SF # 641111, Undocumented side effect of eval
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.
revision 1.124
date: 2002/12/17 01:02:57; author: nnorwitz; state: Exp; lines: +78 -0
Fix SF #642742, property() builtin not documented
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.
|
|
|
|
| |
http://mail.python.org/pipermail/python-dev/2003-January/031556.html
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
for complex numbers.
|
| |
|
|
|
|
| |
not abstract characters.
|
| |
|
|
|
|
| |
completely equivalent.
|
|
|
|
| |
initial/default value.
|
|
|
|
| |
Closes SF bug #513666.
|
|
|
|
| |
Clarify the return value when the parameter is a Unicode object.
|
|
|
|
| |
Closes SF bug #575272.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
revision 1.101 of libfuncs.tex
SF bug #501591: dir() doc is old
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
outer level, the iterator protocol is used for memory-efficiency (the
outer sequence may be very large if fully materialized); at the inner
level, PySequence_Fast() is used for time-efficiency (these should
always be sequences of length 2).
dictobject.c, new functions PyDict_{Merge,Update}FromSeq2. These are
wholly analogous to PyDict_{Merge,Update}, but process a sequence-of-2-
sequences argument instead of a mapping object. For now, I left these
functions file static, so no corresponding doc changes. It's tempting
to change dict.update() to allow a sequence-of-2-seqs argument too.
Also changed the name of dictionary's keyword argument from "mapping"
to "x". Got a better name? "mapping_or_sequence_of_pairs" isn't
attractive, although more so than "mosop" <wink>.
abstract.h, abstract.tex: Added new PySequence_Fast_GET_SIZE function,
much faster than going thru the all-purpose PySequence_Size.
libfuncs.tex:
- Document dictionary().
- Fiddle tuple() and list() to admit that their argument is optional.
- The long-winded repetitions of "a sequence, a container that supports
iteration, or an iterator object" is getting to be a PITA. Many
months ago I suggested factoring this out into "iterable object",
where the definition of that could include being explicit about
generators too (as is, I'm not sure a reader outside of PythonLabs
could guess that "an iterator object" includes a generator call).
- Please check my curly braces -- I'm going blind <0.9 wink>.
abstract.c, PySequence_Tuple(): When PyObject_GetIter() fails, leave
its error msg alone now (the msg it produces has improved since
PySequence_Tuple was generalized to accept iterable objects, and
PySequence_Tuple was also stomping on the msg in cases it shouldn't
have even before PyObject_GetIter grew a better msg).
|
|
|
|
| |
This patch should also be applied to the 2.2b1 trunk.
|
|
|
|
|
| |
changes in the implementation.
Indented all descriptions consistently.
|
| |
|
|
|
|
|
| |
it acts more like assigning to keys in locals(), i.e. modifications to
function locals aren't reflected in the locals when execfile() returns.
|
| |
|
|
|
|
|
| |
recent user feedback: you must end the input with \n and you must use
\n, not \r\n to represent line endings.
|
|
|
|
|
| |
"new in 2.2" blurb at the end. Replace open()'s text by pointing back
to file().
|
| |
|
|
|
|
|
| |
integer types, and y must be >= 0. See discussion at
http://sf.net/tracker/index.php?func=detail&aid=457066&group_id=5470&atid=105470
|
| |
|
|
|
|
| |
It's guaranteed now, assuming the platform modf() works correctly.
|
|
|
|
|
|
|
| |
instead of raising an error. This was one of the two issues that the
VPython folks were particularly problematic for their students. (The
other one was integer division...) This implements (my) SF patch
#440487.
|
|
|
|
|
| |
translation more difficult, as well as reading the English more
difficult for non-native speakers.
|
|
|
|
| |
"What's New in Python ..." documents.
|
|
|
|
| |
the support for containers and iteration.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
except that it always returns Unicode objects.
A new C API PyObject_Unicode() is also provided.
This closes patch #101664.
Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
|
|
|
|
|
|
| |
*decimal*.
This closes SF bug #127273.
|
|
|
|
|
|
|
|
| |
about the interpretation of radix 0 for int(), and added description of
the optional radix argument for long(). Based on comments from Reuben
Sumner <rasumner@users.sourceforge.net>.
This closes bug #121672.
|
|
|
|
|
|
| |
"name spaces".
Inconsistency noted by Keith Briggs <keith.briggs@bt.com>.
|
|
|
|
| |
input(), locals(), reload(), unicode(), and zip().
|
| |
|
|
|
|
|
|
| |
zip() description: Fix broken markup, three small markup consistency nits,
and one really minor usage nit. Introduce use of \moreargs instead
of hardcoding "..." with \optional.
|