summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Support sdist.Martin v. Löwis2002-11-051-0/+4
|
* Whoops, fix the typo correctly this timeNeal Norwitz2002-11-051-2/+2
|
* Use PyOS_snprintf() instead of sprintf and wrap the long lineNeal Norwitz2002-11-051-2/+4
|
* Add an entry for pdb's new `pp' command.Barry Warsaw2002-11-051-0/+3
|
* Document the new `pp' command.Barry Warsaw2002-11-051-0/+5
|
* Implement a `pp' command, which is like `p' except that itBarry Warsaw2002-11-051-6/+21
| | | | pretty-prints the value of its expression argument.
* Fix minor typosNeal Norwitz2002-11-051-2/+2
|
* Minor cleanups, markup.Fred Drake2002-11-051-2/+2
|
* Document that images go away when they go away. Fixes #632323.Martin v. Löwis2002-11-051-0/+18
|
* parse(), _parseheaders(), _parsebody(): A fix for SF bug #633527,Barry Warsaw2002-11-051-9/+22
| | | | | | | | | | | | | | | | | | where in lax parsing, the first non-header line after a header block (e.g. the first line not containing a colon, and not a continuation), can be treated as the first body line, even without the RFC mandated blank line separator. rfc822 had this behavior, and I vaguely remember problems with this, but can't remember details. In any event, all the tests still pass, so I guess we'll find out. ;/ This patch works by returning the non-header, non-continuation line from _parseheader() and using that as the first header line prepended to fp.read() if given. It's usually None. We use this approach instead of trying to seek/tell the file-like object.
* test_no_separating_blank_line(): A test for SF bug #633527, noBarry Warsaw2002-11-051-16/+36
| | | | | | separating blank line between a header block and body text. Tests both lax and strict parsing.
* A message with no separating blank line between the headers and theBarry Warsaw2002-11-051-0/+4
| | | | body. A test message for SF bug #633527.
* test_text_plain_in_a_multipart_digest(): A test of the fix for SF bugBarry Warsaw2002-11-051-0/+4
| | | | | #631350, where a subobject in a multipart/digest isn't a message/rfc822.
* _parsebody(): A fix for SF bug #631350, where a subobject in aBarry Warsaw2002-11-051-2/+6
| | | | | | | | | | multipart/digest isn't a message/rfc822. This is legal, but counter to recommended practice in RFC 2046, $5.1.5. The fix is to look at the content type after setting the default content type. If the maintype is then message or multipart, attach the parsed subobject, otherwise use set_payload() to set the data of the other object.
* Test case, distilled from SF bug #631350, where a subobject in aBarry Warsaw2002-11-051-0/+19
| | | | | multipart/digest isn't a message/rfc822. This is legal, but counter to recommended practice in RFC 2046, $5.1.5.
* Another round on SF patch 618135: gzip.py and files > 2GTim Peters2002-11-052-7/+15
| | | | | | | | | | The last round boosted "the limit" from 2GB to 4GB. This round gets rid of the 4GB limit. For files > 4GB, gzip stores just the last 32 bits of the file size, and now we play along with that too. Tested by hand (on a 6+GB file) on Win2K. Boosting from 2GB to 4GB was arguably enough "a bugfix". Going beyond that smells more like "new feature" to me.
* Repair inconsistent use of tabs and spaces.Jeremy Hylton2002-11-051-1/+1
|