summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Open at least one binary file in binary mode. This allows a few of theTim Peters2002-11-091-1/+1
| | | | bz2 tests to pass on Windows; most are still failing.
* bz2_compress/bz2_decompress: more casting away LONG_LONG forTim Peters2002-11-091-2/+2
| | | | _PyString_Resize calls.
* BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.Tim Peters2002-11-091-2/+2
|
* BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.Tim Peters2002-11-091-2/+2
|
* BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument toTim Peters2002-11-091-1/+1
| | | | _PyString_Resize to int.
* BZ2Comp_compress(): changed decl of totalout to LONG_LONG, since it'sTim Peters2002-11-091-1/+1
| | | | | solely used to hold LONG_LONG values, and the compiler rightfully warns about potential data loss otherwise.
* Repaired signed-vs-unsigned mismatch.Tim Peters2002-11-091-1/+1
|
* This couldn't compile on WIndows, due to hardcoded "long long". Repaired.Tim Peters2002-11-091-23/+23
|
* Another attempt at making the set constructor both safe and fast. [SFGuido van Rossum2002-11-081-18/+24
| | | | bug 628246]
* [Bug #233259] Ugly traceback for DistutilsPlatformErrorAndrew M. Kuchling2002-11-081-3/+1
| | | | | | Fixed by catching all exceptions that are subclasses of DistutilsError, so only the error message will be printed. You can still get the whole traceback by enabling the Distutils debugging mode.
* Fix comment typoAndrew M. Kuchling2002-11-081-1/+1
|
* * Modules/bz2module.cGustavo Niemeyer2002-11-081-12/+21
| | | | | (BZ2File_dealloc): Call Util_DropReadAhead(). (*): Included aesthetic changes by Neal Norwitz.
* Simply delete the fpectl module, instead of leaving it commented out;Andrew M. Kuchling2002-11-081-22/+0
| | | | if people want to compile it, they should edit Modules/Setup, not setup.py
* Richie HindleMichael W. Hudson2002-11-081-0/+1
|
* This is Richie Hindle's patch:Michael W. Hudson2002-11-082-13/+47
| | | | | | | [ 631276 ] Exceptions raised by line trace function It conflicted with the patches from Armin I just checked it, so I had to so some bits by hand.
* Assorted patches from Armin Rigo:Michael W. Hudson2002-11-084-43/+65
| | | | | | | | [ 617309 ] getframe hook (Psyco #1) [ 617311 ] Tiny profiling info (Psyco #2) [ 617312 ] debugger-controlled jumps (Psyco #3) These are forward ports from 2.2.2.
* Make strip behave as documented. Will backport to 2.2.3.Martin v. Löwis2002-11-081-2/+2
|
* Clarify the meaning of "requires Python 1.5.2".Raymond Hettinger2002-11-081-3/+4
|
* Closes SF bug #634069 reporting the docs on the ** operator were outRaymond Hettinger2002-11-081-4/+14
| | | | of date and did not reflect the current CPython implementation.
* _update(): Commented the new obscurity. Materialized into a tupleTim Peters2002-11-081-2/+8
| | | | | | instead of into a list for a bit of speed/space savings. Reopened the bug report too (628246), as I'm unclear on why we don't sort out the cause of the TypeError instead.
* Closes SF bug #628246.Raymond Hettinger2002-11-082-0/+27
| | | | | | | | The _update method detected mutable elements by trapping TypeErrors. Unfortunately, this masked useful TypeErrors raised by the iterable itself. For cases where it is possible for an iterable to raise a TypeError, the iterable is pre-converted to a list outside the try/except so that any TypeErrors propagate through.
* Got rid of the python.rsrc resource file. The error message strings andJack Jansen2002-11-077-76/+74
| | | | | | | | | | dialogs are now stored in Mac/Lib, and loaded on demand through macresource. Not only does this simplify a MacPython based on Apple's Python, but it also makes Mac error codes come out symbolically when running command line python (if you have Mac/Lib in your path). The resource files are copied from Mac/Resources. The old ones will disappear after the OS9 build procedure has been adjusted.
* Add documentation for the PEP 293 functionality:Walter Dörwald2002-11-071-3/+29
| | | | | | | | | | The errors attribute can be changed after the reader/writer is created. For encoding there are two additional errors values: "xmlcharrefreplace" and "backslashreplace". These values can be extended via register_error().
* Minor markup adjustments.Fred Drake2002-11-071-2/+2
|
* Restore attribute access so that the following work again:Raymond Hettinger2002-11-071-1/+1
| | | | | dir(xrange(10)) xrange(10).__getitem__(4)
* Use dynamic linking for the SHGetSpecialFolderPath function, it is notThomas Heller2002-11-071-331/+331
| | | | | | | always available on Windows NT. When the function cannot be loaded, get_special_folder_path raises OSError, "function not available". Compiled the exe, and rebuilt bdist_wininst.py.
* Fix a small bug when sys.argv[0] has an absolute path.Thomas Heller2002-11-071-1/+1
| | | | See http://mail.python.org/pipermail/distutils-sig/2002-November/003039.html
* Document the changed fdopen behaviour.Thomas Heller2002-11-071-0/+4
| | | | (Hope the markup is ok).
* NEWS entry for the changed fdopen function.Thomas Heller2002-11-071-0/+4
|
* Enforce valid filemode. Fixes SF Bug #623464.Thomas Heller2002-11-071-0/+6
|
* Try linking the major/minor test program. Fixes #634444.Martin v. Löwis2002-11-072-9/+9
|
* Fixed sre bug "[#581080] Provoking infinite scanner loops".Gustavo Niemeyer2002-11-072-4/+11
| | | | | | | | | | | | | | | | This bug happened because: 1) the scanner_search and scanner_match methods were not checking the buffer limits before increasing the current pointer; and 2) SRE_SEARCH was using "if (ptr == end)" as a loop break, instead of "if (ptr >= end)". * Modules/_sre.c (SRE_SEARCH): Check for "ptr >= end" to break loops, so that we don't hang forever if a pointer passing the buffer limit is used. (scanner_search,scanner_match): Don't increment the current pointer if we're going to pass the buffer limit. * Misc/NEWS Mention the fix.
* Script to create .app bundles. Largely untested.Jack Jansen2002-11-061-0/+160
|
* Add --check-tkinter to setup.py. Install IDLE. Fixes #634078.Martin v. Löwis2002-11-063-6/+31
|
* Use column= rather than col=; with Tk 8.4 col= no longer works.Guido van Rossum2002-11-061-3/+3
| | | | [SF patch 634250 -- that was an IDLEFORK patch.]
* Fixed bug "[#466200] ability to specify a 'verify' script".Gustavo Niemeyer2002-11-062-1/+8
| | | | | | | | | | | * Lib/distutils/command/bdist_rpm.py (bdist_rpm.initialize_options): Included verify_script attribute. (bdist_rpm.finalize_package_data): Ensure that verify_script is a filename. (bdist_rpm._make_spec_file): Included verify_script in script_options tuple. * Misc/NEWS Mention change.
* Add next() and __iter__() methods to StreamReader, StreamReaderWriterWalter Dörwald2002-11-062-0/+30
| | | | | | and StreamRecoder. This closes SF bug #634246.
* Make int("...") return a long if an int would overflow.Walter Dörwald2002-11-063-26/+31
| | | | | | Also remove the 512 character limitation for int(u"...") and long(u"..."). This closes SF bug #629989.
* Fix NameError exception ('name' undefined)Andrew M. Kuchling2002-11-061-0/+1
|
* Handle really big steps in extended slices.Michael W. Hudson2002-11-062-6/+3
| | | | Fixes a test failure on 64 bit platforms (I hope).
* Fix docstring typosAndrew M. Kuchling2002-11-061-2/+2
|
* Old change (probably suggested by Jason Tishler) The GNU/Windows compiler is ↵Andrew M. Kuchling2002-11-061-10/+9
| | | | now called MinGW
* [Patch #633635 from David M. Cooke]Andrew M. Kuchling2002-11-061-1/+1
| | | | Make docs accurate; getch() in nodelay mode returns -1
* [Patch #633635 from David M. Cooke]Andrew M. Kuchling2002-11-061-6/+14
| | | | | | Make keyname raise ValueError if passed -1, avoiding a segfault Make getkey() match the docs and raise an exception in nodelay mode The return type of getch() is int, not chtype
* Fixed bug #470582, using a modified version of patch #527371,Gustavo Niemeyer2002-11-064-18/+33
| | | | | | | | | | | | | | | | | | | from Greg Chapman. * Modules/_sre.c (lastmark_restore): New function, implementing algorithm to restore a state to a given lastmark. In addition to the similar algorithm used in a few places of SRE_MATCH, restore lastindex when restoring lastmark. (SRE_MATCH): Replace lastmark inline restoring by lastmark_restore(), function. Also include it where missing. In SRE_OP_MARK, set lastindex only if i > lastmark. * Lib/test/re_tests.py * Lib/test/test_sre.py Included regression tests for the fixed bugs. * Misc/NEWS Mention fixes.
* Fix for bug 631247: configure should test the build directory forJack Jansen2002-11-062-3/+13
| | | | being on a case-insensitive filesystem, not the source directory.
* Skip the test_nocaret test when running as jython. Jython happens to addFinn Bock2002-11-061-1/+4
| | | | a caret in this case too.
* Make the test pass for jython where there are no sys.executable.Finn Bock2002-11-061-3/+7
|
* By default when getting the search menu, the currently highligtedChui Tey2002-11-062-2/+6
| | | | text is the search term.
* Fix minor wording and 2 typosNeal Norwitz2002-11-051-3/+3
|