summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Exercise xrange a bitNeal Norwitz2004-07-081-0/+59
|
* Exercise some error conditionsNeal Norwitz2004-07-081-0/+10
|
* SF bug #978308, Spurious errors taking bool of dead proNeal Norwitz2004-07-081-0/+1
| | | | | | Need to return -1 on error. Needs backport.
* Tim gets his default traps.Raymond Hettinger2004-07-081-8/+10
|
* Whitespace normalization.Tim Peters2004-07-0732-166/+144
|
* [Bug #925107] Make .readline() consider self.stop. This makes read() and ↵Andrew M. Kuchling2004-07-071-13/+8
| | | | | | readline() very similar, so they're refactored into _read. Patch by Johannes Gijsbers. 2.3 bugfix candidate.
* For readable() objects, the previous value of 'flags' was ignored.Andrew M. Kuchling2004-07-071-2/+2
| | | | Rearrange code for writable() case to make the parallel logic clearer
* whitespace normalizationSkip Montanaro2004-07-061-2/+2
|
* Fix SF#983164.Thomas Heller2004-07-061-2/+26
| | | | | | | | | | | | | | | | | | Patch from Mark Hammond: bdist_wininst attempts to use the correct MSVC runtime for the current version of Python. This doesn't work correctly when --target-version is set. In that case, bdist_wininst still uses the *current* sys.version (ie, 2.4) rather than the version specified as --target-version. Thus, the msvc7 runtime based executable stub is *always* used. This patch "hard-codes" knowledge of earlier Python versions, providing the correct result when Python 2.4 is used to build Python 2.3 and earlier distributions. Remove the short variant (-v) of the --target-version command line options, it conflicts with the --verbose/-v standard distutils switch.
* testGetServBy(): Use services that should be available both on *nix andBarry Warsaw2004-07-061-1/+1
| | | | Windows (XP at least ;). Test in this order: echo, daytime, domain.
* * Fix missing return after error message is set.Raymond Hettinger2004-07-061-0/+1
| | | | * Add a test case that would have caught it.
* * Add __eq__ and __ne__ so that things like list.index() work properlyRaymond Hettinger2004-07-052-15/+26
| | | | | for lists of mixed types. * Test that sort works.
* Test the logic for int(d).Raymond Hettinger2004-07-051-0/+10
|
* * Update the todo list.Raymond Hettinger2004-07-051-1/+2
| | | | * Make ConversionSyntax signals get trapped by default.
* * Fixup docstringsRaymond Hettinger2004-07-051-7/+6
| | | | * Make capitals default part of DefaultContext
* Changed the rounding constant values to match their variable names.Raymond Hettinger2004-07-041-32/+23
| | | | | | | | | | | | | | | | | | This serves to made the context representation more useful (the names in match the names out). Removed the link to ReXX. That document did not shed add anything to information already in the spec. Further tighten the public API to improve usability: * Emax and Emin are set through Context(). Their defaults are set in the DefaultContext, so there is no need to expose DEFAULT_MAX_EXPONENT and DEFAULT_MIN_EXPONENT. * The string functions isnan() and isinfinity() were only used internal to the module and were not among the test cases. External use cases are served by the Decimal constructor. So, made these private.
* Fix clear_flags(). Make a readable (not evalable) Context repr.Raymond Hettinger2004-07-041-1/+9
|
* Redirect the warning stream to the shell during the ScriptBinding check of ↵Kurt B. Kaiser2004-07-044-20/+72
| | | | | | | | | | | | user code and format the warning similarly to an exception for both that check and for warnings raised in the subprocess. M NEWS.txt M Pyshell.py M ScriptBinding.py M run.py
* Namespace cleanups:Raymond Hettinger2004-07-031-123/+126
| | | | | | | * delete temporary globals immediately after use * move a global into a class variable * Rename BasicDefaultContext and ExtendedDefaultContext to BasicContext and ExtendedContext.
* * Make the tests independent of the default precision.Raymond Hettinger2004-07-032-119/+127
| | | | * Change the default precision to 28 (to match VB's decimal type).
* Refactored RotatingFileHandler to create a base class for rotating ↵Vinay Sajip2004-07-031-11/+167
| | | | handlers. Added TimedRotatingFileHandler.
* Changed basicConfig() to add keyword arguments. Changes are backward-compatible.Vinay Sajip2004-07-031-10/+56
| | | | | Added error checking to log() to check that level is an integer, and raise a TypeError if not (as long as raiseExceptions is set). Minor documentation corrections.
* Work through several open todos:Raymond Hettinger2004-07-032-50/+55
| | | | | | | | | | | | | | | | | * Added test for pickling contexts * Renamed ExceptionList to Signals (to match wording in the spec) * Simplified Context constructor by allowing flags=None to automatically generate a zeroed-out flags dictionary. * inlined _convertString() which was used only once * _rounding_decision is private, so excluded its contants from __all__. * added an XXX comment with concerns about subclassing signals results in a deviation from the spec (maybe important, maybe not). * Taught the test_suite to determine its own directory (modeled after code in regrtest.py). Enables it to be run when the current directory is not the test directory. * Added a clear_flags() method to the Context API to make it easier to do a common operation with flags. * Fixed the trap_enablers defaults in BasicDefaultContext to match the spec.
* threading.Thread objects will now print a traceback for an exception raisedBrett Cannon2004-07-031-2/+38
| | | | | | | during interpreter shutdown instead of masking it with another traceback about accessing a NoneType when trying to print the exception out in the first place. Closes bug #754449 (using patch #954922).
* Add tests that check the result of calendar.monthcalendar() for a setWalter Dörwald2004-07-021-1/+79
| | | | of corner cases.
* Make weak references subclassable:Fred Drake2004-07-022-16/+100
| | | | | | | | | | | | | | | | | | | | | | - weakref.ref and weakref.ReferenceType will become aliases for each other - weakref.ref will be a modern, new-style class with proper __new__ and __init__ methods - weakref.WeakValueDictionary will have a lighter memory footprint, using a new weakref.ref subclass to associate the key with the value, allowing us to have only a single object of overhead for each dictionary entry (currently, there are 3 objects of overhead per entry: a weakref to the value, a weakref to the dictionary, and a function object used as a weakref callback; the weakref to the dictionary could be avoided without this change) - a new macro, PyWeakref_CheckRefExact(), will be added - PyWeakref_CheckRef() will check for subclasses of weakref.ref This closes SF patch #983019.
* Fix for SF 982215: bdist_wininst - Next button not greyed out during file copy.Thomas Heller2004-07-022-0/+0
| | | | | | | Patch from Mark Hammond. Recompiled binary. Already packported to the 2.3 branch.
* SF Bug #215126: Over restricted type checking on eval() functionRaymond Hettinger2004-07-022-11/+55
| | | | | | The builtin eval() function now accepts any mapping for the locals argument. Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing down the normal case. My timings so no measurable impact.
* Committing Tim's patch for SF bug #983585:Fred Drake2004-07-011-2/+1
| | | | test_repr() fails with id() values that appear negative
* FixMichael W. Hudson2004-07-011-39/+44
| | | | | | | | [ 924301 ] A leak case with cmd.py & readline & exception by ensuring that the readline completion function is always reset even in the case of an exception being raised. As a bonus, this makes the documentation for pre & postloop accurate again.
* fix small consistency nitFred Drake2004-07-011-1/+1
|
* Move Decimal from the sandbox into production.Raymond Hettinger2004-07-011-0/+1
|
* Move Decimal from the sandbox into production.Raymond Hettinger2004-07-0133-1/+27038
|
* Check in the updated version of patch #957240, which doesn't relyMichael W. Hudson2004-06-301-3/+10
| | | | on the marshalling characteristics of infinities.
* [Bug #912845] urllib2 only checks for a 200 return code, but 206 is also ↵Andrew M. Kuchling2004-06-291-2/+2
| | | | | | legal if a Range: header was supplied. (Actually, should the first 'if' statement be modified to allow any 2xx status code?)
* Remove unused import. (If it's there for some deep, dark reason, it should ↵Andrew M. Kuchling2004-06-291-1/+0
| | | | have been commented.)
* Add test case for bug #912845: requesting an HTTP byte range doesn't workAndrew M. Kuchling2004-06-291-6/+16
|
* Docstring grammar fixAndrew M. Kuchling2004-06-291-1/+1
|
* rsync is now a recognized protocol that uses "netloc" (i.e. specifies a networkBrett Cannon2004-06-291-1/+1
| | | | | | location) in its addressing. Closes bug #981299.
* Patch from Mark Hammond to fix a test error.Raymond Hettinger2004-06-281-9/+12
| | | | Now runs without exception on WinME/98.
* Adds support for DB.pget and DBCursor.pget methods.Gregory P. Smith2004-06-282-0/+27
| | | | | Based on a patch supplied by Ian Ward <ian@arevco.ca> on the pybsddb mailing list 2004-03-26.
* Added socket.getservbyport(), and make its second argument and that ofBarry Warsaw2004-06-281-10/+22
| | | | getservbyname() optional. Update the tests and the docs.
* SF patch / bug #967763Gregory P. Smith2004-06-271-0/+9
| | | | | | | | | | | | Fix memory leaks revealed by valgrind and ensuing code inspection. In the existing test suite valgrind revealed two memory leaks (DB_get and DBC_set_range). Code inspection revealed that there were many other potential similar leaks (many on odd code error paths such as passing something other than a DBTxn object for a txn= parameter or in the face of an out of memory error). The most common case that would cause a leak was when using recno or queue format databases with integer keys, sometimes only with an exception exit.
* Fix SF bug # 897820 - we can no longer use the DB_TRUNCATE flag whenGregory P. Smith2004-06-271-6/+11
| | | | | | opening the DB to implement legacy interface flag='n' support as BerkeleyDB 4.2.52 no longer allows it in transaction protected environments. Do the os.unlink ourselves.
* * Silence a test failure that resulted when test_site was run byRaymond Hettinger2004-06-271-7/+10
| | | | | | | | | | regrtest.py after it ran test_frozen. This test was really only designed to be run immediately after startup. Afterwards, other modules could be loaded when had not been fixed-up by site.py Took the chicken way out and only tested those modules known to be imported by site.py. * Normalized whitespace.
* remove debugging printSkip Montanaro2004-06-261-1/+0
|
* Allow classes from other modules to be specified at startup. For example,Skip Montanaro2004-06-261-2/+9
| | | | | | using the postfixproxy module from Spambayes you might start smtpd up like smtpd.py -c spambayes.postfixproxy.SpambayesProxy :8025 :8026
* Massive performance improvement for C extension and builtin tracing codeNicholas Bastin2004-06-251-3/+3
|
* Make distutils "install --home" support all platforms.Fred Drake2004-06-252-17/+72
|
* add boilerplate so the test modules can be run as scriptsFred Drake2004-06-253-1/+9
|