summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.Walter Dörwald2003-02-031-1/+1
|
* - Thanks to Scott David Daniels, a subtle bug in how the zlibGuido van Rossum2003-02-035-189/+495
| | | | | | | | extension implemented flush() was fixed. Scott also rewrite the zlib test suite using the unittest module. (SF bug #640230 and patch #678531.) Backport candidate I think.
* SF #661437, apply() should get PendingDeprecationNeal Norwitz2003-02-031-0/+3
|
* Fix typos.Walter Dörwald2003-02-031-2/+2
|
* Port test_pow.py to PyUnit. From SF patch #662807Walter Dörwald2003-02-032-149/+110
|
* _slotnames(): this is a fairly expensive calculation. Cache theGuido van Rossum2003-02-031-6/+23
| | | | | | | outcome as __slotnames__ on the class. (Like __slots__, it's not safe to ask for this as an attribute -- you must look for it in the specific class's __dict__. But it must be set using attribute notation, because __dict__ is a read-only proxy.)
* [Bug #676292] BaseHTTPServer incorrectly parses protocol; fix by Andrew DalkeAndrew M. Kuchling2003-02-031-5/+16
| | | | | | | | | * Treat major, minor numbers of HTTP version as separate integers * Fix errors if version string is "HTTP/1.2.3" or even simply "BLAH". * send_error() checks if 'self.command' is a HEAD. However, if there's an error parsing the first line of the HTTP request the self.command wasn't set yet; force self.command to be initialized to None.
* _slotnames(): exclude __dict__ and __weakref__; these aren't realGuido van Rossum2003-02-031-1/+2
| | | | slots even though they can be listed in __slots__.
* Support keyword argument 'bin', with a pending deprecation warning.Guido van Rossum2003-02-031-5/+13
|
* Proper testing of proto 2 in part requires checking that the new opcodesTim Peters2003-02-031-11/+10
| | | | | | are actually getting generated. Add helpered method ensure_opcode_in_pickle to do a correct job checking for that. Changed test_long1(), test_long4(), and test_short_tuples() to use it.
* brainoSkip Montanaro2003-02-031-2/+2
|
* PDATA_PUSH and PDATA_APPEND. documented, and reformatted for betterTim Peters2003-02-031-30/+38
| | | | | | | | | readability. load_bool(): Now that I know the intended difference between _PUSH and _APPEND, used the right one. Pdata_grow(): Squashed out a redundant overflow test.
* Bug #678077: Suggest alternative to os.getlogin()Andrew M. Kuchling2003-02-031-1/+3
|
* 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
|