summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* PEP-0318, @decorator-style. In Guido's words:Anthony Baxter2004-08-0214-725/+1084
| | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728.
* 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.
* Fix SF #1001053, wave.open() with unicode filename failsNeal Norwitz2004-08-011-2/+2
| | | | Backport candidate.
* 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).
* 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.)
* Repair typo in docstring.Tim Peters2004-07-311-1/+1
|
* * drop the unreasonable list invariant that ob_item should never come backArmin Rigo2004-07-291-0/+17
| | | | | | | | | | | | | | | | | | | | | to NULL during the lifetime of the object. * listobject.c nevertheless did not conform to the other invariants, either; fixed. * listobject.c now uses list_clear() as the obvious internal way to clear a list, instead of abusing list_ass_slice() for that. It makes it easier to enforce the invariant about ob_item == NULL. * listsort() sets allocated to -1 during sort; any mutation will set it to a value >= 0, so it is a safe way to detect mutation. A negative value for allocated does not cause a problem elsewhere currently. test_sort.py has a new test for this fix. * listsort() leak: if items were added to the list during the sort, AND if these items had a __del__ that puts still more stuff into the list, then this more stuff (and the PyObject** array to hold them) were overridden at the end of listsort() and never released.
* Ignore exceptions which occur when closing files in shutdown()Vinay Sajip2004-07-291-2/+7
|
* SF bug #999776, zlib home page wrongNeal Norwitz2004-07-291-1/+1
| | | | Backport candidate.
* New codec: [ 996067 ] hp-roman8 codecMarc-André Lemburg2004-07-281-0/+139
|
* Added new codec hp-roman8 submitted as patch [ 996067 ] hp-roman8 codec.Marc-André Lemburg2004-07-281-0/+7
|
* Since build_py handles package data installation, the list of outputsFred Drake2004-07-281-0/+11
| | | | | can contain more than just .py files. Make sure we only report bytecode files for the .py files.
* Ack, removed useless import of os I just introduced.Tim Peters2004-07-271-1/+1
|
* Added a new fileno() method. ZODB's repozo.py wants this so it canTim Peters2004-07-272-2/+18
| | | | apply os.fsync() to the GzipFile backup files it creates.
* Patch #995766: Keyword argument support in cPickle.Martin v. Löwis2004-07-271-0/+10
|
* Patch #998149: imaplib deleteacl and myrights.Martin v. Löwis2004-07-271-0/+15
|
* Patch #962487: Don't crash for empty locale names.Martin v. Löwis2004-07-261-1/+1
|
* Patch #605370: Add description[s] for RFC 2980 compliance.Martin v. Löwis2004-07-261-0/+36
|
* Patch #995782: Add FreeBSD 5 expectations. Will backport to 2.3.Martin v. Löwis2004-07-261-0/+1
|
* added test for bug #996359.Skip Montanaro2004-07-241-3/+18
|
* add missing newlines to read/readline.Skip Montanaro2004-07-241-2/+2
| | | | fixes bug #996359.
* Factored out a method to determine the final installer filename.Thomas Heller2004-07-231-9/+14
|
* Make the distutils version number the same as the python version. ItThomas Heller2004-07-231-1/+1
| | | | | must be literally contained here, because it is still possible to install this distutils in older Python versions.
* bdist_wininst does now properly handle unicode strings or byte stringsThomas Heller2004-07-231-7/+18
| | | | | | with umlauts in the author argument and others. Fixes sf # 993943.
* Let u'%s' % obj try obj.__unicode__() first and fallback to obj.__str__().Marc-André Lemburg2004-07-231-0/+8
|
* This change implements the following gettext features, asGustavo Niemeyer2004-07-221-10/+95
| | | | | | | | | | | | | | | | | | | | discussed recently in python-dev: In _locale module: - bind_textdomain_codeset() binding In gettext module: - bind_textdomain_codeset() function - lgettext(), lngettext(), ldgettext(), ldngettext(), which return translated strings encoded in preferred system encoding, if bind_textdomain_codeset() was not used. - Added equivalent functionality in translate() function and catalog classes. Every change was also documented.
* SF patch 995225: tarfile.py fix for bug #990325Tim Peters2004-07-221-0/+0
| | | | | Removes CVS keywords from this binary file, so that test_tarfile passes regardless of whether Python is checked out with -kk.
* elaborate package data test to make sure get_outputs() gives the rightFred Drake2004-07-211-1/+7
| | | | | | results when byte-code compilation is requested (in particular, make sure that package data doesn't get a bogus byte-code listing generated)
* Thread.__delete: Discussion of internal obscurities belongs in commentsTim Peters2004-07-211-31/+28
| | | | | | | | rather than in docstrings. Rewrote so that _active_limbo_lock is released no matter what happens (it could have been left locked if _sys got None'd out). Use "in" in preference to has_key() for dict lookup. Don't bother looking for 'dummy_threading' in sys.modules unless KeyError is raised. Since the heart of the method is the del, do that in only one place.
* EditorWindow.py was not finding the .chm help file on Windows. TypoKurt B. Kaiser2004-07-211-1/+2
| | | | at Rev 1.54. Python Bug 990954
* Fix bug where a KeyError was raised if -O was being used for the interpreterBrett Cannon2004-07-211-1/+33
| | | | | | | | | and Thread.__delete() was called after a Thread instance was created. Problem resulted from a currentThread() call in an 'assert' statement being optimized out and dummy_thread.get_ident() always returning -1 and thus overwriting the entry for the _MainThread() instance created in 'threading' at import time. Closes bug #993394.
* Remove unused variablesNeal Norwitz2004-07-201-2/+0
|
* SF #918101, allow files >= 8 GB using GNU extensionNeal Norwitz2004-07-201-6/+32
|
* SF #857297 and 916874, improve handling of hard links when extractingNeal Norwitz2004-07-202-1/+27
|
* SF #846659, fix bufsize violation and GNU longname/longlink extensionsNeal Norwitz2004-07-202-2/+93
|
* Fix bug in addsitedir() to properly handle the lack of a second argument.Brett Cannon2004-07-201-3/+3
| | | | | | Fixed to keep backwards-compatibility for the undocumented function. Closes bug #986795.
* Check the type of values returned by __int__, __float__, __long__,Neil Schemenauer2004-07-191-27/+80
| | | | | | __oct__, and __hex__. Raise TypeError if an invalid type is returned. Note that PyNumber_Int and PyNumber_Long can still return ints or longs. Fixes SF bug #966618.
* Don't return spurious empty fields if 'keep_empty_values' is True.Neil Schemenauer2004-07-193-2/+34
| | | | Fixes SF bug #990307.
* The binary layout of cfgdata has changed, so the magic number has toThomas Heller2004-07-192-0/+0
| | | | | change as well. Recompiled binaries after this change.
* The binary layout of cfgdata has changed, so the magic number has toThomas Heller2004-07-191-1/+7
| | | | change as well. Add a comment explaining this.
* test_codecmaps_hk is also expected to be skipped when a mapping fileHye-Shik Chang2004-07-191-1/+2
| | | | isn't available. (Spotted by Raymond Hettinger)
* Don't try to create the directory if it already exists, otherwise the test failsNeal Norwitz2004-07-191-1/+2
|
* Record that FCNTL.py has gone away; remove FCNTL hack in tempfile.py;Tim Peters2004-07-181-7/+5
| | | | | another hack remains in test___all__.py, but the problem that one addresses is more general than *just* FCNTL, so leaving it alone.
* Remove FCNTL.py, following python-dev discussionAndrew M. Kuchling2004-07-181-14/+0
|
* test_sf_950057's gen1() used an assert statement, which caused the testTim Peters2004-07-181-1/+1
| | | | to fail when running with -O. Changed to raise AssertionError instead.
* Repair bizarre generated Python.Tim Peters2004-07-182-2/+2
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-18179-5419/+5387
|