- 19 Sep, 2004 6 commits
-
-
Martin v. Löwis authored
-
Edward Loper authored
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.
-
Raymond Hettinger authored
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.
-
Brett Cannon authored
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.
-
Raymond Hettinger authored
(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.
-
Edward Loper authored
- 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).
-
- 18 Sep, 2004 10 commits
-
-
Barry Warsaw authored
-
Edward Loper authored
- 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).
-
Martin v. Löwis authored
-
Martin v. Löwis authored
uninitialized.
-
Martin v. Löwis authored
Will backport to 2.3.
-
Martin v. Löwis authored
Backported to 2.3.
-
Martin v. Löwis authored
Will backport to 2.3.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Barry Warsaw authored
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.
-
- 17 Sep, 2004 3 commits
-
-
Fred Drake authored
-
Sean Reifschneider authored
"AutoReq: 0" to disable automatic dependency searching.
-
Sean Reifschneider authored
os.path.abspath(self.rpm_base) instead of os.getcwd() + '/' + self.rpm_base
-
- 16 Sep, 2004 4 commits
-
-
Raymond Hettinger authored
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
-
Skip Montanaro authored
-
Tim Peters authored
Treat comparing a date to a datetime like a mixed-type comparison.
-
Tim Peters authored
-
- 15 Sep, 2004 3 commits
-
-
Brett Cannon authored
-
Thomas Heller authored
-
Martin v. Löwis authored
-
- 14 Sep, 2004 12 commits
-
-
Martin v. Löwis authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Michael W. Hudson authored
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.
-
Michael W. Hudson authored
-
Skip Montanaro authored
separates ip address from the port to accommodate ipv6 addresses.
-
Walter Dörwald authored
-
Walter Dörwald authored
to make it clear that it is possible to pass None as the separator argument to get the default "any whitespace" separator.
-
Martin v. Löwis authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
* 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).
-
- 13 Sep, 2004 2 commits
-
-
Raymond Hettinger authored
Renamed the new generator at Trevor's recommendation. The name HardwareRandom suggested a bit more than it delivered (no radioactive decay detectors or such).
-
Barry Warsaw authored
-