Fred Drake
7c852f33a2
Attempt to deal with some obvious errors in the code. These were all
...
due to using a single module-level namespace where multiple namespaces
were used before.
There *really* need to be tests for the sniffer stuff. This could
have been avoided.
Skip, please review, and add sniffer tests!
2003-04-25 14:27:00 +00:00
Guido van Rossum
376e636f18
New version from Vinaj, should solve the threading problems (hopefully).
2003-04-25 14:22:00 +00:00
Skip Montanaro
7d9963fea8
copy a few tests from test_sre
2003-04-25 14:12:40 +00:00
Walter Dörwald
dbcede5d66
Port test_bool.py to PyUnit. From SF patch #662807 .
2003-04-25 10:22:01 +00:00
Brett Cannon
74bfd70e92
Complete rewrite of module. Only has tests using temporary files; net tests
...
should go in test_urllibnet.py .
Still need to write tests for _urlopener usage and urlretrieve.
2003-04-25 09:39:47 +00:00
Tim Peters
c4e0940042
New generator os.walk() does a bit more than os.path.walk() does, and
...
seems much easier to use. Code, docs, NEWS, and additions to test_os.py
(testing this sucker is a bitch!).
2003-04-25 07:11:48 +00:00
Guido van Rossum
e7adda9035
Move socket news to 2.3b1 section! And mention has_ipv6.
2003-04-25 05:52:37 +00:00
Guido van Rossum
47dfa4a89a
Patch by Jp Calderone:
...
- The socket module now provides the functions inet_pton and inet_ntop
for converting between string and packed representation of IP addresses.
See SF patch #658327 .
This still needs a bit of work in the doc area, because it is not
available on all platforms (especially not on Windows).
2003-04-25 05:48:32 +00:00
Guido van Rossum
45f4130029
test_re is no longer needed
2003-04-25 01:44:40 +00:00
Guido van Rossum
46144be02c
Fix test_limitations(). The match there is *expected* to raise
...
RuntimeError.
2003-04-25 01:40:11 +00:00
Andrew M. Kuchling
f8d0c075b2
[Patch #628208 ] Document the allow_none argument
2003-04-25 00:29:31 +00:00
Andrew M. Kuchling
0b85203954
[Patch #628208 ] Test the 'nil' extension
2003-04-25 00:27:24 +00:00
Andrew M. Kuchling
a4c2b7485b
[Patch #628208 ] Add optional support for the 'nil' extension
2003-04-25 00:26:51 +00:00
Tim Peters
abea7ea9f9
Try to recover from changes in the structure of the CSV package/module.
2003-04-24 21:52:16 +00:00
Tim Peters
2af713c2f7
Squashed new compiler wngs about trying to compare pointers to
...
functions with different signatures.
2003-04-24 20:59:52 +00:00
Skip Montanaro
da4ec5a7bc
csv is a module again
2003-04-24 20:23:12 +00:00
Skip Montanaro
04ae7056cf
cvs is going to be a module again
2003-04-24 20:21:31 +00:00
Raymond Hettinger
b34ef94d46
SF bug 557704: netrc module can't handle all passwords
...
Let netrc handle entries with login fields (mail servers for instance)
by having login default to ''.
Backport candidate.
2003-04-24 20:11:20 +00:00
Skip Montanaro
bfcbfa7c46
move imports in Binary class to top level to avoid repeated imports.
...
use cStringIO if available.
2003-04-24 19:51:31 +00:00
Skip Montanaro
fa012610c4
new method: has_function() - returns a boolean indicating whether the
...
argument function is available on the current platform
2003-04-24 19:49:23 +00:00
Skip Montanaro
8ed06da754
first cut at unittest version of re tests
2003-04-24 19:43:18 +00:00
Skip Montanaro
d839ecdc81
if the test is run directly (__name__ == "__main__") don't actually require
...
particular resources
2003-04-24 19:06:57 +00:00
Skip Montanaro
142da98beb
remove test_socketserver from the skip lists
2003-04-24 19:05:41 +00:00
Skip Montanaro
3bd3c8403a
* minor tweaks relating to the package nature of the beast
...
* added an (incomplete) description of the utils.Sniffer class
2003-04-24 18:47:31 +00:00
Barry Warsaw
50889239c3
Updated a bunch of docs to describe how message ids and strings are
...
Unicode in GNUTranslations. Also provide better descriptions of
*gettext() overridden methods, esp. w.r.t. the behavior in the face of
fallbacks.
2003-04-24 18:14:49 +00:00
Barry Warsaw
c4acc2bd32
GNUTranslations:
...
__init__(): Removed since we no longer need the coerce flag.
Message ids and strings are now always coerced to Unicode, /if/
the catalog specified a charset parameter.
gettext(), ngettext(): Since the message strings are Unicodes in
the catalog, coerce back to encoded 8-bit strings on return.
ugettext(), ungettext(): Coerce the message ids to Unicode when
there's no entry for the id in the catalog.
Minor code cleanups; use booleans where appropriate.
2003-04-24 18:13:39 +00:00
Barry Warsaw
edb155fda1
UnicodeTranslationsTest.setUp(): Removed the coerce flag to the
...
GNUTranslations constructor.
2003-04-24 18:08:13 +00:00
Andrew M. Kuchling
e81866e7c6
Remove unneeded continuation chars
2003-04-24 17:27:53 +00:00
Andrew M. Kuchling
f64509e348
Move all the imports to the top; use md5.new()
2003-04-24 17:26:56 +00:00
Andrew M. Kuchling
30dd9bc0bf
Run this demo script through reindent.py; output has been verified to remain the same
2003-04-24 17:26:22 +00:00
Andrew M. Kuchling
9b12d9d0d2
Modernize the code a bit:
...
use re module
make chomp() use rstrip()
2003-04-24 17:22:04 +00:00
Andrew M. Kuchling
b7878d09e5
Modernize the code a bit:
...
use re module
use .split() string method
Doesn't use 'for line in sys.stdin'; that ends up changing its interactive
behaviour.
2003-04-24 17:17:56 +00:00
Andrew M. Kuchling
946c53ed7f
Run these demo scripts through reindent.py to give them 4-space indents. I've verified that their output is unchanged.
2003-04-24 17:13:18 +00:00
Andrew M. Kuchling
4f237b6870
Modernize code by using isinstance() instead of type() checks
2003-04-24 17:04:45 +00:00
Andrew M. Kuchling
64b3c830d4
Avoid TypeError by not comparing complex numbers
2003-04-24 16:59:45 +00:00
Tim Peters
91007e2572
Bump Windows build number for 2.3b1.
2003-04-24 16:55:35 +00:00
Raymond Hettinger
9928571f3f
SF bug 665835: filter() treatment of str and tuple inconsistent
...
As a side issue on this bug, it was noted that list and tuple iterators
used macros to directly access containers and would not recognize
__getitem__ overrides. If the method is overridden, the patch returns
a generic sequence iterator which calls the __getitem__ method; otherwise,
it returns a high custom iterator with direct access to container elements.
2003-04-24 16:52:47 +00:00
Tim Peters
3209410cb5
Bump version number to 2.3b1.
2003-04-24 16:45:34 +00:00
Andrew M. Kuchling
4e42b31d2e
Fix case
2003-04-24 16:45:05 +00:00
Andrew M. Kuchling
035272be91
Add some more items
2003-04-24 16:38:20 +00:00
Fred Drake
c11076e0da
Bump the release information.
2003-04-24 16:37:21 +00:00
Andrew M. Kuchling
47c2ab6b54
Fix docstring typo
2003-04-24 16:36:49 +00:00
Fred Drake
d859d470a1
Add cross-references between urllib.urlencode() and cgi.parse_qs[l]().
...
Closes SF bug #724751 .
2003-04-24 16:22:47 +00:00
Thomas Heller
54aa5781d5
This test now uses the separate getargs_X functions from _testcapimodule.
2003-04-24 16:15:29 +00:00
Thomas Heller
3457e4bd80
New support functions for test_getargs2.
...
Theres now a separate function for each of the format codes
b, B, H, I, k, i, l, L, K.
2003-04-24 16:14:27 +00:00
Tim Peters
0eadaac7dc
Whitespace normalization.
2003-04-24 16:02:54 +00:00
Barry Warsaw
0822ff7cca
Get rid of some hard coded tabs
2003-04-24 15:58:47 +00:00
Raymond Hettinger
352f9477da
SF patch 695710: fix bug 678519: cStringIO self iterator
...
(requested by GvR. patch contributed by Michael Stone)
2003-04-24 15:50:11 +00:00
Raymond Hettinger
024aaa1bfe
SF Patch 549151: urllib2 POSTs on redirect
...
(contributed by John J Lee)
2003-04-24 15:32:12 +00:00
Fred Drake
1d5854fdc4
Note the platform module.
2003-04-24 15:24:46 +00:00