- 24 Sep, 2004 4 commits
-
-
Vinay Sajip authored
-
Tim Peters authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
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().
-
- 23 Sep, 2004 11 commits
-
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Tim Peters authored
platforms where that macro works, NaN compared to an int or long works the same as NaN compared to a finite float.
-
Tim Peters authored
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.
-
Tim Peters authored
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.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
Makes it easier on the eyes and a bit more snappy.
-
Phillip J. Eby authored
-
Tim Peters authored
I need to define it again. Bite the bullet and define it once as an extern, _Py_SwappedOp[].
-
Tim Peters authored
-
- 22 Sep, 2004 5 commits
-
-
Raymond Hettinger authored
Example: >>> import dis >>> dis.dis(compile('1,2,3', '', 'eval')) 0 0 LOAD_CONST 3 ((1, 2, 3)) 3 RETURN_VALUE
-
Raymond Hettinger authored
-
Raymond Hettinger authored
Add iteration support to the Message class.
-
Vinay Sajip authored
-
Vinay Sajip authored
-
- 21 Sep, 2004 3 commits
-
-
Edward Loper authored
- Simplified code to find names for file-based tests.
-
Edward Loper authored
more thouroughly.
-
Edward Loper authored
- 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()
-
- 20 Sep, 2004 7 commits
-
-
Brett Cannon authored
If people think this is not too intrusive it could be uncommented.
-
Tim Peters authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Skip Montanaro authored
-
Skip Montanaro authored
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.
-
Martin v. Löwis authored
-
- 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 4 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.
-