| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Closes SF bug #776181. Should be backported.
|
| |
|
|
|
|
|
|
|
|
| |
objects get made
- improve the description of attribute retrieval from
classes and class instances
- add brief documentation of static method and
class method objects.
|
|
|
|
| |
Prompted by a discussion on comp.lang.python.
|
|
|
|
| |
text. There needs to be a better way.
|
|
|
|
| |
Closes SF bug #453683.
|
| |
|
|
|
|
|
|
|
| |
* Documented __slots__
* Documented __metaclass__
Shamelessly plagarized from Guido's tutorial.
|
|
|
|
| |
get the _ character to format like a normal character
|
|
|
|
| |
* Fix minor parenthesis matching errors in ref3.tex.
|
|
|
|
| |
does not cause output of its argument.
|
|
|
|
| |
index entry. Suggested to python-docs.
|
|
|
|
| |
- use a TeX "tie" to prevent word-wrapping in "section x.y"-like text
|
|
|
|
|
|
|
| |
checking them in? Oh well, this fixes various obvious mistakes and
changes a subsubsubsection (which doesn't exist) into a subsubsection
(which does). I'm not sure this matches the intent, but it seems to
read OK on a quick skim.
|
|
|
|
| |
stuff, and changed 'property' to 'descriptor'.
|
| |
|
| |
|
|
|
|
|
| |
Backport candidate. All but one or two of these changes
are applicable to 2.2.2.
|
|
|
|
|
|
|
|
| |
[ 643835 ] Set Next Statement for Python debuggers
with a few tweaks by me: adding an unsigned or two, mentioning that
not all jumps are allowed in the doc for pdb, adding a NEWS item and
a note to whatsnew, and AuCTeX doing something cosmetic to libpdb.tex.
|
|
|
|
| |
Document the indices() method of slice objects.
|
|
|
|
| |
just version 1.5. Closes SF bug 577793.
|
|
|
|
|
|
|
|
| |
version of PySlice_GetIndicesEx"):
> OK. Michael, if you want to check in indices(), go ahead.
Then I did what was needed, but didn't check it in. Here it is.
|
| |
|
|
|
|
|
|
|
|
|
| |
[ 400998 ] experimental support for extended slicing on lists
somewhat spruced up and better tested than it was when I wrote it.
Includes docs & tests. The whatsnew section needs expanding, and arrays
should support extended slices -- later.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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].
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
This partially fixes SF bug #492619.
Fix a typo & use the new notice environment instead of (ab)using the \note
and \warning macros.
|
| |
|
|
|
|
| |
with Python 2.2.
|
|
|
|
| |
Should this be labeled as changed? How?)
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
as container objects rather than as mapping objects (in the index entries).
Change the section heading and intro sentence to be a little more general,
since that's how things have actually evolved.
|
| |
|
|
|
|
| |
in one place.
|
|
|
|
| |
implementing numeric objects in Python.
|
|
|
|
| |
as the callable, so use more flexible language.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
__hash__() up to date (re: use of objects which define these methods
as dictionary keys).
This closes SF bug #427698.
|