| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
Call set_lineno() in visitDiscard(), which will generate linenos for
discard statements, e.g. the statement "1/0"
Fixes SF bug #409587
|
|
|
|
| |
Change default dispatch to use extended call syntax in place of apply.
|
|
|
|
|
|
|
| |
Fixes SF buf #217004
Add method fixDocstring() to CodeGenerator. It converts the Discard
node containing the docstring into an assignment to __doc__.
|
| |
|
|
|
|
|
|
| |
consts, even if it is None.
Simplify _lookupName() by removing lots of redundant tests.
|
|
|
|
| |
Fix to SF bug #414743 based on Michael Hudson's patch #414750.
|
|
|
|
| |
This fixes 413135
|
|
|
|
| |
can close the request connection when it's done handling it.
|
| |
|
|
|
|
|
|
| |
wrongly. Fixed this.
This closes SF bug #412682.
|
| |
|
|
|
|
| |
instead of using the mapping() function.
|
|
|
|
| |
rebuild.
|
|
|
|
| |
This came out of SF bug #411881.
|
|
|
|
| |
This came out of SF bug #411881.
|
|
|
|
|
|
| |
This came out of SF bug #411881.
Note that there's another unqualified except: still.
|
|
|
|
| |
Try to do it for them, so our mkdir() operation doesn't fail.
|
|
|
|
|
|
| |
catch IOError as well as OverflowError. I found that on Tru64 Unix
this was raised; probably because the OS (or libc) doesn't support
large files but the architecture is 64 bits!
|
|
|
|
|
| |
the test to be marked as failing rather than skipped. Add an explicit
"import zlib" to prevent this.
|
| |
|
|
|
|
|
|
|
|
|
| |
Avoid ever using popen on Windows, since it's broken there.
Factor out the business of getting the summary line into splitdoc().
Use the modulename() routine in inspect.
Show all members of modules and classes rather than filtering on leading '_'.
Small typo and formtating fixes.
Don't show warnings when running "pydoc -k".
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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? :-( )
|