summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Edward Loper's cool and massive refactoring of doctest.py, merged fromTim Peters2004-08-043-945/+2386
| | | | | | | | the tim-doctest-merge-24a2 tag on the the tim-doctest-branch branch. We did development on the branch in case it wouldn't land in time for 2.4a2, but the branch looked good: Edward's tests passed there, ditto Python's tests, and ditto the Zope3 tests. Together, those hit doctest heavily.
* Add a proper pointer to SF bug item.Hye-Shik Chang2004-08-041-2/+3
|
* SF #941229: Decode source code with sys.stdin.encoding in interactiveHye-Shik Chang2004-08-042-0/+65
| | | | | | | modes like non-interactive modes. This allows for non-latin-1 users to write unicode strings directly and sets Japanese users free from weird manual escaping <wink> in shift_jis environments. (Reviewed by Martin v. Loewis)
* Add a missing decref -- PyErr_SetObject increfs the 'object'!Michael W. Hudson2004-08-041-0/+1
|
* Fix a leak of a reference on None.Michael W. Hudson2004-08-041-3/+1
|
* To ever run this test "you must import TestSkipped" from the rightMichael W. Hudson2004-08-041-6/+9
| | | | | | | place! (can that please be it for silly mistakes in this file? :-) I know I started it, but...). Also, rearrangements to run repeatedly.
* Bump buildno for 2.4a2Martin v. Löwis2004-08-042-3/+5
|
* Revert 2.312; turns out interning the file name did do some good (reducingMichael W. Hudson2004-08-041-1/+1
| | | | .pyc size) after all.
* Updated Logger.log() docstring to clarify that lvl parameter should be an ↵Vinay Sajip2004-08-041-1/+1
| | | | integer.
* Updated Logger.log() documentation to clarify that lvl parameter should be ↵Vinay Sajip2004-08-041-1/+1
| | | | an integer.
* Close handlers and tidy up loggers by removing closed handlers - to avoid ↵Vinay Sajip2004-08-041-5/+11
| | | | problems when run twice (SF #1002537)
* Remove .width() and .iswide() from UserString as well.Hye-Shik Chang2004-08-041-4/+0
|
* SF #989185: Drop unicode.iswide() and unicode.width() and addHye-Shik Chang2004-08-0415-1602/+1626
| | | | | | | | | | | | unicodedata.east_asian_width(). You can still implement your own simple width() function using it like this: def width(u): w = 0 for c in unicodedata.normalize('NFC', u): cwidth = unicodedata.east_asian_width(c) if cwidth in ('W', 'F'): w += 2 else: w += 1 return w
* Add a workaround for a problem that UTF-8 strings can be corruptedHye-Shik Chang2004-08-043-0/+71
| | | | | | | or broken by basic ctype functions in 4.4BSD descendants. This will be fixed in their future development branches but they'll keep the POSIX-incompatibility for their backward-compatiblities in near future.
* Whitespace normalization.Tim Peters2004-08-048-52/+52
|
* test_threadsignals is an expected skip on win32.Tim Peters2004-08-041-0/+1
|
* To raise TestSkipped, you must import TestSkipped.Tim Peters2004-08-041-1/+1
|
* ihooks FancyModuleLoader.load_module()Tim Peters2004-08-042-2/+13
| | | | | | | imputils Importer._process_result(): remove name from modules dict if exec fails. This is what all the builtin importers do now, new in 2.4.
* Tkapp_New(): Rewrite in C so it compiles again.Tim Peters2004-08-041-1/+4
|
* make sure distutils logging is shut off in tests to avoid spurious outputFred Drake2004-08-035-3/+25
|
* Patch #986929: Add support for wish -sync and -use options.Martin v. Löwis2004-08-032-4/+39
|
* Patch #986929: Add support for wish -sync and -use options.Martin v. Löwis2004-08-031-2/+3
|
* Wait for visibility before setting a grab. Fixes #946153.Martin v. Löwis2004-08-033-0/+3
|
* allow ctime(), gmtime(), and localtime() to take None as equivalent to an ↵Fred Drake2004-08-034-17/+69
| | | | | | omitted arg (closes SF bug #658254, patch #663482)
* This allows additional commands to be provided for existing setup.pyFred Drake2004-08-033-22/+193
| | | | | | | | | | | | | | | | | scripts without modifying either the distutils installation or the setup.py scripts of packages with which the new commands will be used. Specifically, an option is added to distutils that allows additional packages to be searched for command implementations in addition to distutils.command. The additional packages can be specified on the command line or via the installation or personal configuration files already loaded by distutils. For discussion, see the thread starting with: http://mail.python.org/pipermail/distutils-sig/2004-August/004112.html This closes SF patch #102241.
* add missing import!Fred Drake2004-08-031-0/+1
|
* let's avoid the extra nesting where reasonableFred Drake2004-08-031-1/+1
|
* on to a2!Anthony Baxter2004-08-031-2/+2
|
* avoid fragility: make sure POSIXLY_CORRECT is completely controlledFred Drake2004-08-031-1/+10
| | | | for the tests, and restored properly when done
* Add the same guard as test_signal.Michael W. Hudson2004-08-031-0/+3
|
* Be more careful about maintaining the invariants; it was actuallyFred Drake2004-08-031-3/+25
| | | | | possible that the callback-less flavors of the ref or proxy could have been added during GC, so we don't want to replace them.
* Argh! This was meant to be part of patch #960406.Michael W. Hudson2004-08-031-0/+77
|
* Patch #823072: add option to NOT use ~/.netrc in nntplib.NNTP().Martin v. Löwis2004-08-033-4/+11
|
* Patch #977074: Move Encode/Decode to the top so gcc can inline them.Martin v. Löwis2004-08-031-34/+33
|
* Patch #994595: Recognize Basic auth even if other schemes are offered.Martin v. Löwis2004-08-032-1/+4
| | | | Will backport to 2.3.
* Patch #870382: Automatically add msvcr71 to the list of libraries ifMartin v. Löwis2004-08-031-0/+23
| | | | Python was built with VC 7.1.
* Check in my refleak hunting code.Michael W. Hudson2004-08-031-19/+91
| | | | | It's not the 100% solution -- it may not even be the 90% solution -- but it does seem to help.
* Fix the reference count errors revealed by the test suite...Michael W. Hudson2004-08-031-1/+3
|
* nice tests dont leave little suprises in the environAnthony Baxter2004-08-031-0/+1
|
* More "noone expected this to run twice"ness removal.Michael W. Hudson2004-08-031-3/+3
|
* make this test work when run repeatedly.Michael W. Hudson2004-08-031-3/+2
|
* Removed use of 'cgi.initlog()' - the first call to cgi.log is actuallyAnthony Baxter2004-08-031-1/+0
| | | | | an initlog() (and initlog()'s docstring says "don't use this"!) This allows test_cgi to be run repeatedly in a single run of the interpreter.
* Don't exit test_main() with the lock 'done' held -- there's no cleanerMichael W. Hudson2004-08-031-0/+1
| | | | | | | way to guarantee a deadlock on the next call! If I've inadvertently done some damage to this test, sorry (but I don't think I have).
* Don't intern the filename of a file being compiled.Michael W. Hudson2004-08-031-1/+1
| | | | | Hard to believe it ever helped anything, and it hurts finding reference leaks.
* Repair the same thinko in two places about handling of _Py_RefTotal inMichael W. Hudson2004-08-032-10/+12
| | | | | | | the case of __del__ resurrecting an object. This makes the apparent reference leaks in test_descr go away (which I expected) and also kills off those in test_gc (which is more surprising but less so once you actually think about it a bit).
* Delete the items variable (and explain why).Michael W. Hudson2004-08-031-0/+4
|
* Restore compilation on MSVC++ 6.0Raymond Hettinger2004-08-032-2/+8
|
* SF bug #808756: refleaks in _hotshot.c.Armin Rigo2004-08-031-2/+10
|
* update to Expat 1.95.8Fred Drake2004-08-037-361/+789
|
* Document general mappings for the locals argument for exec and execfile().Raymond Hettinger2004-08-032-9/+11
|