https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
cf6fc79 This commit was manufactured by cvs2svn to create tag 'r24a2'. 05 August 2004, 07:21:01 UTC
ff347ca release date 05 August 2004, 07:21:01 UTC
4c8fa42 Doc/lib/libfuncs.tex: correct items in itemize Doc/dist/dist.tex: avoid uncommenting the verbose environment (by the py2texi tool) 04 August 2004, 23:18:49 UTC
283b670 add constants for many error values added over the past couple of years 04 August 2004, 22:28:16 UTC
9b625d3 Example.__init__: this cannot use assert, because that fails to trigger in a -O run, and so test_doctest was failing under -O. Simple cause, simple cure. 04 August 2004, 20:04:32 UTC
8485b56 Edward Loper's cool and massive refactoring of doctest.py, merged from 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. 04 August 2004, 18:46:34 UTC
c81c695 Add a proper pointer to SF bug item. 04 August 2004, 17:40:38 UTC
7df44b3 SF #941229: Decode source code with sys.stdin.encoding in interactive 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) 04 August 2004, 17:36:41 UTC
5910d81 Add a missing decref -- PyErr_SetObject increfs the 'object'! 04 August 2004, 14:59:00 UTC
7d6cc5b Fix a leak of a reference on None. 04 August 2004, 14:33:28 UTC
574a251 To ever run this test "you must import TestSkipped" from the right place! (can that please be it for silly mistakes in this file? :-) I know I started it, but...). Also, rearrangements to run repeatedly. 04 August 2004, 14:22:56 UTC
ed0d9c6 Bump buildno for 2.4a2 04 August 2004, 13:42:43 UTC
e51c4f9 Revert 2.312; turns out interning the file name did do some good (reducing .pyc size) after all. 04 August 2004, 10:26:08 UTC
eb477d0 Updated Logger.log() docstring to clarify that lvl parameter should be an integer. 04 August 2004, 08:38:08 UTC
1cf56d0 Updated Logger.log() documentation to clarify that lvl parameter should be an integer. 04 August 2004, 08:36:44 UTC
6887c92 Close handlers and tidy up loggers by removing closed handlers - to avoid problems when run twice (SF #1002537) 04 August 2004, 08:29:14 UTC
4189c64 Remove .width() and .iswide() from UserString as well. 04 August 2004, 08:01:06 UTC
e9ddfbb SF #989185: Drop unicode.iswide() and unicode.width() and add 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 04 August 2004, 07:38:35 UTC
b5047fd Add a workaround for a problem that UTF-8 strings can be corrupted 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. 04 August 2004, 06:33:51 UTC
6db15d7 Whitespace normalization. 04 August 2004, 02:36:18 UTC
cea2cc4 test_threadsignals is an expected skip on win32. 04 August 2004, 02:32:03 UTC
81676dc To raise TestSkipped, you must import TestSkipped. 04 August 2004, 02:30:45 UTC
3d3cfdb ihooks FancyModuleLoader.load_module() 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. 04 August 2004, 02:29:12 UTC
51fa3b7 Tkapp_New(): Rewrite in C so it compiles again. 04 August 2004, 02:16:48 UTC
edcac8f make sure distutils logging is shut off in tests to avoid spurious output 03 August 2004, 18:53:07 UTC
1fa649f Patch #986929: Add support for wish -sync and -use options. 03 August 2004, 18:45:31 UTC
9441c07 Patch #986929: Add support for wish -sync and -use options. 03 August 2004, 18:36:25 UTC
b217cd8 Wait for visibility before setting a grab. Fixes #946153. 03 August 2004, 18:36:25 UTC
f901abd allow ctime(), gmtime(), and localtime() to take None as equivalent to an omitted arg (closes SF bug #658254, patch #663482) 03 August 2004, 17:58:55 UTC
d04573f This allows additional commands to be provided for existing setup.py 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. 03 August 2004, 16:37:40 UTC
4818748 add missing import! 03 August 2004, 16:14:13 UTC
2be406b let's avoid the extra nesting where reasonable 03 August 2004, 16:02:35 UTC
7bc58a3 on to a2! 03 August 2004, 15:57:39 UTC
4354ba3 avoid fragility: make sure POSIXLY_CORRECT is completely controlled for the tests, and restored properly when done 03 August 2004, 15:54:45 UTC
34fba3b Add the same guard as test_signal. 03 August 2004, 15:35:29 UTC
6d3265d Be more careful about maintaining the invariants; it was actually 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. 03 August 2004, 14:47:25 UTC
43220ea Argh! This was meant to be part of patch #960406. 03 August 2004, 14:37:14 UTC
9513e34 Patch #823072: add option to NOT use ~/.netrc in nntplib.NNTP(). 03 August 2004, 14:36:32 UTC
0b49e02 Patch #977074: Move Encode/Decode to the top so gcc can inline them. 03 August 2004, 13:08:07 UTC
65a7975 Patch #994595: Recognize Basic auth even if other schemes are offered. Will backport to 2.3. 03 August 2004, 12:59:55 UTC
7db57b3 Patch #870382: Automatically add msvcr71 to the list of libraries if Python was built with VC 7.1. 03 August 2004, 12:41:42 UTC
61147f6 Check in my refleak hunting code. It's not the 100% solution -- it may not even be the 90% solution -- but it does seem to help. 03 August 2004, 11:33:28 UTC
0bb8454 Fix the reference count errors revealed by the test suite... 03 August 2004, 11:31:31 UTC
afd5ce1 nice tests dont leave little suprises in the environ 03 August 2004, 11:14:19 UTC
5bf2516 More "noone expected this to run twice"ness removal. 03 August 2004, 11:14:09 UTC
fe27ff8 make this test work when run repeatedly. 03 August 2004, 11:08:32 UTC
d271721 Removed use of 'cgi.initlog()' - the first call to cgi.log is actually 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. 03 August 2004, 11:05:04 UTC
fcc09bb Don't exit test_main() with the lock 'done' held -- there's no cleaner 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). 03 August 2004, 10:45:59 UTC
782d8ff Don't intern the filename of a file being compiled. Hard to believe it ever helped anything, and it hurts finding reference leaks. 03 August 2004, 10:24:03 UTC
3f3b668 Repair the same thinko in two places about handling of _Py_RefTotal in 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). 03 August 2004, 10:21:03 UTC
3bfed9c Delete the items variable (and explain why). 03 August 2004, 10:17:34 UTC
cbcff93 Restore compilation on MSVC++ 6.0 03 August 2004, 08:52:46 UTC
a412769 SF bug #808756: refleaks in _hotshot.c. 03 August 2004, 08:33:55 UTC
31d485c update to Expat 1.95.8 03 August 2004, 07:06:22 UTC
70fcdb8 Document general mappings for the locals argument for exec and execfile(). 03 August 2004, 05:17:58 UTC
a57ec93 Fix [ 1001018 ]: Windows: setdefaulttimeout causes unnecessary timeouts on connect error 03 August 2004, 05:06:26 UTC
5ad28e1 Tweak previous patch to silence a warning about the unused left value in the comma expression in listpop() that was being returned. Still essentially unused (as it is meant to be), but now the compiler thinks it is worth *something* by having it incremented. 03 August 2004, 04:53:29 UTC
bec69f6 fix a little lie ;-( 02 August 2004, 23:05:25 UTC
7fdd92f Fix typo though 02 August 2004, 21:56:33 UTC
e72bd4d fix markup error 02 August 2004, 21:50:26 UTC
0c84c7f start filling in documentation on extending distutils 02 August 2004, 21:39:11 UTC
576298d - fix description of option table entries - fix broken assert statement; should just raise 02 August 2004, 17:58:51 UTC
c75f112 Use isabs() in conditional, not abspath 02 August 2004, 14:54:16 UTC
a3711f7 Fix for the unfortunate fact that PyDict_GetItem and PyObject_GetItem have differing refcount semantics. If anyone sees a prettier way to acheive the same ends, then please go for it. I think this is the first time I've ever used Py_XINCREF. 02 August 2004, 14:50:43 UTC
77a602f Add PEP318 02 August 2004, 13:48:18 UTC
c9f510a Any call to insort_{left,right} with a non-list leaked a reference to None (or to whatever the 'insert' method chose to return). 02 August 2004, 13:24:54 UTC
f8df9a8 Add a missing decref. 02 August 2004, 13:22:01 UTC
52db519 for some reason, the lack of adherence to Python's C whitespace rules must have annoyed me at some point. 02 August 2004, 13:21:09 UTC
d91fcbe Add import change; add empty section for function decorators 02 August 2004, 12:44:28 UTC
1455f79 Update item 02 August 2004, 12:09:58 UTC
270fe88 and a unit test for the staticmethod-of-a-non-method failure just fixed 02 August 2004, 11:34:10 UTC
4e7785a fix for @decorators under a debug build. 02 August 2004, 11:08:15 UTC
829d6c4 Fix doubled word. 02 August 2004, 08:36:07 UTC
66bd233 Completed the patch for Bug #215126. * Fixes an incorrect variable in a PyDict_CheckExact. * Allow general mapping locals arguments for the execfile() function and exec statement. * Add tests. 02 August 2004, 08:30:07 UTC
32083f6 notes for @decorator 02 August 2004, 06:24:59 UTC
c2a5a63 PEP-0318, @decorator-style. In Guido's words: "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728. 02 August 2004, 06:10:11 UTC
fd7dc51 Typo repair. 02 August 2004, 04:30:37 UTC
0c6199e Completed a sentence I left dangling. 02 August 2004, 04:14:10 UTC
99d001e Removed reliance on damaged module object appearing in sys.modules after a failed import. This is the last checkin in the "change import failure semantics" series. 02 August 2004, 03:59:57 UTC
08138fd New tests: test_failing_import_sticks -- if an import raises an exception, ensure that trying to import it again continues raising exceptions test_failing_reload -- if a module loads OK, but a reload raises an exception, ensure that the module is still in sys.modules, and that its __dict__ reflects as much of the reload attempt as succeeded. That doesn't seem like sane semantics, but it is backward-compatible semantics <wink>. 02 August 2004, 03:58:27 UTC
d464838 Removed no-longer-needed convolutions to recover from damaged modules getting left beyind in sys.modules. 02 August 2004, 03:55:18 UTC
1cd7017 PyImport_ExecCodeModuleEx(): remove module from sys.modules in error cases. PyImport_ReloadModule(): restore the module to sys.modules in error cases. load_package(): semantic-neutral refactoring from an earlier stab at this patch; giving it a common error exit made the code easier to follow, so retaining that part. _RemoveModule(): new little utility to delete a key from sys.modules. 02 August 2004, 03:52:12 UTC
94f9b86 "Core" and "C API" news about new semantics for failing imports. 02 August 2004, 03:48:03 UTC
cfd575d PyImport_ImportModule, PyImport_ImportModuleEx, PyImport_ExecCodeModule: in failure cases, incompletely initalized module objects are no longer left behind in sys.modules. 02 August 2004, 03:46:45 UTC
a7c6509 lock_held() docs: Use True/False instead of 1/0. The LaTeX docs were already correct, so not changed here. 01 August 2004, 23:26:05 UTC
86c7d2f Trimmed trailing whitespace. 01 August 2004, 23:24:21 UTC
0e67fd4 Fix SF #1001053, wave.open() with unicode filename fails Backport candidate. 01 August 2004, 22:48:06 UTC
4ecd8cd Fix typo in comment 01 August 2004, 22:45:27 UTC
750f060 SF bug #1001088, incorrect reference to macro named foo Backport candidate. 01 August 2004, 22:36:40 UTC
8fc4a91 list_ass_slice(): Document the obscure new intent that deleting a slice of no more than 8 elements cannot fail. listpop(): Take advantage of that its calls to list_resize() and list_ass_slice() can't fail. This is assert'ed in a debug build now, but in an icky way. That is, you can't say: assert(some_call() >= 0); because then some_call() won't occur at all in a release build. So it has to be a big pile of #ifdefs on Py_DEBUG (yuck), or the pleasant: status = some_call(); assert(status >= 0); But in that case, compilers may whine in a release build, because status appears unused then. I'm not certain the ugly trick I used here will convince all compilers to shut up about status (status is always "used" now, as the first (ignored) clause in a comma expression). 31 July 2004, 21:53:19 UTC
c0cbc86 Whitespace normalization. 31 July 2004, 21:17:37 UTC
579f735 Be more careful about reverting mutuations to system-wide (sys) variables. This fixes 15 spurious test failures on Windows (probably all due to the test leaving a wrong path in sys.argv[0], which then prevented regrtest.py from finding the expected-output files for tests running after test_optparse). 31 July 2004, 21:14:28 UTC
9c8fe1a Mention upgrade of optparse to Optik 1.5a1. 31 July 2004, 16:16:11 UTC
eba20e6 Upgrade optparse module and tests to Optik 1.5a1: * add expansion of default values in help text: the string "%default" in an option's help string is expanded to str() of that option's default value, or "none" if no default value. * bug #955889: option default values that happen to be strings are now processed in the same way as values from the command line; this allows generation of nicer help when using custom types. Can be disabled with parser.set_process_default_values(False). * bug #960515: don't crash when generating help for callback options that specify 'type', but not 'dest' or 'metavar'. * feature #815264: change the default help format for short options that take an argument from e.g. "-oARG" to "-o ARG"; add set_short_opt_delimiter() and set_long_opt_delimiter() methods to HelpFormatter to allow (slight) customization of the formatting. * patch #736940: internationalize Optik: all built-in user- targeted literal strings are passed through gettext.gettext(). (If you want translations (.po files), they're not included with Python -- you'll find them in the Optik source distribution from http://optik.sourceforge.net/ .) * bug #878453: respect $COLUMNS environment variable for wrapping help output. * feature #988122: expand "%prog" in the 'description' passed to OptionParser, just like in the 'usage' and 'version' strings. (This is *not* done in the 'description' passed to OptionGroup.) 31 July 2004, 16:15:44 UTC
7357222 list_ass_slice(): The difference between "recycle" and "recycled" was impossible to remember, so renamed one to something obvious. Headed off potential signed-vs-unsigned compiler complaints I introduced by changing the type of a vrbl to unsigned. Removed the need for the tedious explanation about "backward pointer loops" by looping on an int instead. 31 July 2004, 02:54:42 UTC
8d9eb10 Armin asked for a list_ass_slice review in his checkin, so here's the result. list_resize(): Document the intent. Code is increasingly relying on subtle aspects of its behavior, and they deserve to be spelled out. list_ass_slice(): A bit more simplification, by giving it a common error exit and initializing more values. Be clearer in comments about what "size" means (# of elements? # of bytes?). While the number of elements in a list slice must fit in an int, there's no guarantee that the number of bytes occupied by the slice will. That malloc() and memmove() take size_t arguments is a hint about that <wink>. So changed to use size_t where appropriate. ihigh - ilow should always be >= 0, but we never asserted that. We do now. The loop decref'ing the recycled slice had a subtle insecurity: C doesn't guarantee that a pointer one slot *before* an array will compare "less than" to a pointer within the array (it does guarantee that a pointer one beyond the end of the array compares as expected). This was actually an issue in KSR's C implementation, so isn't purely theoretical. Python probably has other "go backwards" loops with a similar glitch. list_clear() is OK (it marches an integer backwards, not a pointer). 31 July 2004, 02:24:20 UTC
bcc95cb Repair typo in docstring. 31 July 2004, 00:19:43 UTC
63a5d0b re-wrap paragraphs containing long lines 30 July 2004, 19:12:38 UTC
69013d0 - document the termination condition for cmd.Cmd.cmdloop() - document the use of the return value for cmd.Cmd.do_*() methods 30 July 2004, 18:58:54 UTC
479b7a7 Fix typo. 30 July 2004, 16:09:19 UTC
back to top