summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Moved the errno import from inside the functions to theFacundo Batista2007-11-271-6/+3
| | | | module level. Fixes issue 1755179.
* back in these go - thanks to Titus Brown for the fixSkip Montanaro2007-11-242-0/+15
|
* Issue #1445: Fix a SystemError when accessing the ``cell_contents``Amaury Forgeot d'Arc2007-11-241-0/+12
| | | | attribute of an empty cell object. Now a ValueError is raised.
* revert change that breaks test_doctest (which I forgot to run - sorry)Skip Montanaro2007-11-242-13/+0
|
* Test cases from Cowlishaw, v2.57. All are pased cleanly.Facundo Batista2007-11-23142-160/+510
|
* Major change in the internal structure of the DecimalFacundo Batista2007-11-232-302/+220
| | | | | | | | | | number: now it does not store the mantissa as a tuple of numbers, but as a string. This avoids a lot of conversions, and achieves a speedup of 40%. The API remains intact. Thanks Mark Dickinson.
* Make trace and doctest play nice together (issue 1429818). Will backport.Skip Montanaro2007-11-232-0/+13
|
* Fix a bug in the test for using __loader__.get_data().Brett Cannon2007-11-231-0/+1
|
* Backport of _abccoll.py by Benjamin Arangueren, issue 1383.Guido van Rossum2007-11-228-7/+776
| | | | With some changes of my own thrown in (e.g. backport of r58107).
* Add a missing check before deleting a package's __loader__.Brett Cannon2007-11-211-1/+2
|
* doctest assumed that a package's __loader__.get_data() method used universalBrett Cannon2007-11-212-1/+21
| | | | | | | newlines; it doesn't. To rectify this the string returned replaces all instances of os.linesep with '\n' to fake universal newline support. Backport candidate.
* Remove a unneeded line that had typos.Brett Cannon2007-11-211-2/+0
|
* The incremental decoder for utf-7 must preserve its state between calls.Amaury Forgeot d'Arc2007-11-202-15/+22
| | | | | | | Solves issue1460. Might not be a backport candidate: a new API function was added, and some code may rely on details in utf-7.py.
* Another fix for test_shutil. Martin pointed out that it breaks some build botsChristian Heimes2007-11-201-1/+3
|
* Fixed bug #1470Christian Heimes2007-11-201-5/+2
|
* Fix the OSX failures in this test -- they were due to /tmp being a symlinkGuido van Rossum2007-11-191-0/+1
| | | | to /private/tmp. Adding a call to os.path.realpath() to temp_dir() fixed it.
* Make this work stand-alone, too.Guido van Rossum2007-11-191-1/+1
|
* Enable some test_cmd_line_script debugging output to investigate failure on ↵Nick Coghlan2007-11-191-3/+3
| | | | Mac OSX buildbot
* Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode())Walter Dörwald2007-11-192-5/+55
| | | | | calling codecs.utf_8_decode() with final==True, which falled with incomplete byte sequences. Fix and test by James G. Sack.
* Fix typo in comment.Walter Dörwald2007-11-191-1/+1
|
* Patch #1739468: Directories and zipfiles containing __main__.py are now ↵Nick Coghlan2007-11-182-0/+148
| | | | executable
* Now in find, rfind, index, and rindex, you can use None as defaults,Facundo Batista2007-11-161-0/+28
| | | | | | | | | | | | as usual with slicing (both with str and unicode strings). This fixes issue 1259. For str only the stringobject.c file was modified. But for unicode, I needed to repeat in the four functions a lot of code, so created a new function that does part of the job for them (and placed it in find.h, following a suggestion of Barry). Also added tests for this behaviour.
* add the certificate for the Python SVN repository for testing SSLBill Janssen2007-11-151-0/+31
|
* Small improvement to the implementation of __replace__().Raymond Hettinger2007-11-151-1/+1
|
* Accept Issac Morland's suggestion for __replace__ to allow multiple replacementsRaymond Hettinger2007-11-152-5/+9
| | | | | | (suprisingly, this simplifies the signature, improves clarity, and is comparably fast). Update the docs to reflect a previous change to the function name. Add an example to the docs showing how to override the default __repr__ method.
* Add test for __fields__ being read-onlyRaymond Hettinger2007-11-141-0/+8
|
* Make __fields__ read-only. Suggested by Issac MorlandRaymond Hettinger2007-11-141-1/+1
|
* Merge from py3k branch:Amaury Forgeot d'Arc2007-11-131-2/+47
| | | | | | | | | | | | | | | | | | | | | | Correction for issue1265 (pdb bug with "with" statement). When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx is called with a GeneratorExit exception set. This leads to funny results if the sys.settrace function itself makes use of generators. A visible effect is that the settrace function is reset to None. Another is that the eventual "finally" block of the generator is not called. It is necessary to save/restore the exception around the call to the trace function. This happens a lot with py3k: isinstance() of an ABCMeta instance runs def __instancecheck__(cls, instance): """Override for isinstance(instance, cls).""" return any(cls.__subclasscheck__(c) for c in {instance.__class__, type(instance)}) which lets an opened generator expression each time it returns True. Backport candidate, even if the case is less frequent in 2.5.
* Add the test from issue 1704621 (the issue itself is already fixed here).Guido van Rossum2007-11-121-0/+7
|
* Fix TextCalendar.prweek(). This closes issue #1427.Walter Dörwald2007-11-121-1/+1
|
* Fix for #1427: Error in standard module calendarChristian Heimes2007-11-121-8/+12
| | | | the prweek() method is still broken and I can't figure out how it suppose to work.
* Fixed a bug reported (in private email, by Robert Crida) in logging ↵Vinay Sajip2007-11-111-3/+27
| | | | configuration whereby child loggers of a logger named in a configuration file, which are not themselves named in the configuration, are disabled when the configuration is applied.
* Issue 1416. Add getter, setter, deleter methods to properties that can beGuido van Rossum2007-11-101-0/+65
| | | | used as decorators to create fully-populated properties.
* Correct a comment about testing methods - nowadays mostGeorg Brandl2007-11-091-4/+3
| | | | tests don't run directly on import.
* Add set.isdisjoint()Raymond Hettinger2007-11-081-2/+47
|
* Optimize dict.fromkeys() with dict inputs. Useful for resetting bag/muliset ↵Raymond Hettinger2007-11-071-0/+4
| | | | counts for example.
* Fix marshal's incorrect handling of subclasses of builtin types (backport ↵Raymond Hettinger2007-11-071-0/+11
| | | | candidate).
* Fixes Issue 1385: The hmac module now computes the correct hmac when usingGregory P. Smith2007-11-062-7/+177
| | | | hashes with a block size other than 64 bytes (such as sha384 and sha512).
* * db->get_flags is only available in BerkeleyDB >= 4.2Gregory P. Smith2007-11-051-0/+4
|
* Add the bsddb.db.DBEnv.lock_id_free method.Gregory P. Smith2007-11-051-14/+12
| | | | Improve test_lock's tempdir creation and cleanup.
* Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags andGregory P. Smith2007-11-051-0/+24
| | | | | | | | | | pay attention to them when opening an existing database. This means that d[] behaves properly even on databases previously created with DB_DUP or DB_DUPSORT flags to allow duplicate keys. http://sourceforge.net/tracker/index.php?func=detail&aid=477182&group_id=13900&atid=113900 Do not backport, this bugfix could be considered an API change.
* Add a missing quotation mark.Brett Cannon2007-11-031-1/+1
|
* Enable the full ctypes c_longdouble tests again.Thomas Heller2007-11-022-22/+22
|
* Fix for bug 1705170 - contextmanager swallowing StopIteration (2.5 backport ↵Nick Coghlan2007-11-022-0/+21
| | | | candidate)
* Undo revision 58533 58534 fixes. Those were a workaround forGregory P. Smith2007-11-011-3/+2
| | | | a problem introduced by 58385.
* Fix bug introduced in revision 58385. Database keys could no longerGregory P. Smith2007-11-011-4/+21
| | | | | have NULL bytes in them. Replace the errant strdup with a malloc+memcpy. Adds a unit test for the correct behavior.
* Removed non ASCII text from test as requested by Guido. Sorry :/Christian Heimes2007-11-011-20/+2
|
* Backport of import tests for bug http://bugs.python.org/issue1293 and bug ↵Christian Heimes2007-11-011-2/+43
| | | | http://bugs.python.org/issue1342
* check in Tal Einat's update to tabpage.pyKurt B. Kaiser2007-10-303-9/+489
| | | | | | | | Patch 1612746 M configDialog.py M NEWS.txt AM tabbedpages.py
* Patch 1353 by Jacob Winther.Guido van Rossum2007-10-291-0/+1
| | | | Add mp4 mapping to mimetypes.py.