summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Removed most of the module docstring. There's too much to explain now,Tim Peters2004-09-251-124/+2
| | | | and the LaTeX docs are in increasingly good shape.
* Whitespace normalization.Tim Peters2004-09-241-1/+1
|
* Port test_unpack to doctest (patch #736962).Johannes Gijsbers2004-09-241-144/+131
|
* Add yet more tests for buffer().Neil Schemenauer2004-09-241-0/+11
|
* Add a few more tests for the buffer() object.Neil Schemenauer2004-09-241-0/+8
|
* Added log() functionVinay Sajip2004-09-241-0/+8
|
* Added exception handling during handler initialization in fileConfig()Vinay Sajip2004-09-241-24/+27
|
* Whitespace normalization.Tim Peters2004-09-241-1/+1
|
* Granted Noam Raphael's request for minor improvements to the re module andRaymond Hettinger2004-09-241-4/+4
| | | | | | | | | | | | | | its documentation. * Documented that the compiled re methods are supposed to be more full featured than their simpilified function counterparts. * Documented the existing start and stop position arguments for the findall() and finditer() methods of compiled regular expression objects. * Added an optional flags argument to the re.findall() and re.finditer() functions. This aligns their API with that for re.search() and re.match().
* SF bug #513866: Float/long comparison anomaly.Tim Peters2004-09-231-2/+102
| | | | | | | | | | | | | | | | | | When an integer is compared to a float now, the int isn't coerced to float. This avoids spurious overflow exceptions and insane results. This should compute correct results, without raising spurious exceptions, in all cases now -- although I expect that what happens when an int/long is compared to a NaN is still a platform accident. Note that we had potential problems here even with "short" ints, on boxes where sizeof(long)==8. There's #ifdef'ed code here to handle that, but I can't test it as intended. I tested it by changing the #ifdef to trigger on my 32-bit box instead. I suppose this is a bugfix candidate, but I won't backport it. It's long-winded (for speed) and messy (because the problem is messy). Note that this also depends on a previous 2.4 patch that introduced _Py_SwappedOp[] as an extern.
* Improve three recipes in the itertools docs.Raymond Hettinger2004-09-231-3/+9
|
* Arghh, checked in wrong draft. Replacing with correct one.Raymond Hettinger2004-09-231-3/+4
|
* Use local variables in StringIO.write().Raymond Hettinger2004-09-231-10/+11
| | | | Makes it easier on the eyes and a bit more snappy.
* Fix for SF bug #1029475 : reload() doesn't work with PEP 302 loaders.Phillip J. Eby2004-09-231-2/+16
|
* SF patch #1031667: Fold tuples of constants into a single constantRaymond Hettinger2004-09-221-3/+13
| | | | | | | | Example: >>> import dis >>> dis.dis(compile('1,2,3', '', 'eval')) 0 0 LOAD_CONST 3 ((1, 2, 3)) 3 RETURN_VALUE
* Bug #1030125: rfc822 __iter__ problemRaymond Hettinger2004-09-222-0/+14
| | | | Add iteration support to the Message class.
* Added getLoggerClass()Vinay Sajip2004-09-221-12/+15
|
* - Minor docstring fixes.Edward Loper2004-09-211-15/+9
| | | | - Simplified code to find names for file-based tests.
* - Changed SampleClass docstrings to test docstring parsing a littleEdward Loper2004-09-211-7/+18
| | | | more thouroughly.
* Whitespace normalization.Tim Peters2004-09-201-4/+4
|
* Import no longer needed.Raymond Hettinger2004-09-201-1/+0
|
* Raymond reminded me to use DSU keySkip Montanaro2004-09-201-2/+1
|
* Sort classes by fully qualified name. In the common case where you areSkip Montanaro2004-09-201-1/+2
| | | | | | displaying a set of classes from one module it doesn't matter, but if you are displaying a large class tree from multiple modules it improves the display to sort by module.name.
* - Added "testfile" function, a simple function for running & verifyingEdward Loper2004-09-192-40/+315
| | | | | | | | all examples in a given text file. (analagous to "testmod") - Minor docstring fixes. - Added module_relative parameter to DocTestFile/DocTestSuite, which controls whether paths are module-relative & os-independent, or os-specific.
* SF patch #1020845: Decimal performance enhancementsRaymond Hettinger2004-09-191-500/+437
| | | | | | | | | | | | (Contributed by Nick Coghlan.) Various code cleanups and optimizations (saves about 40% on testsuite execution time and on the telco benchmark). * caches results of various operations on self (esp. checks for being a special value). * _WorkRep now uses ints and longs for intermediate computations.
* In DocFileTest:Edward Loper2004-09-182-6/+46
| | | | | | | - Fixed bug in handling of absolute paths. - If run from an interactive session, make paths relative to the directory containing sys.argv[0] (since __main__ doesn't have a __file__ attribute).
* Patch #1021596: Check for None to determine whether _urandomfd isMartin v. Löwis2004-09-181-1/+1
| | | | uninitialized.
* Convert boolean results back to strings. Fixes #807871.Martin v. Löwis2004-09-181-1/+6
| | | | Will backport to 2.3.
* Patch #1029061: Always extract member names from the tarinfo.Martin v. Löwis2004-09-181-25/+16
|
* Patch #1025790: Add status code constants to httplib.Martin v. Löwis2004-09-181-3/+62
|
* At the cost of a modest (but useful in its own right) change in the semanticsBarry Warsaw2004-09-181-8/+6
| | | | | | | | | of the Template.delimiter attribute, we make use of the delimiter in the escaped group, and in the safe_substitute() method more robust. Now, .delimiter should be the unescaped delimiter literal, e.g. '$' or '&', or whatever. The _TemplateMetaclass will re.escape() this value when it builds the pattern.
* SF Patch 1022011: Add a command-line argument --no-autoreq, which sets theSean Reifschneider2004-09-171-1/+8
| | | | "AutoReq: 0" to disable automatic dependency searching.
* SF Patch 1022003: Change bdist_rpm _topdir to useSean Reifschneider2004-09-171-1/+1
| | | | os.path.abspath(self.rpm_base) instead of os.getcwd() + '/' + self.rpm_base
* SF bug #1028306: date-datetime comparisonTim Peters2004-09-161-0/+43
| | | | Treat comparing a date to a datetime like a mixed-type comparison.
* Whitespace normalization.Tim Peters2004-09-162-2/+2
|
* Remove tabs.Brett Cannon2004-09-152-6/+6
|
* Patch #1026986: Add OpenBSD 3.5 and 3.6 to list of broken systems.Martin v. Löwis2004-09-151-0/+2
|
* Strip square brackets from IPv6 address.Martin v. Löwis2004-09-142-3/+10
|
* missed the obvious test case and corresponding fixSkip Montanaro2004-09-142-2/+3
|
* Search from the end of the host/port combination to find the colon whichSkip Montanaro2004-09-142-1/+8
| | | | separates ip address from the port to accommodate ipv6 addresses.
* Make the hint about the None default less ambiguous.Walter Dörwald2004-09-141-1/+1
|
* Enhance the docstrings for unicode.split() and string.split()Walter Dörwald2004-09-141-1/+1
| | | | | to make it clear that it is possible to pass None as the separator argument to get the default "any whitespace" separator.
* Fix small bugs in Template code.Raymond Hettinger2004-09-142-15/+30
| | | | | | | | | | | | | | * The parameterization of "delimiter" was incomplete. * safe_substitute's code for braced delimiters should only be executed when braced is not None. * Invalid pattern group names now raise a ValueError. Formerly, the convert code would fall off the end and improperly return None. Beefed-up tests. * Test delimiter override for all paths in substitute and safe_substitute. * Alter unittest invocation to match other modules (now it itemizes the tests as they are run).
* SF #1027105: HardwareRandom should be renamed OSRandomRaymond Hettinger2004-09-132-15/+17
| | | | | | Renamed the new generator at Trevor's recommendation. The name HardwareRandom suggested a bit more than it delivered (no radioactive decay detectors or such).
* The 4th group is now 'invalid' instead of 'bogus'.Barry Warsaw2004-09-131-1/+1
|
* Raymond's good suggestion to re-order the tests in the convert() helper so theBarry Warsaw2004-09-131-13/+16
| | | | | most common paths are tested first. Also, that 'invalid' is better than 'bogus'.
* substitute(), safe_substitute(): Paul Moore provides a better hack for dealingBarry Warsaw2004-09-131-11/+19
| | | | with positional arguments.
* Added a test for # positional arguments > 1.Barry Warsaw2004-09-131-0/+4
|
* exclude_empty: make the default True for DocTestFinder, and introduce itTim Peters2004-09-132-14/+27
| | | | | | | with default False for testmod(). The real point of introducing this was so that output from doctest.master.summarize() would be the same as in 2.3, and doctest.master in 2.4 is a backward-compatability hack used only by testmod().
* Add tests for keyword arguments and combining mapping and keyword arguments.Barry Warsaw2004-09-131-0/+28
|