| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
modified from setup.py version "1.37" to support BeOS build.
Contributed by Donn Cave (SF patch 411830).
|
|
|
|
|
|
| |
wrongly. Fixed this.
This closes SF bug #412682.
|
|
|
|
| |
Added reference to the webbrowser module from the nsremote description.
|
| |
|
| |
|
|
|
|
| |
Add a description of the ReferenceError exception.
|
| |
|
|
|
|
|
|
| |
Michael Hudson suggested this fox for the Tru64 problem (SF bug
232597). It looks reasonable, it works on Tru64, and it doesn't beak
anything on Linux, so I say go for it.
|
| |
|
|
|
|
| |
instead of using the mapping() function.
|
|
|
|
| |
rebuild.
|
|
|
|
|
|
| |
Update the attribution for the "Curses Programming with Python" How-To.
Change the way the reference to the Demo/curses/ directory is marked up.
|
| |
|
| |
|
|
|
|
|
| |
the way we handle verbatim, so that it picks up the same indentation and
minipage behavior.
|
|
|
|
| |
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".
|
| |
|
|
|
|
| |
size. This constrains them to fit in one page again.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
of 2-space and 4-space indents. Whatever, when I saw the checkin diff it
was clear that what my editor thinks a tab means didn't match this module's
belief. Removed all the tabs from the lines I added and changed, left
everything else alone.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pickled into the signed(!) 4-byte BININT format, so were getting unpickled
again as negative ints. Repaired that.
Added some minimal docs at the top about what I've learned about the pickle
format codes (little of which was obvious from staring at the code,
although that's partly because all the size-related bugs greatly obscured
the true intent of the code).
Happy side effect: because save_int() needed to grow a *proper* range
check in order to fix this bug, it can now use the more-efficient BININT1,
BININT2 and BININT formats when the long's value is small enough to fit
in a signed 4-byte int (before this, on a sizeof(long)==8 box it always
used the general INT format for negative ints).
test_cpickle works again on sizeof(long)==8 machines. test_pickle is
still busted big-time.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
"Python 1.6.1".
|
|
|
|
|
|
| |
(Yes, this is a new feature right before the 2.1 release. No, I can't
imagine this would seriously break anybody's code. In fact, most
users of this script are probably *happy* to see this addition.)
|
|
|
|
| |
parens, but no "while" test. Removed the former.
|
|
|
|
|
|
|
|
|
|
|
| |
binary pickle, and the latter contains a pickle of a negative Python
int i written on a sizeof(long)==4 box (and whether by cPickle or
pickle.py), it's read incorrectly as i + 2**32. The patch repairs that,
and allows test_cpickle.py (to which I added a relevant test case earlier
today) to work again on sizeof(long)==8 boxes.
There's another (at least one) sizeof(long)==8 binary pickle bug, but in
pickle.py instead. That bug is still there, and test_pickle.py doesn't
catch it yet (try pickling and unpickling, e.g., 1 << 46).
|
|
|
|
|
|
| |
think that a command starting with '#' is a comment, so move the one
comment in such a position (in the rule for building $(LIBRARY)) to a
harmless position.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Update the docstrings to no longer refer to the obsolete TERMIOS
module.
This is a partial acceptance of SF patch #413419.
|
|
|
|
| |
the logic better. Will be adding some additional tests later today.
|
| |
|
|
|
|
| |
This closes SF bug #414279.
|
|
|
|
|
|
|
| |
noted by Steve Holden.
This closes SF bug #413876.
|
|
|
|
|
| |
* 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
|
| |
|
| |
|