| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Fix SF bug #1545837: array.array borks on deepcopy. array.__deepcopy__()
needs to take an argument, even if it doesn't actually use it.
|
|
|
|
|
|
| |
a unicode string in a build with wide unicode (UCS-4) support.
I will forward port to 2.6. Can someone backport to 2.4?
|
| |
|
|
|
|
|
| |
a socket operation on a socket with a timeout, the exception will be
caught correctly. Previously, the exception was not caught.
|
|
|
|
| |
Also fix a SystemError when trying to assign to yield expressions.
|
|
|
|
| |
differs from both Linux and FreeBSD. Accepted by Neal Norwitz.
|
| |
|
|
|
|
| |
(implementation/tests contributed by Sam Ruby)
|
|
|
|
|
| |
copy is only in newer versions of zlib. This should allow zlibmodule
to work with older versions like the Tru64 buildbot.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In rare cases of strings specifying true values near sys.maxint,
and oddball bases (not decimal or a power of 2), int(string, base)
could deliver insane answers. This repairs all such problems, and
also speeds string->int significantly. On my box, here are %
speedups for decimal strings of various lengths:
length speedup
------ -------
1 12.4%
2 15.7%
3 20.6%
4 28.1%
5 33.2%
6 37.5%
7 41.9%
8 46.3%
9 51.2%
10 19.5%
11 19.9%
12 23.9%
13 23.7%
14 23.3%
15 24.9%
16 25.3%
17 28.3%
18 27.9%
19 35.7%
Note that the difference between 9 and 10 is the difference between
short and long Python ints on a 32-bit box. The patch doesn't
actually do anything to speed conversion to long: the speedup is
due to detecting "unsigned long" overflow more quickly.
This is a bugfix candidate, but it's a non-trivial patch and it
would be painful to separate the "bug fix" from the "speed up" parts.
|
| |
|
|
|
|
| |
I suppose this could be backported if anyone cares.
|
| |
|
|
|
|
| |
Most of the test_syntax changes are just updating the numbers.
|
|
|
|
|
|
| |
by Collin Winter.
Bugfix candidate (but I'm not going to bother).
|
|
|
|
|
|
|
| |
The new char-array used in ioctl calls wasn't explicitly NUL-terminated;
quite probably the cause for the test_pty failures on Solaris that we
circumvented earlier. (I wasn't able to reproduce it with this patch, but it
has been somewhat elusive to start with.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the 2005 Summer of Code).
The revision adds a number of new mailbox classes that support adding
and removing messages; these classes also support mailbox locking and
default to using email.Message instead of rfc822.Message.
The old mailbox classes are largely left alone for backward compatibility.
The exception is the Maildir class, which was present in the old module
and now inherits from the new classes. The Maildir class's interface
is pretty simple, though, so I think it'll be compatible with existing
code.
(The change to the NEWS file also adds a missing word to a different
news item, which unfortunately required rewrapping the line.)
|
|
|
|
|
|
| |
to load extension modules and now provides the dl module. As a result,
sys.setdlopenflags() now works correctly on these systems. (SF patch
#1454844)
|
|
|
|
|
|
| |
flag to -1 (unknown) since it can't tell from the date whether it should
be set.
patch from Aldo Cortesi
|
|
|
|
|
|
|
|
| |
Schroeder.
This was a fair amount of rework of the patch. Refactored test_fork1 so it
could be reused by the new tests for wait3/4. Also made them into new style
unittests (derive from unittest.TestCase).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was started by Mike Bland and completed by Guido
(with help from Neal).
This still needs a __future__ statement added;
Thomas is working on Michael's patch for that aspect.
There's a small amount of code cleanup and refactoring
in ast.c, compile.c and ceval.c (I fixed the lltrace
behavior when EXT_POP is used -- however I had to make
lltrace a static global).
|
| |
|
|
|
|
|
| |
specifications, raises IOErrors when proxies for unsupported protocols
are defined, and uses the https proxy on https redirections.
|
| |
|
| |
|
|
|
|
|
|
|
| |
This didn't crash on Linux, but valgrind complained.
I'm not sure if this test is valid on Windows.
Will backport.
|
|
|
|
|
|
| |
Fix signatures to conform to doc (also fixed ungetmouse()).
Will backport.
|
| |
|
|
|
|
| |
Modified since ast-arenas was implemented.
|
| |
|
| |
|
|
|
|
|
|
| |
exception (e.g., passing in an illegal argument).
Applies patch #1314396. Thanks Eric Blossom.
|
|
|
|
|
|
| |
Fix a typo that caused step to be ignored.
Will backport.
|
|
|
|
|
|
|
|
|
|
| |
This change implements a new bytecode compiler, based on a
transformation of the parse tree to an abstract syntax defined in
Parser/Python.asdl.
The compiler implementation is not complete, but it is in stable
enough shape to run the entire test suite excepting two disabled
tests.
|
| |
|
|
|
|
|
|
| |
in latin_1, but Python incorrectly assumes it is in UTF-8 format
Will backport.
|
|
|
|
|
|
| |
returns in cStringIO.c. Thanks to Andrew Bennetts.
This must be a backport candidate.
|
| |
|
|
|
|
|
|
| |
sanity checks on tzname if HAVE_TZNAME defined.
Closes bug #1096244. Thanks Gregory Bond.
|
| |
|
|
|
|
| |
the changes.
|
| |
|
|
|
|
| |
(First draft of patch contributed by Steven Bethard.)
|
|
|
|
|
|
| |
(Contributed by Niki W. Waibel.)
Simple renaming to avoid a conflict that prevented compilation on Solaris.
|
|
|
|
| |
If read() returned less than the number of bytes request, the full amount was subtracted from length instead of the actually read amount.
|
|
|
|
| |
Applies patch #1051866. Thanks Felix Wiemann.
|
| |
|
|
|
|
|
| |
Python's own setup.py that did the same thing (and tested on Solaris,
where LDSHARED is needed...)
|
| |
|
| |
|