| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c").
The argument can be an arbitrary iterable object.
|
|
|
|
| |
Reported by Neal Norwitz on python-dev.
|
|
|
|
|
| |
allows the debugger to find the source without asking the user to
browse for it.
|
|
|
|
|
|
|
| |
under NT - this allows distutils to work with the CVS version or the
source distribution.
Wrap a long line.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
On Win2K it thought 'foo' started at byte offset 0 instead of at the
pagesize, and on Win98 it thought 'foo' didn't exist at all. Somehow
or other this is related to the new "in memory file" gimmicks in
bsddb, but the old bsddb we use on Windows sucks so bad anyway I don't
want to bother digging deeper. Flushing the file in test_mmap after
writing to it makes the problem go away, so good enough.
|
|
|
|
|
|
| |
build's "undetected error" problems were originally detected with
extension types, but we can whitebox test the same situations with
new-style classes.
|
|
|
|
|
| |
run_suite() instead of run_unittest(). Best practice is to plan for
multiple test classes.
|
|
|
|
|
|
| |
Also add a test that Python doesn't die with SIGXFSZ if it exceeds the
file rlimit. (Assuming this will also test the behavior when the 2GB
limit is exceed on a platform that doesn't have large file support.)
|
| |
|
| |
|
| |
|
|
|
|
| |
for me on linux because of the inconsistent whitespace.
|
|
|
|
| |
SF patch 545486
|
|
|
|
|
|
|
|
|
|
|
|
| |
closes SF #514433
can now pass 'None' as the filename for the bsddb.*open functions,
and you'll get an in-memory temporary store.
docs are ripped out of the bsddb dbopen man page. Fred may want to
clean them up.
Considering this for 2.2, but not 2.1.
|
|
|
|
|
|
|
|
|
| |
http://www.python.org/sf/444708
This adds the optional argument for str.strip
to unicode.strip too and makes it possible
to call str.strip with a unicode argument
and unicode.strip with a str argument.
|
|
|
|
|
|
|
|
| |
- islink() now returns true for alias files
- walk() no longer follows aliases while traversing
- realpath() implemented, returning an alias-free pathname.
As this could conceivably break existing code I think it isn't a bugfix candidate.
|
|
|
|
| |
Provisional fix for writefile() [SF bug # 541730]
|
|
|
|
| |
Patch #540583: Open MS Help Docs if available.
|
| |
|
|
|
|
|
|
| |
test data: this test fails on WIndows now if universal newlines are
enabled (which they aren't yet, by default). I don't know whether the
test will also fail on Linux now.
|
|
|
|
| |
Fixes #494762.
|
|
|
|
| |
Related to SF bug #505315
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SF bug #522264 reported by Evelyn Mitchell.
The code included a comment about "STAR STAR" which was translated
into the code as the bogus attribute token.STARSTAR. This name never
caused an attribute error because it was never retrieved. The code
was based on an old version of the grammar that specified kwargs as
two tokens ('*' '*'). I checked as far back as 2.1 and didn't find
this production.
The fix is simple, because token.DOUBLESTAR is the only token
allowed. Also update the grammar fragment in com_arglist().
XXX I'll bet lots of other grammar fragments in comments are out of
date, probably in this module and in compile.c.
|
|
|
|
|
|
| |
Bug fix by mhammond.
Bug fix candidate for 2.2, not present in 2.1.
|
|
|
|
|
| |
Use try/finally to ensure all Queue locks remain stable.
Includes test case. Bugfix candidate.
|
|
|
|
|
|
|
|
| |
a str subclass.
test_descr.py/string_exceptions(): New sub-test.
For 2.3 only. Guido doesn't want this backported.
|
| |
|
|
|
|
| |
as reported by Eric C. Newton.
|
|
|
|
|
|
|
|
| |
Close a file before trying to unlink it, and apparently Cygwin needs
writes to an mmap'ed file to get flushed before they're visible.
Bugfix candidate, but I think only for the 2.2 line (it's testing
features that I think were new in 2.2).
|
|
|
|
|
|
|
|
|
|
|
| |
Change type_get_doc (the get function for __doc__) to look in tp_dict
more often, and if it finds a descriptor in tp_dict, to call it (with
a NULL instance). This means you can add a __doc__ descriptor to a
new-style class that returns instance docs when called on an instance,
and class docs when called on a class -- or the same docs in either
case, but lazily computed.
I'll also check this into the 2.2 maintenance branch.
|
|
|
|
|
|
|
|
|
| |
If a str or unicode method returns the original object,
make sure that for str and unicode subclasses the original
will not be returned.
This should prevent SF bug http://www.python.org/sf/460020
from reappearing.
|
|
|
|
|
|
| |
base class (in bdist_packager) and two subclasses which make use
of this base class: bdist_pkgtool (for Solaris) and bdist_sdux (for
HP-UX).
|
|
|
|
|
| |
Avoid adding Python wrappers around the underlying C profiler if possible;
the extra layer of calls can lead to confusion in interpreting the logs.
|
|
|
|
|
|
|
|
|
| |
PyNumber_InPlaceMultiply insisted on calling sq_inplace_repeat if it
existed, even if nb_inplace_multiply also existed and the arguments
weren't right for sq_inplace_repeat. Change this to only use
sq_inplace_repeat if nb_inplace_multiply isn't defined.
Bugfix candidate.
|
|
|
|
|
|
| |
(or platform independent). Closes SF bug #460357.
Bug fix candidate.
|
|
|
|
| |
intended whitespace.
|
|
|
|
| |
have the needed optional Japanese codecs installed.
|
|
|
|
|
| |
tab characters, so reverting the whitespace normalization. Barry,
please repair this.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
actually does. Note that the description in the Library Reference
manual is already accurate.
Bugfix candidate.
|
|
|
|
| |
order in which the tests are normally run.
|
| |
|
|
|
|
| |
to keep doing that in every test that wants to filter a warning.
|
|
|
|
|
| |
because it *is* skipped. I'm not entirely sure it should be skipped, but
figuring that out would take actual thought <wink>.
|
|
|
|
| |
resetwarnings() calls too.
|