| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[ 1181301 ] make float packing copy bytes when they can
which hasn't been reviewed, despite numerous threats to check it in
anyway if noone reviews it. Please read the diff on the checkin list,
at least!
The basic idea is to examine the bytes of some 'probe values' to see if
the current platform is a IEEE 754-ish platform, and if so
_PyFloat_{Pack,Unpack}{4,8} just copy bytes around.
The rest is hair for testing, and tests.
|
|
|
|
| |
Is anyone running the test suite regularly at the moment?
|
|
|
|
| |
278. Closes bug 967182.
|
| |
|
|
|
|
|
|
|
|
|
| |
crashing, and indirectly on the fact that hash codes in
random.randrange(1000000000) were very unlikely to exhibit collisions.
To see the problem, replace this number with 500 and observe the crash on
either del target[key] or del keys[i].
The fix prevents recursive mutation, just as in the key insertion case.
|
| |
|
|
|
|
|
|
| |
M NEWS.txt
M PyShell.py
M rpc.py
|
| |
|
|
|
|
| |
loop. Patch # 1190163 Michiel de Hoon
|
|
|
|
| |
(spotted by reading pypy-svn :)
|
| |
|
|
|
|
|
|
| |
quote ended it.
Closes bug #1192777. Thanks Christopher Smith.
|
| |
|
|
|
|
|
|
|
| |
conversion using the proper magic slot (e.g., __int__()). Also move conversion
code out of PyNumber_*() functions in the C API into the nb_* function.
Applied patch #1109424. Thanks Walter Doewald.
|
|
|
|
|
| |
defined in the makefile. Get CFLAGS from the Makefile, instead of
getting OPT, BASE_CFLAGS and EXTRA_CFLAGS individually.
|
|
|
|
|
|
|
| |
to be used for flags that change binary compatibility.
Distutils was tweaked to also use the variable if used during compilation of
the interpreter.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
byte, even if the user has passed a size parameter. This extra byte shouldn't
cause a buffer overflow in the tokenizer. The original plan was to return a line
ending in '\r', which might be recognizable as a complete line and skip any '\n'
that was read afterwards. Unfortunately this didn't work, as the tokenizer only
recognizes '\n' as line ends, which in turn lead to joined lines and
SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It
can only happen with a temporarily exhausted bytestream now anyway.)
Fixes parts of SF bugs #1163244 and #1175396.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
'parser' module and 'compiler' package.
Closes patch #1176012. Thanks logistix.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
test_site often failed under "regrtest.py -r", because this xmlrpc test
left sys with a setdefaultencoding attribute, but loading site.py removes
that attribute and test_site.py verifies the attribute is gone. Changed
this test to get rid of sys.setdefaultencoding if it didn't exist when
this test started.
Don't know whether this is a bugfix (backport) candidate.
|
|
|
|
|
|
|
|
| |
* resp[:1] in '123' # after Py2.2, this allowed blank responses to pass.
* replace <> with !=
* provide a usage message for empty command line calls
Backport candidate.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
the last character read is "\r" (and size is None, i.e. we're allowed to
call read() multiple times), so that we can return the correct line ending
(this additional character might be a "\n").
If the stream is temporarily exhausted, we might return the wrong line ending
(if the last character read is "\r" and the next one (after the byte stream
provides more data) is "\n", but at least the atcr member ensure that we
get the correct number of lines (i.e. this "\n" will not be treated as
another line ending.)
|
|
|
|
| |
so there's no need to pad after off_t members. And a small typo fix.
|
| |
|
|
|
|
| |
properly encoded and include the encoding in the Content-Type header.
|
|
|
|
|
|
|
|
|
| |
[ 1165306 ] Property access with decorator makes interpreter crash
Don't allow the creation of unbound methods with NULL im_class, because
attempting to call such crashes.
Backport candidate.
|
|
|
|
|
|
| |
Patch by Ilya Sandler.
Bugfix candidate.
|
| |
|
|
|
|
|
|
|
| |
work (SyntaxErrors at compile time).
I slammed in what looked like the obvious fixes, but someone who
understands this file should check my work.
|
| |
|
|
|
|
|
|
|
| |
instead of raising a TypeError. Allows other types to successfully
implement __radd__() style methods.
* Remove future division import from test suite.
* Remove test suite's shadowing of __builtin__.dir().
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
so that bdist_wininst can specify 'any'.
|
| |
|
|
|
|
|
|
| |
various iterables.
(Copied from test_deque.py as suggested by Jim Jewett in SF bug #1166274)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(Copied from test_deque.py as suggested by Jim Jewett in SF bug #1166274)
|