Skip Montanaro
35b9ff3683
deleted more tests which were either already in test_re or that I migrated
...
in the last revison
2003-04-25 15:41:19 +00:00
Skip Montanaro
1e703c6278
more tests converted from test_sre
2003-04-25 15:40:28 +00:00
Fred Drake
53e5b71bbc
Add modified versions of the examples from Sean Reifschneider
...
(SF patch #545480 ).
2003-04-25 15:27:33 +00:00
Guido van Rossum
b016752d8b
Fix a copy-paste error: the paragraph about inet_ntop's use was copied
...
literally from inet_pton.
2003-04-25 15:26:58 +00:00
Skip Montanaro
bf7ad96d36
Remove tests which were migrated to test_re.py. There are still more tests
...
to migrate.
2003-04-25 15:17:03 +00:00
Skip Montanaro
5d0136e297
reflect csv's change back to a module. Document the new sniffer api.
2003-04-25 15:14:49 +00:00
Fred Drake
9f48045ec0
Use a simpler \note instead of a "See also" section to refer to the
...
os.walk() generator.
2003-04-25 15:12:47 +00:00
Guido van Rossum
f4001eed3b
Skip testing inet_ntop() an inet_pton() if they aren't defined.
...
This makes the test pass on Windows again (and on other platforms
that don't have these).
2003-04-25 15:11:23 +00:00
Guido van Rossum
51735b0569
Fix the tests on Windows, by writing the test data file in binary
...
mode.
XXX I'm not convinced that this is the right solution -- arguably,
on Windows, the _fileobject class should honor the mode argument
and do newline translation. But it's never done that so I think
there's no urgent need to fix this today.
2003-04-25 15:01:05 +00:00
Neal Norwitz
6eb502f267
Add versionadded for has_ipv6 attribute
2003-04-25 14:53:48 +00:00
Neal Norwitz
cabf56f8b4
Fix markup
2003-04-25 14:52:41 +00:00
Fred Drake
2194a4eede
markup adjustments
2003-04-25 14:50:06 +00:00
Skip Montanaro
1448d4719c
rework Sniffer api significantly
2003-04-25 14:47:16 +00:00
Skip Montanaro
48816c6f04
some sniffer tests
2003-04-25 14:43:14 +00:00
Skip Montanaro
2726fcd4b6
more tests from test_sre
2003-04-25 14:31:54 +00:00
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