Just van Rossum
41c554fbec
moving modulefinder.py to the standard library
2002-12-31 16:27:33 +00:00
Kurt B. Kaiser
6655e4bc27
Whitespace Normalization
2002-12-31 16:03:23 +00:00
Martin v. Löwis
96a60e4af5
Patch #658927 : Add getctime to os.path.
...
Document that getatime and getmtime may return floats.
2002-12-31 13:11:54 +00:00
Andrew MacIntyre
c70a8e411f
OS/2 EMX has no popen2.Popen3 even though bunzip2 is available
2002-12-31 11:28:22 +00:00
Andrew MacIntyre
fd07e7dda7
add list of expected skips for the OS/2 EMX port
2002-12-31 11:26:50 +00:00
Fred Drake
b456e4f25b
Make sure PrettyPrinter methods that mirror the module-level
...
convenience functions isreadable() and isrecursive() work the same way
as the convenience functions.
2002-12-31 07:16:16 +00:00
Fred Drake
397b615056
- PrettyPrinter.isreadable(), .isrecursive():
...
Pass the right number of args to .format(). (Caught by
pychecker.)
- Protect the global namespace more carefully.
- Don't use the types module now that we don't need to.
2002-12-31 07:14:18 +00:00
Fred Drake
5478219e11
Add a test that InterpolationError is constructed properly and raised
...
when expected. Only applies to the ConfigParser and SafeConfigParser
classes, not RawConfigParser.
2002-12-31 06:57:25 +00:00
Fred Drake
00dc5a93c1
ConfigParser._interpolate(): Pass the missing key to the
...
InterpolationError constructor, not the KeyError exception itself.
(Caught by the new InterpolationError test.)
SafeConfigParser._interpolate_some(): Pass the right number of
arguments to the InterpolationError constructor.
(Caught by pychecker.)
2002-12-31 06:55:41 +00:00
Guido van Rossum
0146f419b4
Fix name error, found by pychecker.
2002-12-31 01:08:35 +00:00
Neal Norwitz
d8b5e3fda1
Tix update from Mike Clarkson (maintainer)
2002-12-30 23:52:01 +00:00
Fred Drake
8d5dd98a2e
- added InterpolationSyntaxError to __all__
...
- added docstring to exceptions
2002-12-30 23:51:45 +00:00
Neal Norwitz
ce1d944b6b
Add missing InterpolationSyntaxError.
...
XXX Not sure this is correct.
2002-12-30 23:38:47 +00:00
Neal Norwitz
6ec0a8ab93
sys was already imported, remove second import
2002-12-30 23:36:02 +00:00
Fred Drake
a872595f31
- prefer "import ... as" to "import / (assignments) / del" for most things
...
- when the thread module isn't available, subsequent attempts to import
threading should not suceed
2002-12-30 23:32:50 +00:00
Jack Jansen
acda3394bb
Updated the expected skips for MacOSX.
2002-12-30 23:03:13 +00:00
Jack Jansen
06f0cef1ca
Skip this test on MacOSX: the locale support is too minimal to make
...
it pass.
2002-12-30 23:02:55 +00:00
Guido van Rossum
a0934246d3
Use the dummy_thread module in Queue.py and tempfile.py.
...
tempfile.py already contained code to let it run without threads present;
for Queue.py this is considered a useful feature too.
2002-12-30 22:36:09 +00:00
Guido van Rossum
ad50ca91a9
Brett Cannon's dummy_thread and dummy_threading modules (SF patch
...
622537), with some nitpicking editorial changes.
2002-12-30 22:30:22 +00:00
Neal Norwitz
5efc50d8af
Fix SF #658820 , regex fixes for _strptime (Brett Cannon)
...
Disallow zero for days and months
2002-12-30 22:23:12 +00:00
Jack Jansen
0940c6267a
These were somehow never added to CVS.
2002-12-30 22:14:35 +00:00
Just van Rossum
52e14d640b
PEP 302 + zipimport:
...
- new import hooks in import.c, exposed in the sys module
- new module called 'zipimport'
- various changes to allow bootstrapping from zip files
I hope I didn't break the Windows build (or anything else for that
matter), but then again, it's been sitting on sf long enough...
Regarding the latest discussions on python-dev: zipimport sets
pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
/path/to/Archive.zip/subdir/ are supported again.
2002-12-30 22:08:05 +00:00
Jack Jansen
60087fb450
Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
...
in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on
Mac OS X). The only items remaining in Mac/Lib are modules that are
meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences
in resources, etc).
2002-12-30 22:04:23 +00:00
Guido van Rossum
c262a1f51c
Add __all__. (Brett Cannon.)
2002-12-30 21:59:55 +00:00
Barry Warsaw
9a0d779c7d
Port BerkeleyDB 4.1 support from the pybsddb project. bsddb is now at
...
version 4.1.1 and works with up to BerkeleyDB 4.1.25.
2002-12-30 20:53:52 +00:00
Barry Warsaw
0a26235e67
Add some missing tests. Should now test everything that pybsddb's
...
test suite tests.
2002-12-30 20:53:18 +00:00
Tim Peters
bad8ff089a
A step on the way to making tzinfo classes writable by mortals: get rid
...
of the timetz case. A tzinfo method will always see a datetimetz arg,
or None, now. In the former case, it's still possible that it will get
a datetimetz argument belonging to a different timezone. That will get
fixed next.
2002-12-30 20:52:32 +00:00
Barry Warsaw
74859f3aa6
Template for future tests.
2002-12-30 20:44:16 +00:00
Neil Schemenauer
3ea60c2a7a
Match new sequence behavior. User defined types now behave better as and
...
with sequences.
2002-12-30 20:21:15 +00:00
Barry Warsaw
10ee7a7f15
test_bad_8bit_header(): Tests for optional argument `errors'. See SF
...
bug #648119 .
2002-12-30 19:14:38 +00:00
Barry Warsaw
f4fdff715a
Header.__init__(), .append(): Add an optional argument `errors' which
...
is passed straight through to the unicode() and ustr.encode() calls.
I think it's the best we can do to address the UnicodeErrors in badly
encoded headers such as is described in SF bug #648119 .
2002-12-30 19:13:00 +00:00
Barry Warsaw
72261c9dfb
Actually, make this 2.5a1 since it will include API changes that may
...
need more vetting, and it will be included in Python 2.3a1.
2002-12-30 19:08:38 +00:00
Barry Warsaw
207d1c2065
Bump to 2.5
2002-12-30 17:45:41 +00:00
Barry Warsaw
f29ffbdbf5
TestMIMEAudio.setUp(): Use the email package's copy of the audio test
...
file, needed because some binary distros (read RPMs) don't include the
test module in their standard Python package. This eliminates an
external dependency and closes SF bug # 650441.
2002-12-30 17:45:02 +00:00
Barry Warsaw
c99c08c764
A copy of the audio test file from Lib/test, needed because some
...
binary distros (read RPMs) don't include the test module in their
standard Python package. This eliminates an external dependency and
closes SF bug # 650441.
2002-12-30 17:44:27 +00:00
Tim Peters
31cc3156e7
Added tests that conversion to our own timezone is always an identity,
...
and that conversion to "timezone" None is the same as stripping the
tzinfo member.
2002-12-30 17:37:30 +00:00
Barry Warsaw
ba97659f5f
parsedate_tz(): Fix SF bug #552345 , optional FWS between the comma and
...
the day in an RFC 2822 date.
2002-12-30 17:21:36 +00:00
Barry Warsaw
795833fbc6
test_parsedate_compact(): A test for optional FWS between the comma
...
and the day number in an RFC 2822 date specification. See bug
#552345 .
2002-12-30 17:20:53 +00:00
Tim Peters
1024bf8364
Beefed up the timezone conversion test by adding a phony UTC zone that's
...
west of the US zones getting converted, and also by using Eastern "as if"
it were UTC (wrt Pacific), and vice versa.
2002-12-30 17:09:40 +00:00
Barry Warsaw
5c8fef903d
A code cleansing pass
2002-12-30 16:43:42 +00:00
Barry Warsaw
1fb22bb24f
Port rfc822.py changes that didn't make it into this copy,
...
specifically that dots are allowed in obs-phrase. This fixes parsing
of dots in realnames.
2002-12-30 16:21:07 +00:00
Barry Warsaw
edb59c1ee8
test_name_with_dots(): A new test to ensure that we're implementing
...
RFC 2822's rules w.r.t. dots in the realname part of address fields.
2002-12-30 16:19:52 +00:00
Marc-André Lemburg
63b482cefb
String tests should test 8-bit strings :-)
2002-12-30 10:50:32 +00:00
Raymond Hettinger
e401b6fc55
Last checkin was missing the tuple comma.
...
The new "substr in str" feature masked the error.
2002-12-30 07:21:32 +00:00
Raymond Hettinger
ecccafb2d4
Restore the test of the random module after including "Random" in the
...
ignore tuple.
The line, "from _random import Random as CoreGenerator", fools the test
code which expects CoreGenerator.__name__ to be "CoreGenerator" instead
of "Random".
2002-12-30 07:04:47 +00:00
Raymond Hettinger
4c47bd5e60
Temporarily comment out a test that crashes upon the introduction of
...
the _random subclass for Random.
2002-12-30 03:01:25 +00:00
Raymond Hettinger
dd24a9f363
This test depends on the exact ordering produced by the WichmannHill
...
random number generator. Altered it a bit to use the old generator
and restore the test.
2002-12-30 00:46:09 +00:00
Tim Peters
621818b318
A start at non-trivial (== DST-aware) tests of timezone conversion.
...
Guido has in mind an easier way for users to code this stuff, but the
only tests we have now are for fixed-offset tzinfo classes, and this
stuff is extremely delicate in the endcases (read the new test code
for why: there are holes in time <wink>).
2002-12-29 23:44:49 +00:00
Raymond Hettinger
40f6217092
SF patch 658251: Install a C implementation of the Mersenne Twister as the
...
core generator for random.py.
2002-12-29 23:03:38 +00:00
Kurt B. Kaiser
5e65ce671c
Remove some old debugging print statements.
2002-12-29 22:48:52 +00:00