summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add Laura "force of nature" Creighton and Anders "snake farmer" Qvist,Guido van Rossum2002-09-111-0/+2
| | | | for their contributions to the snake farm.
* The list(xrange(sys.maxint / 4)) test blew up on 64-bit platforms.Guido van Rossum2002-09-111-15/+21
| | | | | | | | Because ob_size is a 32-bit int but sys.maxint is LONG_MAX which is a 64-bit value, there's no way to make this test succeed on a 64-bit platform. So just skip it when sys.maxint isn't 0x7fffffff. Backport candidate.
* Patch suggested by Hamish Lawson: add an __iter__() that returnsGuido van Rossum2002-09-111-0/+3
| | | | iter(self.keys()).
* Fix *really* embarrassing typo reported by Raymond Hettinger.Michael W. Hudson2002-09-111-1/+1
|
* Use distutils.debug.DEBUG instead of distutils.core.DEBUG.Jeremy Hylton2002-09-117-11/+9
| | | | | Note that distutils.core.DEBUG still works if client code uses it, but the core code avoids circular references by using distutils.debug.
* Define DEBUG in a separate module to resolve circular references.Jeremy Hylton2002-09-111-0/+6
|
* Remove mentioning of Python 2.0 limitations. Fixes #607783.Martin v. Löwis2002-09-111-10/+10
|
* Untested code for 64-bit platforms. range_length() is declared as intGuido van Rossum2002-09-111-1/+8
| | | | | | | | | | but returns r->len which is a long. This doesn't even cause a warning on 32-bit platforms, but can return bogus values on 64-bit platforms (and should cause a compiler warning). Fix this by inserting a range check when LONG_MAX != INT_MAX, and adding an explicit cast to (int) when the test passes. When r->len is out of range, PySequence_Size() and hence len() will report an error (but an iterator will still work).
* A slight change to SET_LINENO-less tracing.Michael W. Hudson2002-09-115-12/+59
| | | | | This makes things a touch more like 2.2. Read the comments in Python/ceval.c for more details.
* Bunch more tests.Michael W. Hudson2002-09-111-9/+83
|
* get_payload(): Document that calling it with no arguments returns aBarry Warsaw2002-09-111-2/+3
| | | | reference to the payload.
* Ignore IOError exceptions when writing the message.Mark Hammond2002-09-111-1/+4
|
* test_both(): I believe this was a typo: m is only defined if noBarry Warsaw2002-09-111-1/+1
| | | | | | | | | | | | exception occurred so it should only be closed in the else clause. Without this change we can an UnboundLocalError on Linux: Traceback (most recent call last): File "Lib/test/test_mmap.py", line 304, in ? test_both() File "Lib/test/test_mmap.py", line 208, in test_both m.close() UnboundLocalError: local variable 'm' referenced before assignment
* test_quote_unquote(): Added a test for the rfc822.unquote() patchBarry Warsaw2002-09-111-0/+6
| | | | (adapted from Quinn Dunkan's mimelib SF patch #573204).
* unquote(): Didn't properly de-backslash-ify. This patch (adapted fromBarry Warsaw2002-09-111-3/+3
| | | | Quinn Dunkan's mimelib SF patch #573204) fixes the problem.
* test_utils_quote_unquote(): Test for unquote() properlyBarry Warsaw2002-09-111-0/+7
| | | | de-backslash-ifying.
* rfc822.unquote() doesn't properly de-backslash-ify in Python prior toBarry Warsaw2002-09-111-1/+12
| | | | | 2.3. This patch (adapted from Quinn Dunkan's SF patch #573204) fixes the problem and should get ported to rfc822.py.
* Converted to Vise 8.Jack Jansen2002-09-111-0/+0
|
* Clarify who maintains Tkinter and who maintains Tk.Fred Drake2002-09-101-3/+4
|
* At Jim Fulton's request, increase the maxstring value of _saferepr toGuido van Rossum2002-09-101-1/+7
| | | | | | a more reasonable value. Backport candidate.
* I left some debugging junk in here; removed it. Also replaced a fewTim Peters2002-09-101-2/+3
| | | | | more instances of the bizarre "del f; del m" ways to spell .close() (del won't do any good here under Jython, etc).
* All set for 2.3 installer, except for upgrade of Vise version.Jack Jansen2002-09-101-0/+0
|
* A few days ago a test was added here to ensure that creating an mmapTim Peters2002-09-101-4/+15
| | | | | | | | | | with a size larger than the underlying file worked on Windows. It does <wink>. However, merely creating an mmap that way has the side effect of growing the file on disk to match the specified size. A *later* test assumed that the file on disk was still exactly as it was before the new "size too big" test was added, but that's no longer true. So added a hack at the end of the "size too big" test to truncate the disk file back to its original size on Windows.
* Fixed typo spotted by Whomas Touters.Jack Jansen2002-09-101-1/+1
|
* _parsebody(): Instead of raising a BoundaryError when no startBarry Warsaw2002-09-101-2/+5
| | | | | boundary could be found -- in a lax parser -- the entire body is assigned to the message payload.
* Import _isstring() from the compatibility layer.Barry Warsaw2002-09-101-2/+12
| | | | | | | | | | | _handle_text(): Use _isstring() for stringiness test. _handle_multipart(): Add a test before the ListType test, checking for stringiness of the payload. String payloads for multitypes means a message with broken MIME chrome was parsed by a lax parser. Instead of raising a BoundaryError in those cases, the entire body is assigned to the message payload (but since the content type is still multipart/*, the Generator needs to be updated too).
* _isstring(): Factor out "stringiness" test, e.g. for StringType orBarry Warsaw2002-09-102-2/+10
| | | | UnicodeType, which is different between Python 2.1 and 2.2.
* _ascii_split(): Don't lstrip continuation lines. Closes SF bug #601392.Barry Warsaw2002-09-101-1/+1
|
* test_splitting_first_line_only_is_long(): New test for SF bug #601392,Barry Warsaw2002-09-101-1/+38
| | | | broken wrapping of long ASCII headers.
* A sample message with broken MIME boundaries.Barry Warsaw2002-09-101-0/+15
|
* extract_time(): Squash compiler warning about possibly information-Tim Peters2002-09-101-1/+1
| | | | losing implicit double->long cast.
* Add missing return statement.Martin v. Löwis2002-09-101-0/+1
|
* Document type and semantics of the tp_print return value. Closes SF 606464.Raymond Hettinger2002-09-101-1/+3
|
* Added include guards and C++ extern "C" {} constructs. Partial fix for #607253.Jack Jansen2002-09-105-2/+40
| | | | Bugfix candidate.
* Reverted previous change, I was confused.Jack Jansen2002-09-101-1/+1
|
* Use utimes(2) where available to support microsecond timestamps.Martin v. Löwis2002-09-104-8/+55
|
* Always generate floats for stat_result; fix configure test.Martin v. Löwis2002-09-095-20/+10
|
* Patch #606592: Subsecond timestamps in stat_result.Martin v. Löwis2002-09-096-11/+112
|
* The .preprocess() method didn't work, because it didn't add the input fileAndrew M. Kuchling2002-09-091-0/+1
| | | | to the command-line arguments. Fix this by adding the source filename.
* Include an empty body when checking for a header fileAndrew M. Kuchling2002-09-091-1/+2
| | | | (Bugfix candidate for 2.2, and likely 2.1 as well)
* Fix escaping of non-ASCII characters.Martin v. Löwis2002-09-092-2/+5
|
* Fix typo. Close SF Bug 606354.Raymond Hettinger2002-09-081-1/+1
|
* Clarified that the footnote applies to versions 1.5 and after instead ofRaymond Hettinger2002-09-081-4/+4
| | | | just version 1.5. Closes SF bug 577793.
* shutil.copyfile(src,dst) was clobbering the file when the src and dst wereRaymond Hettinger2002-09-081-0/+5
| | | | | | | the same. Added check to verify the two names are not the same. Does not check the actual files to see if there is a symbolic link. Closes SF bug 490165 and Tzot's patch 604600.
* Fix API typo. The write buffer is not const. Closes SF 606216.Raymond Hettinger2002-09-081-1/+1
|
* Extended IDLE's open module menu item to handle hierarchical module names.Raymond Hettinger2002-09-081-2/+15
| | | | | | | Will look at doing something similar in import.c so that the effort won't have to be repeated elsewhere. Closes SF patch 600152.
* A little refactoring.Jeremy Hylton2002-09-081-60/+46
| | | | | | | | | | | | Add read(), write(), and readwrite() helper functions to shorten poll functions. Use get() instead of try/except KeyError for lookup. XXX How could the lookup ever fail? Remove module-level DEBUG flag. Use iteritems() instead of items() when walking the socket map. Reformat the functions I touched so that are consistently Pythonic.
* tightened up the definition of \b and \B some more based upon discussionSkip Montanaro2002-09-071-7/+11
| | | | after the last checkin.
* Try to get test to pass on WindowsNeal Norwitz2002-09-071-1/+2
|
* Change UserDict to IterableUserDictRaymond Hettinger2002-09-071-1/+1
|