Staging
v0.8.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
29302a7 Add a few more tests for the buffer() object. 24 September 2004, 15:35:15 UTC
739d49e Added log() function documentation 24 September 2004, 11:46:44 UTC
b2635b2 Added log() function 24 September 2004, 11:45:52 UTC
02dd994 Added exception handling during handler initialization in fileConfig() 24 September 2004, 11:45:13 UTC
1cc3738 Whitespace normalization. 24 September 2004, 04:36:47 UTC
9447874 Add docstrings for regular expression objects and methods. 24 September 2004, 04:31:19 UTC
596ba4d Granted Noam Raphael's request for minor improvements to the re module and 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(). 24 September 2004, 03:41:05 UTC
9fa544c Update for beta1 23 September 2004, 20:17:26 UTC
0c78956 Add various items 23 September 2004, 20:15:41 UTC
e1c69b3 float_richcompare(): Use the new Py_IS_NAN macro to ensure that, on platforms where that macro works, NaN compared to an int or long works the same as NaN compared to a finite float. 23 September 2004, 19:22:41 UTC
862f059 Introduced a Py_IS_NAN macro, which probably works on the major platforms today. pyconfig.h can override it if not, and can also override Py_IS_INFINITY now. Py_IS_NAN and Py_IS_INFINITY are overridden now for Microsoft compilers, using efficient MS-specific spellings. 23 September 2004, 19:11:32 UTC
307fa78 SF bug #513866: Float/long comparison anomaly. 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. 23 September 2004, 08:06:40 UTC
4533f1f Improve three recipes in the itertools docs. 23 September 2004, 07:27:39 UTC
513c8bd Arghh, checked in wrong draft. Replacing with correct one. 23 September 2004, 07:00:47 UTC
0336e1f Use local variables in StringIO.write(). Makes it easier on the eyes and a bit more snappy. 23 September 2004, 06:43:25 UTC
7ec642a Fix for SF bug #1029475 : reload() doesn't work with PEP 302 loaders. 23 September 2004, 04:37:36 UTC
f4aca75 A static swapped_op[] array was defined in 3 different C files, & I think I need to define it again. Bite the bullet and define it once as an extern, _Py_SwappedOp[]. 23 September 2004, 02:39:37 UTC
7790c3b Removed redundant declaration of _PyLong_NumBits(). 23 September 2004, 01:56:02 UTC
2c31a05 SF patch #1031667: Fold tuples of constants into a single constant Example: >>> import dis >>> dis.dis(compile('1,2,3', '', 'eval')) 0 0 LOAD_CONST 3 ((1, 2, 3)) 3 RETURN_VALUE 22 September 2004, 18:44:21 UTC
0318a93 Clarify that iteration is over headers, not Mime elements. 22 September 2004, 18:03:47 UTC
ce96d8b Bug #1030125: rfc822 __iter__ problem Add iteration support to the Message class. 22 September 2004, 17:17:32 UTC
c6646c0 Added getLoggerClass() 22 September 2004, 12:55:16 UTC
b959117 Added getLoggerClass() 22 September 2004, 12:39:26 UTC
a2fc7ec - Minor docstring fixes. - Simplified code to find names for file-based tests. 21 September 2004, 03:24:24 UTC
4ae900f - Changed SampleClass docstrings to test docstring parsing a little more thouroughly. 21 September 2004, 03:20:34 UTC
b3666a3 - Updated docs to reflect changes in 2.4. - Reorganized the documentation - Shifted focus a little more towards "literate testing" - Documented new functions and classes: - testfile() - Example, DocTest - DocTestParser, DocTestFinder, DocTestRunner, OutputChecker - DocFileSuite - DebugRunner, DocTestFailure, UnexpectedException - register_optionflag() 21 September 2004, 03:00:51 UTC
24a0045 Add a commented-out recipe on making trailing whitespace explicit. If people think this is not too intrusive it could be uncommented. 20 September 2004, 22:33:21 UTC
bab3e99 Whitespace normalization. 20 September 2004, 19:52:34 UTC
6165620 Import no longer needed. 20 September 2004, 18:08:31 UTC
468af71 Fix minor grammar typo. 20 September 2004, 17:47:46 UTC
13dea5a Raymond reminded me to use DSU key 20 September 2004, 16:43:30 UTC
41f89a4 Sort classes by fully qualified name. In the common case where you are 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. 20 September 2004, 15:40:38 UTC
729d47d Patch #1024670: Support int objects in PyLong_AsUnsignedLong[Mask]. 20 September 2004, 06:17:46 UTC
f13337d Fix lib-tk PythonPath. 19 September 2004, 18:36:45 UTC
052d0cd - Added "testfile" function, a simple function for running & verifying 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. 19 September 2004, 17:19:33 UTC
1be1a79 SF bug #1030557: PyMapping_Check crashes when argument is NULL Make PySequence_Check() and PyMapping_Check() handle NULL inputs. This goes beyond what most of the other checks do, but it is nice defensive programming and solves the OP's problem. 19 September 2004, 06:00:15 UTC
8b4e886 When this file is sourced in, or used as, one's vimrc file it will set the proper settings to follow the style guidelines laid out in PEPs 7 & 8 as best it can without forcing extraneous settings. Suggested settings are commented out and included at the end of the file. The goal is to have this file prevent as much as possible from deviating from the style guidelines. It is not meant to collect every cool macro possible for Python. Any useful settings for features included with Vim can be included and commented out, but anything overly extraneous should be left out. 19 September 2004, 05:43:13 UTC
636a6b1 SF patch #1020845: Decimal performance enhancements (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. 19 September 2004, 01:54:09 UTC
6cc1350 - Updated example output to match actual output - Minor wording changes - Changed the docs to reflect the fact that multiple option directives can be specified on a single line (and updated the directive production list, as well). 19 September 2004, 01:16:44 UTC
33db656 Update Template/PEP 292 documentation to current implementation. 18 September 2004, 21:13:43 UTC
0273f5b In DocFileTest: - 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). 18 September 2004, 20:27:04 UTC
c9f53b4 Link with ws2_32 instead of wsock32. 18 September 2004, 16:16:34 UTC
725f8c8 Patch #1021596: Check for None to determine whether _urandomfd is uninitialized. 18 September 2004, 16:07:58 UTC
b0c670c Convert boolean results back to strings. Fixes #807871. Will backport to 2.3. 18 September 2004, 16:01:23 UTC
5d52e78 Make curses.h inclusion conditional as in the original patch #1012280. Backported to 2.3. 18 September 2004, 10:07:03 UTC
ae2830c Patch #1012280: Include curses.h for term.h check. Fixes #933795. Will backport to 2.3. 18 September 2004, 09:54:52 UTC
f3c5611 Patch #1029061: Always extract member names from the tarinfo. 18 September 2004, 09:08:52 UTC
39a3178 Patch #1025790: Add status code constants to httplib. 18 September 2004, 09:03:49 UTC
17cb600 At the cost of a modest (but useful in its own right) change in the semantics 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. 18 September 2004, 00:06:34 UTC
2e6fb46 remove gzipped archives from the list of expected distributions 17 September 2004, 20:23:47 UTC
6011a3c SF Patch 1022011: Add a command-line argument --no-autoreq, which sets the "AutoReq: 0" to disable automatic dependency searching. 17 September 2004, 08:34:12 UTC
57a6a41 SF Patch 1022003: Change bdist_rpm _topdir to use os.path.abspath(self.rpm_base) instead of os.getcwd() + '/' + self.rpm_base 17 September 2004, 08:23:22 UTC
cfc3192 SF bug #1014215: Unspecific errors with metaclass High level error message was stomping useful detailed messages from lower level routines. The new approach is to augment string error messages returned by the low level routines. The provides both high and low level information. If the exception value is not a string, no changes are made. To see the improved messages in action, type: import random class R(random): pass class B(bool): pass 16 September 2004, 16:41:57 UTC
6543b45 Initialize sep and seplen to suppress warning from gcc. 16 September 2004, 03:28:13 UTC
528ca53 SF bug #1028306: date-datetime comparison Treat comparing a date to a datetime like a mixed-type comparison. 16 September 2004, 01:30:50 UTC
c74298a Whitespace normalization. 16 September 2004, 00:09:19 UTC
0a1af4a Remove tabs. 15 September 2004, 23:26:23 UTC
ca0d2cb Add a missing line continuation character. 15 September 2004, 11:41:32 UTC
9996828 Patch #1026986: Add OpenBSD 3.5 and 3.6 to list of broken systems. 15 September 2004, 06:02:54 UTC
74a249e Strip square brackets from IPv6 address. 14 September 2004, 21:45:36 UTC
82d0eec mention httplib ipv6 fix 14 September 2004, 17:58:31 UTC
cae14d2 missed the obvious test case and corresponding fix 14 September 2004, 17:55:21 UTC
1fd00a1 Make the word "module" appear in the error string for calling the module type with silly arguments. (The exact name can be quibbled over, if you care). This was partially inspired by bug #1014215 and so on, but is also just a good idea. 14 September 2004, 17:19:09 UTC
1593f50 Move a comment back to its rightful location. 14 September 2004, 17:09:47 UTC
10e6e0e Search from the end of the host/port combination to find the colon which separates ip address from the port to accommodate ipv6 addresses. 14 September 2004, 16:32:02 UTC
065a32f Make the hint about the None default less ambiguous. 14 September 2004, 09:45:10 UTC
782afc5 Enhance the docstrings for unicode.split() and string.split() to make it clear that it is possible to pass None as the separator argument to get the default "any whitespace" separator. 14 September 2004, 09:40:45 UTC
266a436 Remove claims that Python source code is ASCII. Fixes #1026038. 14 September 2004, 07:52:22 UTC
879ddf3 Tweak the wording. Improve examples. Make more brief. 14 September 2004, 06:32:20 UTC
29c6a79 Cover string.Template in the tutorial's library tour. 14 September 2004, 05:21:42 UTC
6d19111 Fix small bugs in Template code. * 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). 14 September 2004, 02:34:08 UTC
23f1241 SF #1027105: HardwareRandom should be renamed OSRandom Renamed the new generator at Trevor's recommendation. The name HardwareRandom suggested a bit more than it delivered (no radioactive decay detectors or such). 13 September 2004, 22:23:21 UTC
3e773fb The 4th group is now 'invalid' instead of 'bogus'. 13 September 2004, 20:53:27 UTC
b5c6b5b Raymond's good suggestion to re-order the tests in the convert() helper so the most common paths are tested first. Also, that 'invalid' is better than 'bogus'. 13 September 2004, 20:52:50 UTC
8ea5bdf Patch for compilation on IRIX from rwgk on http://python.org/sf/728330 13 September 2004, 17:48:41 UTC
b6234a9 substitute(), safe_substitute(): Paul Moore provides a better hack for dealing with positional arguments. 13 September 2004, 15:25:15 UTC
c7cd20c Added a test for # positional arguments > 1. 13 September 2004, 15:24:43 UTC
7642f7a Credit patch from Raymond 13 September 2004, 15:06:50 UTC
8278860 Document testmod's new exclude_empty argument. 13 September 2004, 15:03:17 UTC
958cc89 exclude_empty: make the default True for DocTestFinder, and introduce it 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(). 13 September 2004, 14:53:28 UTC
302bd58 Add tests for keyword arguments and combining mapping and keyword arguments. 13 September 2004, 14:35:59 UTC
46b629c Accepted Raymond's patch to combine mapping and keyword arguments, with slight modification. Also, renamed the positional argument to '__mapping' to further reduce the chance of duplicate keyword arguments. 13 September 2004, 14:35:04 UTC
5011d0c Fix quoting. 13 September 2004, 08:53:15 UTC
32ddbf7 Added new parameter exclude_empty to DocTestFinder.__init__, which controls whether tests are included for objects with empty docstrings. Defaults to True, to match the behavior of Python 2.3. 13 September 2004, 05:47:24 UTC
c568478 DocTestFinder._find(): for tests derived from a module __test__ global, doctest always promised to stick "__test__" in the name. That got broken. Now it's fixed again. 13 September 2004, 01:07:12 UTC
82076ef Reluctantly, rehabilitate doctest.master. 13 September 2004, 00:52:51 UTC
9661f9a Tester.run___test__(): This couldn't possibly work at all. I'm afraid the "backward compatibility" here was a joke. 12 September 2004, 22:45:17 UTC
4be7a92 Tester.__init__(): this couldn't possibly work when a module argument was passed. 12 September 2004, 22:39:46 UTC
a84f3ab SF #1022910: Conserve memory with list.pop() The list resizing scheme only downsized when more than 16 elements were removed in a single step: del a[100:120]. As a result, the list would never shrink when popping elements off one at a time. This patch makes it shrink whenever more than half of the space is unused. Also, at Tim's suggestion, renamed _new_size to new_allocated. This makes the code easier to understand. 12 September 2004, 19:53:07 UTC
0e9980f Whitespace normalization. 12 September 2004, 03:49:31 UTC
2ee8099 HtmlDiff corrections from Dan Gass, + trimmed trailing whitespace. 12 September 2004, 03:21:00 UTC
d60e92a Document not-completely-obvious behavior in a test. 11 September 2004, 21:26:21 UTC
6ab4b99 Patch #1025795: clarify language in Data Structures chapter of tutorial: - Dictionary keys are in arbitrary order, but not random (which implies, well, intentional randomness). - Move a footnote closer to what it's talking about so that it doesn't look like we're saying that "0 == 0.0" can't be relied on. - Minor language tweaks in the vicinity. Thanks Dima Dorfman! 11 September 2004, 17:48:21 UTC
17b5637 Recover from inspect.getmodule() changes. It returns a module for functions and methods now, including functions defined inside doctests in test_doctest.py's recursive doctest'ing. 11 September 2004, 17:33:27 UTC
2014c03 Patch #1022152: add required 'domain' argument to gettext.translation() examples. 11 September 2004, 17:33:25 UTC
d345225 Patch #1026384: fix two common typo's: - accomodate -> accommodate - occured -> occurred Thanks George Yoshida! 11 September 2004, 16:50:06 UTC
7a8c43e Add 'if __name__ == "__main__":' to files already as a usable as a module. 11 September 2004, 16:34:35 UTC
9324526 Use __module__ attribute when available instead of using isclass() predicate (functions and methods have grown the __module__ attribute too). See bug #570300. 11 September 2004, 15:53:22 UTC
c9c37ca Patch #1025800: remove TeX quoting from verbatim section. Thanks Dima Dorfman! 11 September 2004, 15:47:30 UTC
f08437c [Bug #1023359] Make code match inheritance diagram 10 September 2004, 19:33:00 UTC
back to top