summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* A static swapped_op[] array was defined in 3 different C files, & I thinkTim Peters2004-09-234-12/+11
| | | | | I need to define it again. Bite the bullet and define it once as an extern, _Py_SwappedOp[].
* Removed redundant declaration of _PyLong_NumBits().Tim Peters2004-09-231-1/+0
|
* SF patch #1031667: Fold tuples of constants into a single constantRaymond Hettinger2004-09-224-15/+109
| | | | | | | | Example: >>> import dis >>> dis.dis(compile('1,2,3', '', 'eval')) 0 0 LOAD_CONST 3 ((1, 2, 3)) 3 RETURN_VALUE
* Clarify that iteration is over headers, not Mime elements.Raymond Hettinger2004-09-221-1/+2
|
* Bug #1030125: rfc822 __iter__ problemRaymond Hettinger2004-09-223-0/+15
| | | | Add iteration support to the Message class.
* Added getLoggerClass()Vinay Sajip2004-09-221-0/+13
|
* 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.
* - Updated docs to reflect changes in 2.4.Edward Loper2004-09-211-245/+1001
| | | | | | | | | | | | - 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()
* Add a commented-out recipe on making trailing whitespace explicit.Brett Cannon2004-09-201-0/+7
| | | | If people think this is not too intrusive it could be uncommented.
* Whitespace normalization.Tim Peters2004-09-201-4/+4
|
* Import no longer needed.Raymond Hettinger2004-09-201-1/+0
|
* Fix minor grammar typo.Raymond Hettinger2004-09-201-1/+1
|
* 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.
* Patch #1024670: Support int objects in PyLong_AsUnsignedLong[Mask].Martin v. Löwis2004-09-202-1/+12
|
* Fix lib-tk PythonPath.Martin v. Löwis2004-09-191-1/+1
|
* - 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 bug #1030557: PyMapping_Check crashes when argument is NULLRaymond Hettinger2004-09-191-2/+2
| | | | | | 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.
* When this file is sourced in, or used as, one's vimrc file it will set the ↵Brett Cannon2004-09-191-0/+78
| | | | | | | | 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.
* 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.
* - Updated example output to match actual outputEdward Loper2004-09-191-18/+47
| | | | | | | - 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).
* Update Template/PEP 292 documentation to current implementation.Barry Warsaw2004-09-181-37/+70
|
* 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).
* Link with ws2_32 instead of wsock32.Martin v. Löwis2004-09-181-3/+3
|
* 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.
* Make curses.h inclusion conditional as in the original patch #1012280.Martin v. Löwis2004-09-182-21/+18
| | | | Backported to 2.3.
* Patch #1012280: Include curses.h for term.h check. Fixes #933795.Martin v. Löwis2004-09-183-5/+74
| | | | Will backport to 2.3.
* Patch #1029061: Always extract member names from the tarinfo.Martin v. Löwis2004-09-182-25/+19
|
* Patch #1025790: Add status code constants to httplib.Martin v. Löwis2004-09-184-13/+227
|
* 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.
* remove gzipped archives from the list of expected distributionsFred Drake2004-09-171-5/+5
|
* 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 #1014215: Unspecific errors with metaclassRaymond Hettinger2004-09-161-4/+16
| | | | | | | | | | | | | | 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
* Initialize sep and seplen to suppress warning from gcc.Skip Montanaro2004-09-161-3/+3
|
* SF bug #1028306: date-datetime comparisonTim Peters2004-09-163-1/+64
| | | | 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
|
* Add a missing line continuation character.Thomas Heller2004-09-151-1/+1
|
* Patch #1026986: Add OpenBSD 3.5 and 3.6 to list of broken systems.Martin v. Löwis2004-09-153-3/+5
|
* Strip square brackets from IPv6 address.Martin v. Löwis2004-09-142-3/+10
|
* mention httplib ipv6 fixSkip Montanaro2004-09-141-0/+2
|
* missed the obvious test case and corresponding fixSkip Montanaro2004-09-142-2/+3
|
* Make the word "module" appear in the error string for calling theMichael W. Hudson2004-09-141-1/+1
| | | | | | | | 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.
* Move a comment back to its rightful location.Michael W. Hudson2004-09-141-2/+2
|
* 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-142-2/+2
|