| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
python-docs.
|
|
|
|
|
| |
can vary by platform and installation.
Based on suggestion to python-docs.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
instead. This fixes bug #488420.
|
|
|
|
|
| |
is not handled properly.
This closes SF bug #485153.
|
|
|
|
|
|
| |
of references that now state that these attributes have been removed,
directing the reader to the dir() function.
This closes SF bug #456420.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This closes SF bug #488387.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
1.24 wouldn't have occurred in the first place.
Remove a debug print command accidentally inserted by Martin in 1.23.
|
| |
|
|
|
|
| |
all in MacPython. (why did noone ever notice this?)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
This closes SF bug #487308.
|
|
|
|
| |
instead of PyOS_snprintf; add some relevant comments and asserts.
|
|
|
|
|
|
|
|
| |
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__.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
on keybinding configuration
|
|
|
|
| |
The semantics aren't enough like system() to add this to the main Lib folder, but it is pretty useful nonetheless for selected people.
|
|
|
|
|
|
|
|
| |
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__.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
easier to find. Based on the comment from Steve Alexander on the
zope-coders mailing list.
|
| |
|
|
|
|
| |
Fixes #485679.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
ends. Also, when there is trouble, ensure the buffer has a traiing
0 byte.
|
|
|
|
|
|
| |
than the argument string size, copy as many bytes as will fit
(including a terminating '\0'), rather than not copying anything.
This to make it satisfy the C99 spec.
|
| |
|
|
|
|
|
|
|
|
| |
Bugfix candidate.
int_repr(): we've never had a buffer big enough to hold the largest
possible result on a 64-bit box. Now that we're using snprintf instead
of sprintf, this can lead to nonsense results instead of random stack
corruption.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Use the new seealso* environment in the section pointing out other GUI
toolkits.
|
|
|
|
|
|
|
|
| |
to seealso, but does not add the "See also:" header or put the content in a
box in the HTML version.
Updated the description of \seeurl to better indicate when it should be used;
the old description was written before we had \seetitle.
|
| |
|