summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* try to avoid gross incompatibilities with older versions of PythonSkip Montanaro2003-02-031-12/+12
|
* try to avoid gross incompatibilities with earlier versions of PythonSkip Montanaro2003-02-031-12/+12
|
* _PyLong_Sign(): remove an assert that needed a variable ndigits thatGuido van Rossum2003-02-031-3/+2
| | | | | | | | | wasn't used outside the assert (and hence caused a compiler warning about an unused variable in NDEBUG mode). The assert wasn't very useful any more. _PyLong_NumBits(): moved the calculation of ndigits after asserting that v != NULL.
* test_float_overflow(): make shuge (added last week) a little lessGuido van Rossum2003-02-031-1/+1
| | | | | | | | | huge. On older Linux systems, the C library's strtod() apparently gives up before seeing the end of the string when it sees so many digits that it thinks the result must be Infinity. (It is wrong, BTW -- there could be an "e-10000" hiding behind 10,000 digits.) The shorter shuge still tests what it's testing, without relying on strtod() doing a super job.
* Bug #676273: Rewrite paragraph in module docstringAndrew M. Kuchling2003-02-031-5/+5
|
* test_support.requires(): Instead of raising TestSkipped, raise a newFred Drake2003-02-032-2/+18
| | | | | | | | | exception, ResourceDenied. This is used to distinguish between tests that are skipped for other reasons (platform support, missing data, etc.) from those that are skipped because a "resource" has not been enabled. This prevents those tests from being reported as unexpected skips for the platform; those should only be considered unexpected skips if the resource were enabled.
* add note about new db2pickle.py and pickle2db.py scriptsSkip Montanaro2003-02-031-2/+19
|
* [Bug #679251] Use correct constant nameAndrew M. Kuchling2003-02-031-6/+6
|
* note db2pickle.py and pickle2db.pySkip Montanaro2003-02-031-0/+2
|
* dump database files to pickle formatSkip Montanaro2003-02-031-0/+116
|
* convert pickles generated by db2pickle.py back to database filesSkip Montanaro2003-02-031-0/+127
|
* Add __all__ (suggested by Raymond Hettinger).Greg Ward2003-02-031-3/+5
| | | | | Rename 'whitespace' global to '_whitespace' -- it's not part of the public interface.
* Remove test_b1 and test_b2 from the list of testsWalter Dörwald2003-02-031-2/+0
| | | | | that are no real tests, because test_b1 and test_b2 no longer exist. (Spotted by Raymond Hettinger)
* patch #664131, fix config command on OSX and LinuxJust van Rossum2003-02-031-1/+2
|
* Fix bugMichael W. Hudson2003-02-031-9/+15
| | | | | | | [ 676342 ] after using pdb readline does not work correctly using Michael Stone's patch so the completer functionality of cmd is only setup between preloop and postloop.
* add missing "summary" from long options listSkip Montanaro2003-02-031-1/+1
|
* * Add description of PyInt_FromString.Skip Montanaro2003-02-031-3/+23
| | | | | | * Correct description of PyFloat_FromString. While ignored, the pend argument still has to be given. * Typo in PyLong_FromString.
* version 4.1.4 (4.1.3 just released)Gregory P. Smith2003-02-031-1/+1
|
* fix for use on python 2.1Gregory P. Smith2003-02-031-2/+0
|
* Add PyFloat_FromString. Left the char **pend argument out of theSkip Montanaro2003-02-031-0/+5
| | | | | | description since while there, it is useless and ignored, according to Tim's commen. (PyInt_FromString is also not described, but PyLong_FromString is. Is the former deprecated?)
* cPickle now implements enough of protocol 2 to enable allGuido van Rossum2003-02-031-3/+3
| | | | cross-pickling tests.
* Fix comment typo.Walter Dörwald2003-02-021-1/+1
|
* Fix typos.Walter Dörwald2003-02-021-5/+5
|
* Fix typos.Walter Dörwald2003-02-021-4/+4
|
* Getting rid of macfs usage and almost all FSSpecs. Untested on MacOS9.Jack Jansen2003-02-021-18/+22
|
* The FSAliasFile routines also have an in/out parameter.Jack Jansen2003-02-022-4/+9
|
* cPickle support for TUPLE[123]. Incidentally plugged several undetectedTim Peters2003-02-023-91/+250
| | | | overflow holes in Pdata_grow().
* jeez, now I know why I shouldn't even _want_ to learn sh.Just van Rossum2003-02-021-4/+4
|
* Massive edits. If p is a pointer to a struct, and p->f is a pointer toTim Peters2003-02-021-89/+93
| | | | | | | | | | | | | | a function, then p->f(arg1, arg2, ...) is semantically the same as (*p->f)(arg1, arg2, ...) Changed all instances of the latter into the former. Given how often the code embeds this kind of expression in an if test, the unnecessary parens and dereferening operator were a real drag on readability.
* Minor cleanup, mostly adding horizontal whitespace, and breaking apartTim Peters2003-02-021-31/+30
| | | | embedded assignments, for readability.
* Implemented proto 2 NEWTRUE and NEWFALSE in cPickle.Tim Peters2003-02-022-2/+40
|
* Get ossaudiodev to compile on freebsd 4.7Neal Norwitz2003-02-022-1/+20
|
* long_from_binary_base(): Sped this a little by computing the # of bitsTim Peters2003-02-021-6/+6
| | | | needed outside the first loop.
* Beefed up the tests by putting in more "for proto in protocols:" outerTim Peters2003-02-022-86/+236
| | | | | | | loops. Renamed DATA and BINDATA to DATA0 and DATA1. Included disassemblies, but noted why we can't test them. Added XXX comment to cPickle about a mysterious comment, where pickle and cPickle diverge in how they number PUT indices.
* Add some notes that got python to work on the snake farmNeal Norwitz2003-02-021-0/+16
|
* Fix compiler warningNeal Norwitz2003-02-022-1/+2
|
* dump(): Added asserts that self->proto is sane.Tim Peters2003-02-021-1/+2
|
* dump(): Fixed a stupid bug in new code. It wasn't possible for the bugTim Peters2003-02-021-1/+1
| | | | | to have an effect before protocol 3 is invented, so no test can be written for this (yet).
* Add cPickle support for PROTO. Duplicated PROTO/LONG1/LONG4 code inTim Peters2003-02-022-4/+79
| | | | | the hitherto unknown (to me) noload() cPickle function, which is (a) something we don't test at all, and (b) pickle.py doesn't have.
* One more use of ifilter()Raymond Hettinger2003-02-021-3/+2
|
* SF patch #678899: Save time and memory by using itertools in sets module.Raymond Hettinger2003-02-021-19/+11
|
* Tightened a too-generous assert.Tim Peters2003-02-021-1/+1
|
* long(string, base) now takes time linear in len(string) when base is aTim Peters2003-02-024-29/+113
| | | | | power of 2. Enabled the tail end of test_long() in pickletester.py because it no longer takes forever when run from test_pickle.py.
* Fix memory leak: free memory storing the content model passed to theFred Drake2003-02-021-24/+48
| | | | | ElementDeclHandler by Expat. Fixes SF bug #676990.
* cPickle.c: Full support for the new LONG1 and LONG4. Added comments.Tim Peters2003-02-024-41/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assorted code cleanups; e.g., sizeof(char) is 1 by definition, so there's no need to do things like multiply by sizeof(char) in hairy malloc arguments. Fixed an undetected-overflow bug in readline_file(). longobject.c: Fixed a really stupid bug in the new _PyLong_NumBits. pickle.py: Fixed stupid bug in save_long(): When proto is 2, it wrote LONG1 or LONG4, but forgot to return then -- it went on to append the proto 1 LONG opcode too. Fixed equally stupid cancelling bugs in load_long1() and load_long4(): they *returned* the unpickled long instead of pushing it on the stack. The return values were ignored. Tests passed before only because save_long() pickled the long twice. Fixed bugs in encode_long(). Noted that decode_long() is quadratic-time despite our hopes, because long(string, 16) is still quadratic-time in len(string). It's hex() that's linear-time. I don't know a way to make decode_long() linear-time in Python, short of maybe transforming the 256's-complement bytes into marshal's funky internal format, and letting marshal decode that. It would be more valuable to make long(string, 16) linear time. pickletester.py: Added a global "protocols" vector so tests can try all the protocols in a sane way. Changed test_ints() and test_unicode() to do so. Added a new test_long(), but the tail end of it is disabled because it "takes forever" under pickle.py (but runs very quickly under cPickle: cPickle proto 2 for longs is linear-time).
* The C pickle now knows how to deal with a proto= argument. AssortedTim Peters2003-02-012-56/+95
| | | | code cleanups, and purged more references to text-vs-binary modes.
* removed bizarre construct, no idea why it was there...Just van Rossum2003-02-011-1/+0
|
* patch #678211 from Robin DunnJust van Rossum2003-02-011-7/+15
|
* icon support by Robin Dunn, closes patch #678218Just van Rossum2003-02-011-1/+14
|
* Removed needless include of errno.h.Tim Peters2003-02-011-4/+0
|