6325178 | Raymond Hettinger | 27 September 2004, 22:48:40 UTC | Beef-up tests for greater coverage and refcount checking. | 27 September 2004, 22:48:40 UTC |
b6aa856 | Armin Rigo | 27 September 2004, 19:54:33 UTC | Patch #1009075, bug #952953: allow execve with empty 2nd argument | 27 September 2004, 19:54:33 UTC |
9f90439 | Armin Rigo | 27 September 2004, 19:27:51 UTC | Patch #1011240: SystemError generated by struct.pack('P', 'foo'). | 27 September 2004, 19:27:51 UTC |
b562bc6 | Armin Rigo | 27 September 2004, 17:49:00 UTC | Trivial bug fix: deque == [] is not a good way to check if a deque is empty. | 27 September 2004, 17:49:00 UTC |
ffdb8bb | Raymond Hettinger | 27 September 2004, 15:29:05 UTC | Use floor division operator. | 27 September 2004, 15:29:05 UTC |
4837a22 | Raymond Hettinger | 27 September 2004, 14:23:40 UTC | Use floor division operator. | 27 September 2004, 14:23:40 UTC |
a4c6a85 | Edward Loper | 27 September 2004, 04:08:20 UTC | - Added a "parser" option to testfile() and DocFileTest(). | 27 September 2004, 04:08:20 UTC |
498a186 | Edward Loper | 27 September 2004, 03:42:58 UTC | - Added a "parser" option to testfile() and DocFileTest(). | 27 September 2004, 03:42:58 UTC |
456ff91 | Edward Loper | 27 September 2004, 03:30:44 UTC | - Fixed typo in multi-line exception example - Fixed indentation for a verbatim block | 27 September 2004, 03:30:44 UTC |
36ee8ce | Tim Peters | 26 September 2004, 21:51:25 UTC | Give a saner example for script_from_examples(); also mention an intended but not entirely obvious use case. | 26 September 2004, 21:51:25 UTC |
9463d87 | Tim Peters | 26 September 2004, 21:05:03 UTC | Made most module references "clickable". | 26 September 2004, 21:05:03 UTC |
0041121 | Tim Peters | 26 September 2004, 20:45:04 UTC | Docs for run_docstring_examples(). | 26 September 2004, 20:45:04 UTC |
aa241e0 | Raymond Hettinger | 26 September 2004, 19:24:20 UTC | Checkin Tim's fix to an error discussed on python-dev. Also, add a testcase. Formerly, the list_extend() code used several local variables to remember its state across iterations. Since an iteration could call arbitrary Python code, it was possible for the list state to be changed. The new code uses dynamic structure references instead of C locals. So, they are always up-to-date. After list_resize() is called, its size has been updated but the new cells are filled with NULLs. These needed to be filled before arbitrary iteration code was called; otherwise, that code could attempt to modify a list that was in a semi-invalid state. The solution was to change the ob->size field back to a value reflecting the actual number of valid cells. | 26 September 2004, 19:24:20 UTC |
55593c3 | Raymond Hettinger | 26 September 2004, 18:56:44 UTC | Make the regex pattern easier to read, understand, and modify by factoring out the common prefix (the delimiter). | 26 September 2004, 18:56:44 UTC |
4d9559a | Martin v. Löwis | 26 September 2004, 17:26:55 UTC | Replace -soname with -h for Solaris compatibility. Fixes #1034496. Backported to 2.3. | 26 September 2004, 17:26:55 UTC |
a80a2c8 | Tim Peters | 26 September 2004, 05:13:18 UTC | Updated doctest doc news. | 26 September 2004, 05:13:18 UTC |
05b05fe | Tim Peters | 26 September 2004, 05:09:59 UTC | Added a lot of new stuff to the debugging section. | 26 September 2004, 05:09:59 UTC |
3afaaf2 | Tim Peters | 26 September 2004, 03:50:06 UTC | Removed debug_script from the public API: no docs, not public. I'm in the process of writing docs for the other "missing" debug support functions. | 26 September 2004, 03:50:06 UTC |
16be62f | Tim Peters | 26 September 2004, 02:38:41 UTC | register_optionflag(): Moved from the Debugging section to the section on option flags; added a versionadded decoration. | 26 September 2004, 02:38:41 UTC |
6a0a64b | Tim Peters | 26 September 2004, 02:12:40 UTC | Document set_unittest_reportflags(). | 26 September 2004, 02:12:40 UTC |
9d02a7c | Tim Peters | 26 September 2004, 01:50:24 UTC | Add set_unittest_reportflags() to the public API. Docs will follow "soon", after I repair the LaTeX I somehow damaged. | 26 September 2004, 01:50:24 UTC |
261b28a | Tim Peters | 26 September 2004, 01:24:23 UTC | Removed two undocumented unittest support classes, and one undocumented unittest support function, from the public interface. If they're not documented, they shouldn't be public. | 26 September 2004, 01:24:23 UTC |
c90ea82 | Raymond Hettinger | 25 September 2004, 08:09:23 UTC | Fix double word error. | 25 September 2004, 08:09:23 UTC |
3f79125 | Tim Peters | 25 September 2004, 03:50:35 UTC | Assorted minor changes, plus a lot more soap. | 25 September 2004, 03:50:35 UTC |
8c0a2cf | Tim Peters | 25 September 2004, 03:02:23 UTC | Explain the motivation for the unittest functions, and beef up the example. Squash repeated argument descriptions. Minor rewordings. | 25 September 2004, 03:02:23 UTC |
48983fc | Tim Peters | 25 September 2004, 02:41:28 UTC | Removed most of the module docstring. There's too much to explain now, and the LaTeX docs are in increasingly good shape. | 25 September 2004, 02:41:28 UTC |
b2b26ac | Tim Peters | 25 September 2004, 01:51:49 UTC | Repaired mistakes in the descriptions of testmod()/testfile(), and squashed massive duplication of common argument descriptions. | 25 September 2004, 01:51:49 UTC |
35ae3dd | Brett Cannon | 25 September 2004, 01:39:56 UTC | Add warning notation about using 'bomb' setting. | 25 September 2004, 01:39:56 UTC |
a5ca2e7 | Brett Cannon | 25 September 2004, 01:37:24 UTC | Remove 'extern' declaration for _Py_SwappedOp. | 25 September 2004, 01:37:24 UTC |
2dc8205 | Tim Peters | 25 September 2004, 01:30:16 UTC | Since the doctest warnings section was reduced to one bullet point, get rid of the itemize structure. | 25 September 2004, 01:30:16 UTC |
39c5de0 | Tim Peters | 25 September 2004, 01:22:29 UTC | In the "doctest warnings" section, removed obsolete info, and noted that ELLIPSIS can be used to deal with examples that embed object addresses. | 25 September 2004, 01:22:29 UTC |
24f141a | Johannes Gijsbers | 25 September 2004, 00:55:38 UTC | Raymond observed that sometimes it's better not to link modules, so I reverted part of my previous last changes. | 25 September 2004, 00:55:38 UTC |
06cc847 | Tim Peters | 25 September 2004, 00:49:53 UTC | Beef up the section on testfile(), giving a complete example in reStructuredText format. Remove words describing the return value of testmod() and testfile() in the intro sections, since it's never useful in such simple cases. | 25 September 2004, 00:49:53 UTC |
cac5e7b | Tim Peters | 25 September 2004, 00:11:43 UTC | Typo. | 25 September 2004, 00:11:43 UTC |
7a08214 | Tim Peters | 25 September 2004, 00:10:53 UTC | Since the LaTeX isn't doctest'ed, examples are always wrong <wink>. | 25 September 2004, 00:10:53 UTC |
27ebcae | Johannes Gijsbers | 24 September 2004, 23:25:25 UTC | - Use itemize instead of plain-text '*' for marking up a list. - Add more ulink's to modules (this should probably become a standard macro). | 24 September 2004, 23:25:25 UTC |
5a59d88 | Tim Peters | 24 September 2004, 23:16:41 UTC | Whitespace normalization. | 24 September 2004, 23:16:41 UTC |
3981511 | Johannes Gijsbers | 24 September 2004, 21:36:52 UTC | Port test_unpack to doctest (patch #736962). | 24 September 2004, 21:36:52 UTC |
6bc937c | Neil Schemenauer | 24 September 2004, 19:18:42 UTC | Add yet more tests for buffer(). | 24 September 2004, 19:18:42 UTC |
927a57f | Neil Schemenauer | 24 September 2004, 19:17:26 UTC | Ensure negative offsets cannot be passed to buffer(). When composing buffers, compute the new buffer size based on the old buffer size. Fixes SF bug #1034242. | 24 September 2004, 19:17:26 UTC |
fb6ba07 | Neil Schemenauer | 24 September 2004, 15:41:27 UTC | Fix buffer offset calculation (need to compute it before changing 'base'). Fixes SF bug #1033720. Move offset sanity checking to buffer_from_memory(). | 24 September 2004, 15:41:27 UTC |
29302a7 | Neil Schemenauer | 24 September 2004, 15:35:15 UTC | Add a few more tests for the buffer() object. | 24 September 2004, 15:35:15 UTC |
739d49e | Vinay Sajip | 24 September 2004, 11:46:44 UTC | Added log() function documentation | 24 September 2004, 11:46:44 UTC |
b2635b2 | Vinay Sajip | 24 September 2004, 11:45:52 UTC | Added log() function | 24 September 2004, 11:45:52 UTC |
02dd994 | Vinay Sajip | 24 September 2004, 11:45:13 UTC | Added exception handling during handler initialization in fileConfig() | 24 September 2004, 11:45:13 UTC |
1cc3738 | Tim Peters | 24 September 2004, 04:36:47 UTC | Whitespace normalization. | 24 September 2004, 04:36:47 UTC |
9447874 | Raymond Hettinger | 24 September 2004, 04:31:19 UTC | Add docstrings for regular expression objects and methods. | 24 September 2004, 04:31:19 UTC |
596ba4d | Raymond Hettinger | 24 September 2004, 03:41:05 UTC | 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 | Andrew M. Kuchling | 23 September 2004, 20:17:26 UTC | Update for beta1 | 23 September 2004, 20:17:26 UTC |
0c78956 | Andrew M. Kuchling | 23 September 2004, 20:15:41 UTC | Add various items | 23 September 2004, 20:15:41 UTC |
e1c69b3 | Tim Peters | 23 September 2004, 19:22:41 UTC | 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 | Tim Peters | 23 September 2004, 19:11:32 UTC | 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 | Tim Peters | 23 September 2004, 08:06:40 UTC | 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 | Raymond Hettinger | 23 September 2004, 07:27:39 UTC | Improve three recipes in the itertools docs. | 23 September 2004, 07:27:39 UTC |
513c8bd | Raymond Hettinger | 23 September 2004, 07:00:47 UTC | Arghh, checked in wrong draft. Replacing with correct one. | 23 September 2004, 07:00:47 UTC |
0336e1f | Raymond Hettinger | 23 September 2004, 06:43:25 UTC | 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 | Phillip J. Eby | 23 September 2004, 04:37:36 UTC | Fix for SF bug #1029475 : reload() doesn't work with PEP 302 loaders. | 23 September 2004, 04:37:36 UTC |
f4aca75 | Tim Peters | 23 September 2004, 02:39:37 UTC | 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 | Tim Peters | 23 September 2004, 01:56:02 UTC | Removed redundant declaration of _PyLong_NumBits(). | 23 September 2004, 01:56:02 UTC |
2c31a05 | Raymond Hettinger | 22 September 2004, 18:44:21 UTC | 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 | Raymond Hettinger | 22 September 2004, 18:03:47 UTC | Clarify that iteration is over headers, not Mime elements. | 22 September 2004, 18:03:47 UTC |
ce96d8b | Raymond Hettinger | 22 September 2004, 17:17:32 UTC | Bug #1030125: rfc822 __iter__ problem Add iteration support to the Message class. | 22 September 2004, 17:17:32 UTC |
c6646c0 | Vinay Sajip | 22 September 2004, 12:55:16 UTC | Added getLoggerClass() | 22 September 2004, 12:55:16 UTC |
b959117 | Vinay Sajip | 22 September 2004, 12:39:26 UTC | Added getLoggerClass() | 22 September 2004, 12:39:26 UTC |
a2fc7ec | Edward Loper | 21 September 2004, 03:24:24 UTC | - Minor docstring fixes. - Simplified code to find names for file-based tests. | 21 September 2004, 03:24:24 UTC |
4ae900f | Edward Loper | 21 September 2004, 03:20:34 UTC | - Changed SampleClass docstrings to test docstring parsing a little more thouroughly. | 21 September 2004, 03:20:34 UTC |
b3666a3 | Edward Loper | 21 September 2004, 03:00:51 UTC | - 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 | Brett Cannon | 20 September 2004, 22:33:21 UTC | 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 | Tim Peters | 20 September 2004, 19:52:34 UTC | Whitespace normalization. | 20 September 2004, 19:52:34 UTC |
6165620 | Raymond Hettinger | 20 September 2004, 18:08:31 UTC | Import no longer needed. | 20 September 2004, 18:08:31 UTC |
468af71 | Raymond Hettinger | 20 September 2004, 17:47:46 UTC | Fix minor grammar typo. | 20 September 2004, 17:47:46 UTC |
13dea5a | Skip Montanaro | 20 September 2004, 16:43:30 UTC | Raymond reminded me to use DSU key | 20 September 2004, 16:43:30 UTC |
41f89a4 | Skip Montanaro | 20 September 2004, 15:40:38 UTC | 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 | Martin v. Löwis | 20 September 2004, 06:17:46 UTC | Patch #1024670: Support int objects in PyLong_AsUnsignedLong[Mask]. | 20 September 2004, 06:17:46 UTC |
f13337d | Martin v. Löwis | 19 September 2004, 18:36:45 UTC | Fix lib-tk PythonPath. | 19 September 2004, 18:36:45 UTC |
052d0cd | Edward Loper | 19 September 2004, 17:19:33 UTC | - 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 | Raymond Hettinger | 19 September 2004, 06:00:15 UTC | 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 | Brett Cannon | 19 September 2004, 05:43:13 UTC | 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 | Raymond Hettinger | 19 September 2004, 01:54:09 UTC | 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 | Edward Loper | 19 September 2004, 01:16:44 UTC | - 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 | Barry Warsaw | 18 September 2004, 21:13:43 UTC | Update Template/PEP 292 documentation to current implementation. | 18 September 2004, 21:13:43 UTC |
0273f5b | Edward Loper | 18 September 2004, 20:27:04 UTC | 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 | Martin v. Löwis | 18 September 2004, 16:16:34 UTC | Link with ws2_32 instead of wsock32. | 18 September 2004, 16:16:34 UTC |
725f8c8 | Martin v. Löwis | 18 September 2004, 16:07:58 UTC | Patch #1021596: Check for None to determine whether _urandomfd is uninitialized. | 18 September 2004, 16:07:58 UTC |
b0c670c | Martin v. Löwis | 18 September 2004, 16:01:23 UTC | Convert boolean results back to strings. Fixes #807871. Will backport to 2.3. | 18 September 2004, 16:01:23 UTC |
5d52e78 | Martin v. Löwis | 18 September 2004, 10:07:03 UTC | Make curses.h inclusion conditional as in the original patch #1012280. Backported to 2.3. | 18 September 2004, 10:07:03 UTC |
ae2830c | Martin v. Löwis | 18 September 2004, 09:54:52 UTC | Patch #1012280: Include curses.h for term.h check. Fixes #933795. Will backport to 2.3. | 18 September 2004, 09:54:52 UTC |
f3c5611 | Martin v. Löwis | 18 September 2004, 09:08:52 UTC | Patch #1029061: Always extract member names from the tarinfo. | 18 September 2004, 09:08:52 UTC |
39a3178 | Martin v. Löwis | 18 September 2004, 09:03:49 UTC | Patch #1025790: Add status code constants to httplib. | 18 September 2004, 09:03:49 UTC |
17cb600 | Barry Warsaw | 18 September 2004, 00:06:34 UTC | 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 | Fred Drake | 17 September 2004, 20:23:47 UTC | remove gzipped archives from the list of expected distributions | 17 September 2004, 20:23:47 UTC |
6011a3c | Sean Reifschneider | 17 September 2004, 08:34:12 UTC | 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 | Sean Reifschneider | 17 September 2004, 08:23:22 UTC | 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 | Raymond Hettinger | 16 September 2004, 16:41:57 UTC | 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 | Skip Montanaro | 16 September 2004, 03:28:13 UTC | Initialize sep and seplen to suppress warning from gcc. | 16 September 2004, 03:28:13 UTC |
528ca53 | Tim Peters | 16 September 2004, 01:30:50 UTC | 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 | Tim Peters | 16 September 2004, 00:09:19 UTC | Whitespace normalization. | 16 September 2004, 00:09:19 UTC |
0a1af4a | Brett Cannon | 15 September 2004, 23:26:23 UTC | Remove tabs. | 15 September 2004, 23:26:23 UTC |
ca0d2cb | Thomas Heller | 15 September 2004, 11:41:32 UTC | Add a missing line continuation character. | 15 September 2004, 11:41:32 UTC |
9996828 | Martin v. Löwis | 15 September 2004, 06:02:54 UTC | Patch #1026986: Add OpenBSD 3.5 and 3.6 to list of broken systems. | 15 September 2004, 06:02:54 UTC |