| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
pickle.py
The code implicitly assumed that all ints fit in 4 bytes, causing all
sorts of mischief (from nonsense results to corrupted pickles).
Repaired that.
marshal.c
The int marshaling code assumed that right shifts of signed longs
sign-extend. Repaired that.
|
|
|
|
|
|
|
|
|
| |
bugs on sizeof(long)==8 machines. pickle.py has no idea what it's
doing with very large ints, and variously gets things right by accident,
computes nonsense, or generates corrupt pickles. cPickle fails on
cases 2**31 <= i < 2**32: since it *thinks* those are 4-byte ints
(the "high 4 bytes" are all zeroes), it stores them in the (signed!) BININT
format, so they get unpickled as negative values.
|
|
|
|
| |
parens, but no "while" test. Removed the former.
|
|
|
|
|
| |
Fix func arg processing to handle args in tuples.
In test code, skip names beginning with '.'.
|
|
|
|
|
|
|
|
|
| |
integers, but the std tests don't exercise most of them. Repair that.
CAUTION: I expect this to fail on boxes with sizeof(long)==8, in the
part of test_cpickle (but not test_pickle) trying to do a binary mode
(not text mode) load of the embedded BINDATA pickle string. Once that
hypothesized failure is confirmed, I'll fix cPickle.c.
|
|
|
|
| |
the logic better. Will be adding some additional tests later today.
|
|
|
|
|
| |
* Fixed TestLoader.loadTestsFromName() for nested packages
* Corrected the command-line usage summary
|
|
|
|
|
|
|
|
| |
Even though relative redirects are illegal, they are common
urllib treated every relative redirect as though it was to http,
even if the original was https://
As long as we're compensating for server bugs, might as well do
it properly.
|
|
|
|
|
|
|
| |
Add mangling support
Add get_children() and add_child() methods to Scope
Skip nodes when If test is a false constant
Add test code that checks results against symtable module
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Fix com_NEWLINE() so that is accepts arguments, which occurs for lines like:
stmt; # note trailing semicolon
Add XXX about checking for assignment to list comps
|
| |
|
|
|
|
| |
This was found by Neal Norwitz's PyChecker.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
http://groups.yahoo.com/group/medusa/message/333
It's clear that Medusa should not be checking for an empty buffer
via "buf is ''". The patch merely changes "is" to "==". However,
there's a mystery here all the same: Python attempts to store null
strings uniquely, so it's unclear why "buf is ''" ever returned
false when buf actually was empty. *Some* string operations produce
non-unique null strings, e.g.
>>> "abc"*0 is "abc"*0
0
>>>
but they're rare, and I don't see any such operations in asynchat.
|
| |
|
|
|
|
| |
on c.l.py.
|
|
|
|
| |
This is the accepted portion of patch #402498.
|
|
|
|
| |
have the std test suite exercise the Cookie doctests too.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
add a self-test using doctest. Results:
- The docstring needs to be a raw string because it uses \"...\".
- The oreo example was broken: the Set-Cookie output doesn't add
quotes around "doublestuff".
- I had to change the example that prints the class of a Cookie.Cookie
instance to avoid incorporating an arbitrary object address in the
test output.
Pretty good score for both doctest and the doc string, I'd say!
|
| |
|
|
|
|
|
|
| |
- Use push() instead of send(), and make these calls in main().
- Sleep a second to give the server thread time to initialize itself.
|
| |
|
|
|
|
| |
(How many opre of these will we need? :-( )
|
| |
|
|
|
|
| |
got the order backwards in a line (for .find()).
|
|
|
|
|
|
| |
define COLORS or COLOR_PAIRS until after start_color() is called,
but they were never added to the curses module. Fixed by adding
a wrapper around start_color(), similar to the wrapper around initscr().
|
|
|
|
| |
in order to support Objective-C.
|
|
|
|
| |
on a clarification sent to the www-dom list.
|
|
|
|
|
|
| |
This applies the patch Fred Drake created to fix it.
I'm checking it in since I had to apply the patch anyway in order
to test its behavior on Windows.
|
|
|
|
|
|
| |
the __getattr__() handler.
Text.splitText(): Update the length and nodeValue attributes.
|
| |
|
|
|
|
|
|
| |
http://sourceforge.net/tracker/?func=detail&aid=410708&group_id=5470&atid=105470
Added try/finally around Condition.wait() guts, so that the lock state gets
restored at the end no matter what happens.
|
|
|
|
|
| |
spec. Closes bug #412036.
Also reindent toprettyxml.
|
| |
|
| |
|
| |
|
|
|
|
| |
BSD-style OS'es. Makes sense, really.
|
| |
|
|
|
|
| |
CVS Revision string correctly, even under -kv.
|
|
|
|
|
| |
Add hyperlinks to PEPs at http://www.python.org/peps/pep-%04d.html
Remove script directory (dirname of sys.argv[0]) from sys.path.
|
|
|
|
|
| |
Add support to zipfile to support opening an archive represented by an
open file rather than a file name.
|
|
|
|
|
| |
gone; "konqueror" is the new name, and the command-line args are different.
kfmclient has not changed, though.
|
|
|
|
|
|
|
| |
used by Jython. The tests in this module expect C locale, so be
explicit about setting that (for CPython). However, in Jython, there
is no C locale, so instead be explicit about setting the US locale.
Closes the patch.
|
|
|
|
| |
to use "$test" when in Jython. Closes SF patch #403668.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change 1: Not all 'modules' in sys.modules have a
sensible __file__ attribute. Some of our java package
can have the __file__ attribute set to None.
Change 2: In jython we have the jython license file in
<root> and the CPython license file in <root>/Lib. By
reversing the search sequence jython will find and
show the jython license file before the CPython file.
Closes SF patch #405853.
|
|
|
|
|
|
| |
attribute. Jython does not have this function.
Closes SF patch #403667.
|
|
|
|
|
| |
after each newline, instead of just blindly inserting a space at
the start of each line. (Improvement suggested by Thomas Wouters)
|