summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix [ 1001018 ]: Windows: setdefaulttimeout causes unnecessary timeouts onMark Hammond2004-08-031-3/+24
| | | | connect error
* Tweak previous patch to silence a warning about the unused left value in theBrett Cannon2004-08-031-1/+1
| | | | | | 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.
* fix a little lie ;-(Fred Drake2004-08-021-3/+2
|
* Fix typo thoughNeal Norwitz2004-08-021-2/+2
|
* fix markup errorFred Drake2004-08-021-1/+1
|
* start filling in documentation on extending distutilsFred Drake2004-08-021-2/+48
|
* - fix description of option table entriesFred Drake2004-08-021-3/+4
| | | | - fix broken assert statement; should just raise
* Use isabs() in conditional, not abspathAndrew M. Kuchling2004-08-021-1/+1
|
* Fix for the unfortunate fact that PyDict_GetItem and PyObject_GetItemMichael W. Hudson2004-08-021-2/+4
| | | | | | | 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.
* Add PEP318Andrew M. Kuchling2004-08-021-4/+131
|
* Any call to insort_{left,right} with a non-list leaked a reference to NoneMichael W. Hudson2004-08-021-6/+10
| | | | (or to whatever the 'insert' method chose to return).
* Add a missing decref.Michael W. Hudson2004-08-021-0/+1
|
* for some reason, the lack of adherence to Python's C whitespace rulesMichael W. Hudson2004-08-021-2/+2
| | | | must have annoyed me at some point.
* Add import change; add empty section for function decoratorsAndrew M. Kuchling2004-08-021-0/+17
|
* Update itemAndrew M. Kuchling2004-08-021-2/+4
|
* and a unit test for the staticmethod-of-a-non-method failure just fixedAnthony Baxter2004-08-021-0/+6
|
* fix for @decorators under a debug build.Anthony Baxter2004-08-021-0/+1
|
* Fix doubled word.Raymond Hettinger2004-08-021-1/+1
|
* Completed the patch for Bug #215126.Raymond Hettinger2004-08-025-6/+93
| | | | | | | * Fixes an incorrect variable in a PyDict_CheckExact. * Allow general mapping locals arguments for the execfile() function and exec statement. * Add tests.
* notes for @decoratorAnthony Baxter2004-08-022-0/+7
|
* PEP-0318, @decorator-style. In Guido's words:Anthony Baxter2004-08-0228-1918/+2548
| | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728.
* Typo repair.Tim Peters2004-08-021-1/+1
|
* Completed a sentence I left dangling.Tim Peters2004-08-021-1/+2
|
* Removed reliance on damaged module object appearing in sys.modulesTim Peters2004-08-021-2/+1
| | | | | | after a failed import. This is the last checkin in the "change import failure semantics" series.
* New tests:Tim Peters2004-08-021-0/+84
| | | | | | | | | | 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>.
* Removed no-longer-needed convolutions to recover from damaged modulesTim Peters2004-08-022-25/+0
| | | | getting left beyind in sys.modules.
* PyImport_ExecCodeModuleEx(): remove module from sys.modules in error cases.Tim Peters2004-08-021-16/+46
| | | | | | | | 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.
* "Core" and "C API" news about new semantics for failing imports.Tim Peters2004-08-021-1/+33
|
* PyImport_ImportModule, PyImport_ImportModuleEx, PyImport_ExecCodeModule:Tim Peters2004-08-021-10/+28
| | | | | in failure cases, incompletely initalized module objects are no longer left behind in sys.modules.
* lock_held() docs: Use True/False instead of 1/0. The LaTeX docs wereTim Peters2004-08-011-3/+3
| | | | already correct, so not changed here.
* Trimmed trailing whitespace.Tim Peters2004-08-011-2/+2
|
* Fix SF #1001053, wave.open() with unicode filename failsNeal Norwitz2004-08-012-2/+4
| | | | Backport candidate.
* Fix typo in commentNeal Norwitz2004-08-011-1/+1
|
* SF bug #1001088, incorrect reference to macro named fooNeal Norwitz2004-08-011-1/+1
| | | | Backport candidate.
* list_ass_slice(): Document the obscure new intent that deleting a sliceTim Peters2004-07-311-8/+16
| | | | | | | | | | | | | | | | | | | | | 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).
* Whitespace normalization.Tim Peters2004-07-312-100/+100
|
* Be more careful about reverting mutuations to system-wide (sys) variables.Tim Peters2004-07-311-20/+31
| | | | | | | 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).
* Mention upgrade of optparse to Optik 1.5a1.Greg Ward2004-07-311-0/+31
|
* Upgrade optparse module and tests to Optik 1.5a1:Greg Ward2004-07-312-341/+747
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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.)
* list_ass_slice(): The difference between "recycle" and "recycled" wasTim Peters2004-07-311-17/+10
| | | | | | | | 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.