summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove claims that Python source code is ASCII. Fixes #1026038.Martin v. Löwis2004-09-141-5/+15
|
* Tweak the wording. Improve examples. Make more brief.Raymond Hettinger2004-09-141-26/+15
|
* Cover string.Template in the tutorial's library tour.Raymond Hettinger2004-09-141-0/+77
|
* Fix small bugs in Template code.Raymond Hettinger2004-09-142-15/+30
| | | | | | | | | | | | | | * 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).
* SF #1027105: HardwareRandom should be renamed OSRandomRaymond Hettinger2004-09-133-20/+24
| | | | | | Renamed the new generator at Trevor's recommendation. The name HardwareRandom suggested a bit more than it delivered (no radioactive decay detectors or such).
* The 4th group is now 'invalid' instead of 'bogus'.Barry Warsaw2004-09-131-1/+1
|
* Raymond's good suggestion to re-order the tests in the convert() helper so theBarry Warsaw2004-09-131-13/+16
| | | | | most common paths are tested first. Also, that 'invalid' is better than 'bogus'.
* Patch for compilation on IRIX from rwgk on http://python.org/sf/728330Trent Mick2004-09-131-0/+10
|
* substitute(), safe_substitute(): Paul Moore provides a better hack for dealingBarry Warsaw2004-09-131-11/+19
| | | | with positional arguments.
* Added a test for # positional arguments > 1.Barry Warsaw2004-09-131-0/+4
|
* Credit patch from RaymondAndrew M. Kuchling2004-09-131-13/+34
|
* Document testmod's new exclude_empty argument.Tim Peters2004-09-131-3/+11
|
* exclude_empty: make the default True for DocTestFinder, and introduce itTim Peters2004-09-132-14/+27
| | | | | | | 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().
* Add tests for keyword arguments and combining mapping and keyword arguments.Barry Warsaw2004-09-131-0/+28
|
* Accepted Raymond's patch to combine mapping and keyword arguments, with slightBarry Warsaw2004-09-131-5/+32
| | | | | modification. Also, renamed the positional argument to '__mapping' to further reduce the chance of duplicate keyword arguments.
* Fix quoting.Walter Dörwald2004-09-131-1/+1
|
* Added new parameter exclude_empty to DocTestFinder.__init__, whichEdward Loper2004-09-132-12/+34
| | | | | controls whether tests are included for objects with empty docstrings. Defaults to True, to match the behavior of Python 2.3.
* DocTestFinder._find(): for tests derived from a module __test__ global,Tim Peters2004-09-133-9/+9
| | | | | doctest always promised to stick "__test__" in the name. That got broken. Now it's fixed again.
* Reluctantly, rehabilitate doctest.master.Tim Peters2004-09-132-16/+41
|
* Tester.run___test__(): This couldn't possibly work at all. I'm afraidTim Peters2004-09-121-1/+1
| | | | the "backward compatibility" here was a joke.
* Tester.__init__(): this couldn't possibly work when a module argumentTim Peters2004-09-121-1/+1
| | | | was passed.
* SF #1022910: Conserve memory with list.pop()Raymond Hettinger2004-09-121-8/+11
| | | | | | | | | | | The list resizing scheme only downsized when more than 16 elements were removed in a single step: del a[100:120]. As a result, the list would never shrink when popping elements off one at a time. This patch makes it shrink whenever more than half of the space is unused. Also, at Tim's suggestion, renamed _new_size to new_allocated. This makes the code easier to understand.
* Whitespace normalization.Tim Peters2004-09-127-26/+26
|
* HtmlDiff corrections from Dan Gass, + trimmed trailing whitespace.Tim Peters2004-09-121-29/+32
|
* Document not-completely-obvious behavior in a test.Johannes Gijsbers2004-09-111-0/+7
|
* Patch #1025795: clarify language in Data Structures chapter of tutorial:Johannes Gijsbers2004-09-111-11/+11
| | | | | | | | | | - Dictionary keys are in arbitrary order, but not random (which implies, well, intentional randomness). - Move a footnote closer to what it's talking about so that it doesn't look like we're saying that "0 == 0.0" can't be relied on. - Minor language tweaks in the vicinity. Thanks Dima Dorfman!
* Recover from inspect.getmodule() changes. It returns a module forTim Peters2004-09-111-25/+42
| | | | | functions and methods now, including functions defined inside doctests in test_doctest.py's recursive doctest'ing.
* Patch #1022152: add required 'domain' argument to gettext.translation() ↵Johannes Gijsbers2004-09-111-3/+3
| | | | examples.
* Patch #1026384: fix two common typo's:Johannes Gijsbers2004-09-117-9/+9
| | | | | | | - accomodate -> accommodate - occured -> occurred Thanks George Yoshida!
* Add 'if __name__ == "__main__":' to files already as a usable as a module.Johannes Gijsbers2004-09-1113-18/+29
|
* Use __module__ attribute when available instead of using isclass() predicateJohannes Gijsbers2004-09-111-1/+1
| | | | (functions and methods have grown the __module__ attribute too). See bug #570300.
* Patch #1025800: remove TeX quoting from verbatim section. Thanks Dima Dorfman!Johannes Gijsbers2004-09-111-2/+2
|
* [Bug #1023359] Make code match inheritance diagramAndrew M. Kuchling2004-09-101-1/+1
|
* Template: remove __slots__ since that interferes with the ability to mix inBarry Warsaw2004-09-101-1/+0
| | | | Template and unicode classes.
* Add some stdlib items; remove 'other changes' section; fix sorting error in ↵Andrew M. Kuchling2004-09-101-30/+32
| | | | list of changed modules
* Typo fix: 'comparisions' is not a wordAndrew M. Kuchling2004-09-105-5/+5
|
* Bump version numberAndrew M. Kuchling2004-09-101-1/+1
|
* Do not include extpy[w].exe anymoreMartin v. Löwis2004-09-101-4/+0
|
* Generate the product code properlyMartin v. Löwis2004-09-101-1/+1
|
* Update PEP292 sectionAndrew M. Kuchling2004-09-101-10/+5
|
* Change all extensions to unadvertised.Martin v. Löwis2004-09-101-42/+76
| | | | Add script dealing with REGISTRY.tcl installation
* Patch #808120: Add --force-arch=ARCH to bdist_rpm.py.Martin v. Löwis2004-09-103-5/+16
|
* Patch #808115: Add script support to bdist_rpm.py.Martin v. Löwis2004-09-102-0/+27
|
* __slots__ went missing from Template.Raymond Hettinger2004-09-101-0/+1
|
* Many updates to PEP 292 templates. Summary:Barry Warsaw2004-09-102-63/+136
| | | | | | | | | | | | | | | | | - Template no longer inherits from unicode. - SafeTemplate is removed. Now Templates have both a substitute() and a safe_substitute() method, so we don't need separate classes. No more __mod__() operator. - Adopt Tim Peter's idea for giving Template a metaclass, which makes the delimiter, the identifier pattern, or the entire pattern easy to override and document, while retaining efficiency of class-time compilation of the regexp. - More informative ValueError messages which will help a user narrow down the bogus delimiter to the line and column in the original string (helpful for long triple quoted strings).
* document the exceptions raised by sgmllib, htmllib, and HTMLParserFred Drake2004-09-103-6/+34
|
* fix typo in markupFred Drake2004-09-101-1/+1
|
* make_nav_panel(): Don't cause side-effects on the input variables;Fred Drake2004-09-091-10/+10
| | | | | | this caused duplicate attributes for the bottom navigation panel. (closes SF patch #1013055; backport candidate)
* clean up the API a little; exceptions are defined by this moduleFred Drake2004-09-091-5/+13
| | | | (needs documentation)
* add name that should be considered public to __all__Fred Drake2004-09-091-1/+1
|