- 03 Dec, 2001 32 commits
-
-
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
-
Jack Jansen authored
all in MacPython. (why did noone ever notice this?)
-
Guido van Rossum authored
SF patch #480716 by Greg Chapman fixes the problem that super's __get__ method always returns an instance of super, even when the instance whose __get__ method is called is an instance of a subclass of super. Other issues fixed: - super(C, C()).__class__ would return the __class__ attribute of C() rather than the __class__ attribute of the super object. This is confusing. To fix this, I decided to change the semantics of super so that it only applies to code attributes, not to data attributes. After all, overriding data attributes is not supported anyway. - While super(C, x) carefully checked that x is an instance of C, super(C).__get__(x) made no such check, allowing for a loophole. This is now fixed.
-
Guido van Rossum authored
-
Martin v. Löwis authored
-
Fred Drake authored
This closes SF bug #487308.
-
Tim Peters authored
instead of PyOS_snprintf; add some relevant comments and asserts.
-
Guido van Rossum authored
slot_tp_descr_set(): When deleting an attribute described by a descriptor implemented in Python, the descriptor's __del__ method is called by the slot_tp_descr_set dispatch function. This is bogus -- __del__ already has a different meaning. Renaming this use of __del__ is renamed to __delete__.
-
Tim Peters authored
use wrappers on all platforms, to make this as consistent as possible x- platform (in particular, make sure there's at least one \0 byte in the output buffer). Also document more of the truth about what these do. getargs.c, seterror(): Three computations of remaining buffer size were backwards, thus telling PyOS_snprintf the buffer is larger than it actually is. This matters a lot now that PyOS_snprintf ensures there's a trailing \0 byte (because it didn't get the truth about the buffer size, it was storing \0 beyond the true end of the buffer). sysmodule.c, mywrite(): Simplify, now that PyOS_vsnprintf guarantees to produce a \0 byte.
-
Steven M. Gava authored
on keybinding configuration
-
Jack Jansen authored
A system() lookalike that sends commands to ToolServer, by Daniel Brotsky. The semantics aren't enough like system() to add this to the main Lib folder, but it is pretty useful nonetheless for selected people.
-
Guido van Rossum authored
slot_tp_descr_set(): When deleting an attribute described by a descriptor implemented in Python, the descriptor's __del__ method is called by the slot_tp_descr_set dispatch function. This is bogus -- __del__ already has a different meaning. Renaming this use of __del__ is renamed to __delete__.
-
- 02 Dec, 2001 8 commits
-
-
Jack Jansen authored
Now sys.executable points to the executable again, in stead of to the shared library. The latter is used only for locating the python home.
-
Jack Jansen authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Fred Drake authored
-
Fred Drake authored
easier to find. Based on the comment from Steve Alexander on the zope-coders mailing list.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
Fixes #485679.
-