| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
and the LaTeX docs are in increasingly good shape.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
Makes it easier on the eyes and a bit more snappy.
|
| |
|
|
|
|
|
|
|
|
| |
Example:
>>> import dis
>>> dis.dis(compile('1,2,3', '', 'eval'))
0 0 LOAD_CONST 3 ((1, 2, 3))
3 RETURN_VALUE
|
|
|
|
| |
Add iteration support to the Message class.
|
| |
|
|
|
|
| |
- Simplified code to find names for file-based tests.
|
|
|
|
| |
more thouroughly.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
| |
- 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).
|
|
|
|
| |
uninitialized.
|
|
|
|
| |
Will backport to 2.3.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
"AutoReq: 0" to disable automatic dependency searching.
|
|
|
|
| |
os.path.abspath(self.rpm_base) instead of os.getcwd() + '/' + self.rpm_base
|
|
|
|
| |
Treat comparing a date to a datetime like a mixed-type comparison.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
separates ip address from the port to accommodate ipv6 addresses.
|
| |
|
|
|
|
|
| |
to make it clear that it is possible to pass None as the
separator argument to get the default "any whitespace" separator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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).
|
|
|
|
|
|
| |
Renamed the new generator at Trevor's recommendation.
The name HardwareRandom suggested a bit more than it
delivered (no radioactive decay detectors or such).
|
| |
|
|
|
|
|
| |
most common paths are tested first. Also, that 'invalid' is better than
'bogus'.
|
|
|
|
| |
with positional arguments.
|
| |
|
|
|
|
|
|
|
| |
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().
|
| |
|