- 04 Dec, 2001 15 commits
-
-
Guido van Rossum authored
There's now a new structmember code, T_OBJECT_EX, which is used for all __slot__ variables (except __weakref__, which has special behavior anyway). This new code raises AttributeError when the variable is NULL rather than converting NULL to None.
-
Fred Drake authored
insertion work. This fix makes things at least somewhat more explicit, and adds a little sanity checking (and verbosity!) to add_bbl_and_idx_dummy_commands().
-
Fred Drake authored
by a question to webmaster). Re-wrapped a long line.
-
Guido van Rossum authored
result would overflow an int. Check for this. (SF bug #488482, Armin Rigo.)
-
Fred Drake authored
-
Guido van Rossum authored
There's now a new structmember code, T_OBJECT_EX, which is used for all __slot__ variables (except __weakref__, which has special behavior anyway). This new code raises AttributeError when the variable is NULL rather than converting NULL to None.
-
Guido van Rossum authored
string object (or a Unicode that's trivially converted to ASCII). PyObject_GetAttr(): add an 'else' to the Unicode test like PyObject_SetAttr() already has.
-
Guido van Rossum authored
(Not sure if this is legal according to the Google terms of service. :-)
-
Jack Jansen authored
Patch by Jason Harper to allow IDE to work again under MacOS 8.1. Plus appearance support for Wlist frames and focussing. Plus commented-out appearance support for the same for Wtext, which still needs some work.
-
Guido van Rossum authored
-
Tim Peters authored
-
Tim Peters authored
own interfered with including Python.h. Remove Python's assert.h.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
The error for assignment to __debug__ used ste->ste_opt_lineno instead of n->n_lineno. The latter was at best incorrect; often the slot was uninitialized. Two fixes here: Use the correct lineno for the error. Initialize ste_opt_lineno in PySymtable_New(); while there are no current cases where it is referenced unless it has already been assigned to, there is no harm in initializing it.
-
Tim Peters authored
-
- 03 Dec, 2001 25 commits
-
-
Fred Drake authored
from Skip Montanaro. There is one weirdness in the final index for HTML, but that is low priority.
-
Fred Drake authored
Andrew Koenig.
-
Fred Drake authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
Reflow paragraph
-
Tim Peters authored
sprintf -> PyOS_snprintf. This is the last of this stuff I intend to do.
-
Guido van Rossum authored
and assign_slice() weren't properly DECREF'ing the temporary slice object they created. (Shame on me. :-)
-
Guido van Rossum authored
Armin Rigo (SF bug #488477). Added a testcase to test_unpack_iter() in test_iter.py.
-
Just van Rossum authored
-
Barry Warsaw authored
#486375, but not the rest of it, since that changes the documented semantics of encode().
-
Guido van Rossum authored
Py_DECREF(arg) after the PyErr_NoMemory() call. (Armin Rigo, SF bug #488477.)
-
Fred Drake authored
sent to python-docs.
-
Barry Warsaw authored
pass. Closes SF # 485080
-
Fred Drake authored
python-docs.
-
Fred Drake authored
can vary by platform and installation. Based on suggestion to python-docs.
-
Fred Drake authored
mutable! We do not want to shock anyone. This closes SF bug #483805. Re-factor so that the description of the "access" keyword parameter is not repeated in both the descriptions of mmap(). Also, only make sure the first description of mmap() appears in the index. The the index link is followed, the first is now used to locate the page on the screen; chances are really good both will be visible. This avoids the problem that the index entry for the second is selected and the first version is not visible, making the reader consider that mmap() is not available on Windows.
-
Just van Rossum authored
instead. This fixes bug #488420.
-
Fred Drake authored
is not handled properly. This closes SF bug #485153.
-
Fred Drake authored
of references that now state that these attributes have been removed, directing the reader to the dir() function. This closes SF bug #456420.
-
Fred Drake authored
In goahead(), use a bound version of rawdata.startswith() since we use the same method all the time and never change the value of rawdata. This can save a lot of bound method creation.
-
Fred Drake authored
-
Fred Drake authored
This closes SF bug #488387.
-
Guido van Rossum authored
Rather than tweaking the inheritance of type object slots (which turns out to be too messy to try), this fix adds a __hash__ to the list and dict types (the only mutable types I'm aware of) that explicitly raises an error. This has the advantage that list.__hash__([]) also raises an error (previously, this would invoke object.__hash__([]), returning the argument's address); ditto for dict.__hash__. The disadvantage for this fix is that 3rd party mutable types aren't automatically fixed. This should be added to the rules for creating subclassable extension types: if you don't want your object to be hashable, add a tp_hash function that raises an exception. Also, it's possible that I've forgotten about other mutable types for which this should be done.
-
Guido van Rossum authored
1.24 wouldn't have occurred in the first place. Remove a debug print command accidentally inserted by Martin in 1.23.
-
Guido van Rossum authored
-