summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added license notices that are required to be included in theRaymond Hettinger2004-03-031-1/+331
| | | | documentation as well as the source code.
* Have strftime() check its time tuple argument to make sure the tuple's valuesBrett Cannon2004-03-026-4/+112
| | | | | | | | | | are within proper boundaries as specified in the docs. This can break possible code (datetime module needed changing, for instance) that uses 0 for values that need to be greater 1 or greater (month, day, and day of year). Fixes bug #897625.
* Replace left(), right(), and __reversed__() with the more general purposeRaymond Hettinger2004-03-014-148/+110
| | | | | | | __getitem__() and __setitem__(). Simplifies the API, reduces the code size, adds flexibility, and makes deques work with bisect.bisect(), random.shuffle(), and random.sample().
* Add pystack definition to Misc/gdbinit with some explanation of its behaviorSkip Montanaro2004-03-013-0/+30
| | | | | and add flag comments to ceval.c and main.c alerting people to the coupling between pystack and the layout of those files.
* Make deque_type static so namespace is not polluted.Neal Norwitz2004-02-291-2/+2
|
* Cleanup: remove test file after it is used.Neal Norwitz2004-02-291-0/+1
|
* Improvements to collections.deque():Raymond Hettinger2004-02-294-18/+229
| | | | | | | | * Add doctests for the examples in the library reference. * Add two methods, left() and right(), modeled after deques in C++ STL. * Apply the new method to asynchat.py. * Add comparison operators to make deques more substitutable for lists. * Replace the LookupErrors with IndexErrors to more closely match lists.
* - Allow easy opening of experimental database, if pimp >= 0.4Jack Jansen2004-02-281-9/+29
| | | | - Allow easy access to the PackMan homepage, for even more databases.
* getDefaultDatabase() should be a toplevel function, not a method of theJack Jansen2004-02-281-48/+46
| | | | preferences object.
* Started on version 0.4: better scheme for finding correct database:Jack Jansen2004-02-281-4/+50
| | | | | | | - Try not only "darwin-7.X.Y" but also "darwin-7.X" and "darwin-7", so far we've never had to create anew database for a minor release. - Distinguish between the various different installs (user-installed MacPython, apple-installed MacPython, other).
* Minor documentation changesVinay Sajip2004-02-283-9/+11
|
* Use versionadded for new featuresNeal Norwitz2004-02-281-0/+4
|
* Get rid of unused variableNeal Norwitz2004-02-281-1/+0
|
* Add version changed/added to docNeal Norwitz2004-02-281-0/+2
|
* Speed-up the joiner call by avoiding Py_BuildValue().Raymond Hettinger2004-02-271-1/+5
|
* made cPickle fall back to the copy_reg/reduce protocol,Christian Tismer2004-02-261-0/+5
| | | | | if a function cannot be stored as global. This is for compatibility with pickle.py .
* Ignore sizehint argument. Fixes SF #844561.Marc-André Lemburg2004-02-261-10/+4
|
* Oops, didn't mean to commit the removal of float_compare!Michael W. Hudson2004-02-261-1/+1
|
* Pass a variable that actually exists to PyFPE_END_PROTECT inMichael W. Hudson2004-02-261-2/+2
| | | | float_richcompare. Reported on c.l.py by Helmut Jarausch.
* Fixes SF bug # 778421Gregory P. Smith2004-02-264-6/+39
| | | | | | | | | * Fixed a bug in the compatibility interface set_location() method where it would not properly search to the next nearest key when used on BTree databases. [SF bug id 788421] * Fixed a bug in the compatibility interface set_location() method where it could crash when looking up keys in a hash or recno format database due to an incorrect free().
* Make _spawn_posix be ready for EINTR. waitpid(2) can be interruptedHye-Shik Chang2004-02-241-1/+8
| | | | | by SIGCHLD or sth because no signal is masked before. This fixes an optimized installation problem on FreeBSD libpthread.
* kLsUnknownType and kLSUnknownCreator were ints in stead of OSTypes.Jack Jansen2004-02-242-1/+5
| | | | Reported by Bob Ippolito.
* Setup file to allow the QuickTime for 2.4 to be compiledJack Jansen2004-02-242-0/+17
| | | | for MacPython 2.3 (and, hopefully, python 2.3 for windows too).
* fix typo in reference to RFC 3464 DSN MIME typeFred Drake2004-02-241-1/+1
|
* Fix two bugs in the new do_open() implementation for HTTPHandler.Jeremy Hylton2004-02-242-7/+19
| | | | | | | | | Invoke the standard error handlers for non-200 responses. Always supply a "Connection: close" header to prevent the server from leaving the connection open. Downstream users of the socket may attempt recv()/read() with no arguments, which would block if the connection were kept open.
* fix English usage error reported by Ken FuchsFred Drake2004-02-241-2/+2
|
* Reflow long line.Jeremy Hylton2004-02-231-6/+6
|
* Fix wrong character mapping in koi8_u: SF bug #902501.Marc-André Lemburg2004-02-231-1/+1
|
* Added close() (which flushes) to BufferingHandler and tidied ↵Vinay Sajip2004-02-211-2/+10
| | | | MemoryHandler.close() [SF #901330]
* Handler close() functions call flush() [SF #901330]Vinay Sajip2004-02-211-3/+4
|
* adding passing test. testing for g(*Nothing()) where Nothing is a ↵Samuele Pedroni2004-02-212-0/+26
| | | | user-defined iterator.
* Use the right wininstXX.exe, depending onThomas Heller2004-02-201-2/+8
| | | | | | | msvccompiler.get_build_version(). Distributions without a pre-install-script didn't work any longer, we must at least provide the terminating NUL character.
* wininst-6.exe and wininst-7.1.exe are in CVS, so that they can beThomas Heller2004-02-202-0/+0
| | | | | | included in Python distributions for systems other than Windows. Windows installers can be build on non-Windows systems as long as they only include pure python module distributions.
* wininst.exe is no longer used - we now need wininst-6.exe or wininst-7.1.exe.Thomas Heller2004-02-201-0/+0
|
* Solution and project file to build wininstXX.exe with MSVC7.1 (VisualThomas Heller2004-02-202-0/+236
| | | | | | Studio .NET 2003). The output files are named wininst-7.1.exe and wininst-7.1_d.exe.
* To avoid problems with conflicting dlls, the windows installers builtThomas Heller2004-02-201-3/+3
| | | | | | | | | | | | | | by bdist_wininst *must* use the same runtime libary as the Python version. Actually this means the Python version where the installer is run, not the one which is used to build it. Must think about that - for now I assume MSVC6 is used up to Python 2.3, and MSVC7.1 is used starting at Python 2.4. So the filename for wininst.exe is now wininst-6.exe for the Release version and wininst-6_d.exe for the Debug version, when built with MSVC6.
* Recompiled the binary wininst.exe.Thomas Heller2004-02-201-0/+0
| | | | | | | | | | | | | Patch #892660 from Mark Hammond, for distutils bdist_wininst command. install.c: support for a 'pre-install-script', run before anything has been installed. Provides a 'message_box' module function for use by either the pre-install or post-install scripts. bdist_wininst.py: support for pre-install script. Typo (build->built), fixes so that --target-version can still work, even when the distribution has extension modules - in this case, we insist on --skip-build, as we still can't actually build other versions.
* Patch #892660 from Mark Hammond, for distutils bdist_wininst command.Thomas Heller2004-02-202-53/+206
| | | | | | | | | | | install.c: support for a 'pre-install-script', run before anything has been installed. Provides a 'message_box' module function for use by either the pre-install or post-install scripts. bdist_wininst.py: support for pre-install script. Typo (build->built), fixes so that --target-version can still work, even when the distribution has extension modules - in this case, we insist on --skip-build, as we still can't actually build other versions.
* Socket handler closed prior to end of test.Vinay Sajip2004-02-201-0/+1
|
* Copyright year & version number/version date changes.Vinay Sajip2004-02-201-8/+36
| | | | | | | | Exception traceback text is now cached. Closing a handler now removes it from the internal _handlers list. Handlers now chain to Handler.close() from their close() methods. Exception info can be passed as a tuple in exc_info. shutdown() is registered to be called at application exit.
* Copyright year change.Vinay Sajip2004-02-201-17/+67
| | | | | | | Corrections to comments. Tracebacks can now be sent via SocketHandler. SocketHandler now uses exponential backoff strategy. Handlers now chain to Handler.close() from their close() methods.
* Copyright year change.Vinay Sajip2004-02-201-2/+7
| | | | | Corrections to comments. Added RESET_ERROR definition.
* - "Mac OS" should always include the spaceFred Drake2004-02-191-23/+33
| | | | | | | - comment out documentation for a non-existant feature (--spec-file) that the comments indicate isn't clearly needed - lots of minor markup adjustments to get a more consistent presentation
* - according to Apple's publication style guide, yes, "Mac people" useFred Drake2004-02-191-2/+2
| | | | | | the term Installer (always capitalized, however) - generalize the text about the term "installer" in a fairly reasonable way
* use API documentation style for the descriptions of the additionalFred Drake2004-02-191-40/+39
| | | | | functions made available in the post-installation script run by the Windows installer
* minor markup improvementsFred Drake2004-02-191-9/+9
|
* "Fix" (for certain configurations of the planets, includingMichael W. Hudson2004-02-192-1/+39
| | | | | | | | | | | recent gcc on Linux/x86) [ 899109 ] 1==float('nan') by implementing rich comparisons for floats. Seems to make comparisons involving NaNs somewhat less surprising when the underlying C compiler actually implements C99 semantics.
* Fix two small bugs: (1) on Windows, pathname munging didn't workGuido van Rossum2004-02-191-2/+4
| | | | | right; (2) write_results_file() didn't return a tuple of two ints when it couldn't create the file. Will backport.
* Keep the list.pop() optimization while restoring the many possibilityRaymond Hettinger2004-02-191-4/+2
| | | | | for types other than PyInt being accepted for the optional argument. (Spotted by Neal Norwitz.)
* Remove gcc warning from using "main". Use METH_NOARGS instead of METH_VARARGSNeal Norwitz2004-02-191-5/+3
|