| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
on exception classes. Would require introducing a tp_unicode slot to make it
work otherwise.
Fixes bug #1551432 and will be backported.
|
|
|
|
|
| |
as first argument, and failed with a 'bad argument to internal function'
error message.
|
|
|
|
|
|
|
| |
and they gave a strange error message from PyArg_ParseTuple:
function takes exactly 2 arguments (3 given).
With tests.
|
|
|
|
| |
getmodule(). Patch #1553314
|
|
|
|
| |
offending buildbot
|
| |
|
|
|
|
|
| |
Also make sure that every exception class has __module__ set to
'exceptions'.
|
| |
|
| |
|
|
|
|
| |
subprocess module.
|
|
|
|
|
| |
the function name was placed into a regex pattern and the unbalanced paren
caused re.compile() to report an error
|
|
|
|
| |
module-level globals instead of calling sys.exc_info(). Reported by Russell Warren
|
|
|
|
|
|
|
|
| |
- gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly.
- iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312
codepoints to conform the standard.
- iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 2013:2
codepoints now.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
generator expressions (x for x, in ... ) works again.
Sigh, I only fixed for loops the first time, not list comps and genexprs too.
I couldn't find any more unpacking cases where there is a similar bug lurking.
This code should be refactored to eliminate the duplication. I'm sure
the listcomp/genexpr code can be refactored. I'm not sure if the for loop
can re-use any of the same code though.
Will backport to 2.5 (the only place it matters).
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Debian sparc buildbots. Since this goes through a lot of tests
and hits the disk a lot it could be slow (especially if NFS is involved).
I'm not sure if that's the problem, but printing periodic msgs shouldn't hurt.
The code was stolen from test_compiler.
|
| |
|
|
|
|
| |
decimal.localcontext()
|
|
|
|
| |
Needs backport to 2.5.1 and earlier.
|
|
|
|
| |
who didn't run the test suite before committing...)
|
|
|
|
| |
module and add unit tests. (python-dev discussion is ongoing regarding what we do about Python 2.5)
|
| |
|
|
|
|
|
| |
OS speicifc path modules import them.
- Have os2emxpath import common functions fron ntpath instead of using copies
|
|
|
|
| |
whitespace in expected output. Stop that.
|
| |
|
|
|
|
|
| |
bogus bytecode. It is unclear whether this is a real bug or a "won't
fix" case like bogus_code_obj.py.
|
| |
|
| |
|
|
|
|
|
| |
array.__deepcopy__() needs to take an argument, even if it doesn't actually
use it. Will backport to 2.5 and 2.4 (if applicable.)
|
|
|
|
|
|
|
| |
OverflowError while x*x succeeds and produces infinity; apparently
these inconsistencies cannot be fixed across ``all'' platforms and
there's a widespread feeling that therefore ``every'' platform
should keep suffering forevermore. Ah well.
|
|
|
|
|
| |
Now that COMMENT tokens are reliably followed by NL or NEWLINE,
there is never a need to add extra newlines in untokenize.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Small: Always generate a NL or NEWLINE token following
a COMMENT token. The old code did not generate an NL token if
the comment was on a line by itself.
Large: The output of untokenize() will now match the
input exactly if it is passed the full token sequence. The
old, crufty output is still generated if a limited input
sequence is provided, where limited means that it does not
include position information for tokens.
Remaining bug: There is no CONTINUATION token (\) so there is no way
for untokenize() to handle such code.
Also, expanded the number of doctests in hopes of eventually removing
the old-style tests that compare against a golden file.
Bug fix candidate for Python 2.5.1. (Sigh.)
|
|
|
|
|
|
| |
inf) but didn't; added a test to test_float to verify that, and ignored the
ERANGE value for errno in the pow operation to make the new test pass (with
help from Marilyn Davis at the Google Python Sprint -- thanks!).
|
| |
|
| |
|
|
|
|
|
|
| |
a unicode string in a build with wide unicode (UCS-4) support.
This code could be improved, so add an XXX comment.
|
|
|
|
|
|
| |
I'm undecided if this should be backported to 2.5 or 2.5.1.
Armin suggested to wait (I'm of the same opinion). Thomas W thinks
it's fine to go in 2.5.
|
|
|
|
|
|
| |
Patch # 1543897.
Will backport to 2.5
|
| |
|
|
|
|
| |
discussion).
|
|
|
|
| |
on systems with low clock resolution.
|
|
|
|
| |
generated for generator expressions.
|
|
|
|
|
|
|
|
|
| |
'Save Copy As' and 'Print' hotkeys to 'y' and 't'. Change the
Shell menu hotkey from 's' to 'l'.
M Bindings.py
M PyShell.py
M NEWS.txt
|
|
|
|
| |
ignore data that arrives before the opening start tag
|
|
|
|
|
|
|
|
|
|
| |
of the Python part of a callback function to C. If it cannot be
converted, call PyErr_WriteUnraisable with the exception we got.
Before, arbitrary data has been passed to the calling C code in this
case.
(I'm not really sure the NEWS entry is understandable, but I cannot
find better words)
|