| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Makefile and used by the setup.py script. Ignore it in .cvsignore;
remove it in "make clobber".
|
|
|
|
|
|
|
|
| |
Add reference to the documentation for the Python documentation markup.
Fixed up a couple of descriptions.
This closes SF bug #430627.
|
|
|
|
| |
Suggested by the comments in SF bug #430627.
|
| |
|
| |
|
| |
|
|
|
|
| |
Also protect against multiple inclusion.
|
| |
|
| |
|
|
|
|
| |
(Just a change to a comment)
|
|
|
|
| |
the availability of nested scoping in Python 2.1 and 2.2.
|
|
|
|
|
|
| |
config.txt).
*** This is a bugfix-release candidate (for 2.1.1 and 2.0.1)! ***
|
|
|
|
|
|
|
| |
frequently used, and in particular this allows to drop the last
remaining obvious time-waster in the crucial lookdict() and
lookdict_string() functions. Other changes consist mostly of changing
"i < ma_size" to "i <= ma_mask" everywhere.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- actually return a result
- Compare with tag.localName in getElementsByTagNameNSHelper
|
|
|
|
|
|
|
| |
be possible to provoke unbounded recursion now, but leaving that to someone
else to provoke and repair.
Bugfix candidate -- although this is getting harder to backstitch, and the
cases it's protecting against are mondo contrived.
|
|
|
|
|
| |
This code is likely to get even hairier to squash core dumps due to
mutating comparisons, and it's hard enough to follow without that.
|
|
|
|
|
|
|
| |
In particular, the affect on existing list content was not sufficiently
explained.
This closes SF bug #429554.
|
|
|
|
| |
Bugfix candidate.
|
| |
|
|
|
|
|
| |
converting to string.
Critical bugfix candidate -- if you take this seriously <wink>.
|
|
|
|
| |
directives, which is the role of CPPFLAGS. Closes SF patch #414991.
|
|
|
|
| |
true reason for allocating the tuple before checking the dict size.
|
|
|
|
|
|
|
| |
code, less memory. Tests have uncovered no drawbacks. Christian and
Vladimir are the other two people who have burned many brain cells on the
dict code in recent years, and they like the approach too, so I'm checking
it in without further ado.
|
| |
|
|
|
|
| |
This closes SF bug #429059.
|
|
|
|
|
|
| |
fixing the reference to Thread.getDeamon() (should be isDaemon()).
This closes SF bug #429070.
|
|
|
|
|
|
|
|
| |
in release builds. Suggested by Martin v. Loewis.
I'm half tempted to macroize PyErr_Occurred too, as the whole thing could
collapse to just
_PyThreadState_Current->curexc_type
|
| |
|
|
|
|
| |
Documentation for the HTMLParser module, with small changes by FLD.
|
|
|
|
|
|
|
| |
random inputs: if you ran the test 100 times, you could expect it to
report a bogus failure. So loosened its expectations.
Also changed the way failing tests are printed, so that when run under
regrtest.py we get enough info to reproduce the failure.
|
|
|
|
|
|
|
|
|
|
|
| |
exactly once. But the test code can't know that, as the number of times
__cmp__ is called depends on internal details of the dict implementation.
This is especially nasty because the __hash__ method returns the address
of the class object, so the hash codes seen by the dict can vary across
runs, causing the dict to use a different probe order across runs. I
just happened to see this test fail about 1 run in 7 today, but only
under a release build and when passing -O to Python. So, changed the test
to be predictable across runs.
|
|
|
|
|
| |
Allow colons in the labels used for internal references, but do not
expose them when generating filename.
|
|
|
|
|
|
|
| |
PySequence_Size(), not PyObject_Size(): the later considers the mapping
methods as well as the sequence methods, which is not needed here. Either
should be equally fast in this case, but PySequence_Size() offers a better
conceptual match.
|
|
|
|
|
|
|
|
|
|
| |
absolute or relative.
remove(), rename() descriptions: Give more information about the cross-
platform behavior of these functions, so single-platform developers
can be aware of the potential issues when writing portable code.
This closes SF patch #426598.
|
|
|
|
|
|
|
|
| |
In the default branch, keep three ifs that are used if level == 0, the
most common case. Note that first if here is a slight optimization
for the 'O' format.
Second part of SF patch 426072.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Note that lots of code was re-indented.
Replace two-step of convertsimple() and convertsimple1() with
convertsimple() and helper converterr(), which is called to format
error messages when convertsimple() fails. The old code did all the
real work in convertsimple1(), but deferred error message formatting
to conversimple(). The result was paying the price of a second
function call on every call just to format error messages in the
failure cases.
Factor out of the buffer-handling code in convertsimple() and package
it as convertbuffer().
Add two macros to ease readability of Unicode coversions,
UNICODE_DEFAULT_ENCODING() and CONV_UNICODE, an error string.
The convertsimple() routine had awful indentation problems, primarily
because there were two tabs between the case line and the body of the
case statements. This patch reformats the entire function to have a
single tab between case line and case body, which makes the code
easier to read (and consistent with ceval). The introduction of
converterr() exacerbated the problem and prompted this fix.
Also, eliminate non-standard whitespace after opening paren and before
closing paren in a few if statements.
(This checkin is part of SF patch 426072.)
|
| |
|
|
|
|
|
|
| |
name of the test, only write the output file if it already exists (and
tell the user to consider removing it). This avoids the generation of
unnecessary turds.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Keyword arguments passed to builtin functions that don't take them are
ignored.
>>> {}.clear(x=2)
>>>
instead of
>>> {}.clear(x=2)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: clear() takes no keyword arguments
|
|
|
|
|
| |
was not available in Python 1.5.1. (Yes, a user actually tried to use this
with that version of Python!)
|