Tim Peters
c74298a72b
Whitespace normalization.
2004-09-16 00:09:19 +00:00
Brett Cannon
0a1af4aeb0
Remove tabs.
2004-09-15 23:26:23 +00:00
Thomas Heller
ca0d2cb66e
Add a missing line continuation character.
2004-09-15 11:41:32 +00:00
Martin v. Löwis
9996828caa
Patch #1026986 : Add OpenBSD 3.5 and 3.6 to list of broken systems.
2004-09-15 06:02:54 +00:00
Martin v. Löwis
74a249e1a9
Strip square brackets from IPv6 address.
2004-09-14 21:45:36 +00:00
Skip Montanaro
82d0eecf42
mention httplib ipv6 fix
2004-09-14 17:58:31 +00:00
Skip Montanaro
cae14d2714
missed the obvious test case and corresponding fix
2004-09-14 17:55:21 +00:00
Michael W. Hudson
1fd00a1b71
Make the word "module" appear in the error string for calling the
...
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.
2004-09-14 17:19:09 +00:00
Michael W. Hudson
1593f502e8
Move a comment back to its rightful location.
2004-09-14 17:09:47 +00:00
Skip Montanaro
10e6e0e61a
Search from the end of the host/port combination to find the colon which
...
separates ip address from the port to accommodate ipv6 addresses.
2004-09-14 16:32:02 +00:00
Walter Dörwald
065a32f550
Make the hint about the None default less ambiguous.
2004-09-14 09:45:10 +00:00
Walter Dörwald
782afc5927
Enhance the docstrings for unicode.split() and string.split()
...
to make it clear that it is possible to pass None as the
separator argument to get the default "any whitespace" separator.
2004-09-14 09:40:45 +00:00
Martin v. Löwis
266a436fe2
Remove claims that Python source code is ASCII. Fixes #1026038 .
2004-09-14 07:52:22 +00:00
Raymond Hettinger
879ddf30d0
Tweak the wording. Improve examples. Make more brief.
2004-09-14 06:32:20 +00:00
Raymond Hettinger
29c6a79b7d
Cover string.Template in the tutorial's library tour.
2004-09-14 05:21:42 +00:00
Raymond Hettinger
6d191113a6
Fix small bugs in Template code.
...
* 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).
2004-09-14 02:34:08 +00:00
Raymond Hettinger
23f1241dc6
SF #1027105 : HardwareRandom should be renamed OSRandom
...
Renamed the new generator at Trevor's recommendation.
The name HardwareRandom suggested a bit more than it
delivered (no radioactive decay detectors or such).
2004-09-13 22:23:21 +00:00
Barry Warsaw
3e773fb622
The 4th group is now 'invalid' instead of 'bogus'.
2004-09-13 20:53:27 +00:00
Barry Warsaw
b5c6b5bfe8
Raymond's good suggestion to re-order the tests in the convert() helper so the
...
most common paths are tested first. Also, that 'invalid' is better than
'bogus'.
2004-09-13 20:52:50 +00:00
Trent Mick
8ea5bdf784
Patch for compilation on IRIX from rwgk on http://python.org/sf/728330
2004-09-13 17:48:41 +00:00
Barry Warsaw
b6234a95c1
substitute(), safe_substitute(): Paul Moore provides a better hack for dealing
...
with positional arguments.
2004-09-13 15:25:15 +00:00
Barry Warsaw
c7cd20c8c6
Added a test for # positional arguments > 1.
2004-09-13 15:24:43 +00:00
Andrew M. Kuchling
7642f7af0d
Credit patch from Raymond
2004-09-13 15:06:50 +00:00
Tim Peters
8278860e52
Document testmod's new exclude_empty argument.
2004-09-13 15:03:17 +00:00
Tim Peters
958cc89037
exclude_empty: make the default True for DocTestFinder, and introduce it
...
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().
2004-09-13 14:53:28 +00:00
Barry Warsaw
302bd589ad
Add tests for keyword arguments and combining mapping and keyword arguments.
2004-09-13 14:35:59 +00:00
Barry Warsaw
46b629c101
Accepted Raymond's patch to combine mapping and keyword arguments, with slight
...
modification. Also, renamed the positional argument to '__mapping' to further
reduce the chance of duplicate keyword arguments.
2004-09-13 14:35:04 +00:00
Walter Dörwald
5011d0c683
Fix quoting.
2004-09-13 08:53:15 +00:00
Edward Loper
32ddbf7fab
Added new parameter exclude_empty to DocTestFinder.__init__, which
...
controls whether tests are included for objects with empty docstrings.
Defaults to True, to match the behavior of Python 2.3.
2004-09-13 05:47:24 +00:00
Tim Peters
c56847878e
DocTestFinder._find(): for tests derived from a module __test__ global,
...
doctest always promised to stick "__test__" in the name. That got
broken. Now it's fixed again.
2004-09-13 01:07:12 +00:00
Tim Peters
82076ef194
Reluctantly, rehabilitate doctest.master.
2004-09-13 00:52:51 +00:00
Tim Peters
9661f9ab4f
Tester.run___test__(): This couldn't possibly work at all. I'm afraid
...
the "backward compatibility" here was a joke.
2004-09-12 22:45:17 +00:00
Tim Peters
4be7a92f7f
Tester.__init__(): this couldn't possibly work when a module argument
...
was passed.
2004-09-12 22:39:46 +00:00
Raymond Hettinger
a84f3abb9e
SF #1022910 : Conserve memory with list.pop()
...
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.
2004-09-12 19:53:07 +00:00
Tim Peters
0e9980f75a
Whitespace normalization.
2004-09-12 03:49:31 +00:00
Tim Peters
2ee8099bd8
HtmlDiff corrections from Dan Gass, + trimmed trailing whitespace.
2004-09-12 03:21:00 +00:00
Johannes Gijsbers
d60e92a48d
Document not-completely-obvious behavior in a test.
2004-09-11 21:26:21 +00:00
Johannes Gijsbers
6ab4b99f95
Patch #1025795 : clarify language in Data Structures chapter of tutorial:
...
- 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!
2004-09-11 17:48:21 +00:00
Tim Peters
17b56379e1
Recover from inspect.getmodule() changes. It returns a module for
...
functions and methods now, including functions defined inside doctests
in test_doctest.py's recursive doctest'ing.
2004-09-11 17:33:27 +00:00
Johannes Gijsbers
2014c033f7
Patch #1022152 : add required 'domain' argument to gettext.translation() examples.
2004-09-11 17:33:25 +00:00
Johannes Gijsbers
d345225ae5
Patch #1026384 : fix two common typo's:
...
- accomodate -> accommodate
- occured -> occurred
Thanks George Yoshida!
2004-09-11 16:50:06 +00:00
Johannes Gijsbers
7a8c43ee6a
Add 'if __name__ == "__main__":' to files already as a usable as a module.
2004-09-11 16:34:35 +00:00
Johannes Gijsbers
9324526a76
Use __module__ attribute when available instead of using isclass() predicate
...
(functions and methods have grown the __module__ attribute too). See bug #570300 .
2004-09-11 15:53:22 +00:00
Johannes Gijsbers
c9c37ca62e
Patch #1025800 : remove TeX quoting from verbatim section. Thanks Dima Dorfman!
2004-09-11 15:47:30 +00:00
Andrew M. Kuchling
f08437ca08
[Bug #1023359 ] Make code match inheritance diagram
2004-09-10 19:33:00 +00:00
Barry Warsaw
f43e8bd7b4
Template: remove __slots__ since that interferes with the ability to mix in
...
Template and unicode classes.
2004-09-10 18:30:42 +00:00
Andrew M. Kuchling
a331e86452
Add some stdlib items; remove 'other changes' section; fix sorting error in list of changed modules
2004-09-10 13:05:22 +00:00
Andrew M. Kuchling
55be9eab38
Typo fix: 'comparisions' is not a word
2004-09-10 12:59:54 +00:00
Andrew M. Kuchling
2cc0c3008c
Bump version number
2004-09-10 12:38:36 +00:00
Martin v. Löwis
0f02ce348a
Do not include extpy[w].exe anymore
2004-09-10 11:56:56 +00:00