Guido van Rossum
2861f4ec6e
Open files in binary mode (Jack)
1997-10-08 15:23:23 +00:00
Guido van Rossum
cbf3dd53b4
Use better timer on the mac
...
Open files in binary mode
(Jack)
1997-10-08 15:23:02 +00:00
Guido van Rossum
45ac47c0b2
Allow open file as parameter (must be seekable) (Jack)
1997-10-08 15:22:32 +00:00
Guido van Rossum
9ec2ed466b
Change test for re.sub() involving g<...> to use a multi-character
...
identifier. The previous re.py had a bug that wouldn't show up with
single-char identifier...
1997-10-08 04:05:08 +00:00
Guido van Rossum
5bc5b14f6d
Checking in AMK's latest installement.
1997-10-08 02:08:04 +00:00
Guido van Rossum
d2c0ec78d2
Use ... around binary strings.
1997-10-07 21:22:48 +00:00
Fred Drake
53ad776cbf
Remove this pathetic little module!
1997-10-07 18:12:20 +00:00
Guido van Rossum
c6e8fd6de7
Temporary fix to valid_identifier().
1997-10-07 14:51:18 +00:00
Guido van Rossum
2f3941d743
Return the error code from most commands, rather than swallowing it.
...
Adapted the example (lying slightly about the string printed by
login()).
1997-10-07 14:49:56 +00:00
Guido van Rossum
ae590db3ce
Fix join to support multiple arguments.
...
(Why isn't this file identical to ntpath.py?)
1997-10-07 14:48:23 +00:00
Guido van Rossum
abfdd70665
Add XXX note about wanting support for copy_reg.py...
1997-10-07 14:47:50 +00:00
Guido van Rossum
90981e0e70
Add Jeff Epler's interact() function. Note that it is broken.
...
(It should probably be withdrawn :-( )
1997-10-07 14:47:24 +00:00
Guido van Rossum
d5484fb75c
Add optional arguments lo and hi to insort() and bisect(), to support
...
using arrays containing leading or trailing garbage.
1997-10-07 14:45:49 +00:00
Fred Drake
e3dbc7e422
Reduced number of temporary names used at module scope. Use underscores in
...
front of temporary names in the module namespace.
1997-10-06 21:28:04 +00:00
Fred Drake
dc1a072e02
Reduced number of temporary names used at module scope. Use underscores in
...
front of temporary names in the module namespace.
1997-10-06 21:06:29 +00:00
Fred Drake
923c4eeeef
Don't do weird things with the "import parser"; just do it. Sheesh...
1997-10-06 20:56:43 +00:00
Guido van Rossum
a11ccccd24
The usual (and some new modules).
1997-10-06 20:19:59 +00:00
Barry Warsaw
fc3e61cd28
UserDict.get(): New method to mirror built-in dictionaries' get()
...
method.
1997-10-06 17:50:04 +00:00
Fred Drake
596db3161c
Move the __getitem__() definition from StandardException to Exception.
...
This allows stuff like this out of the box:
try:
...
except socket.error, (code, msg):
...
1997-10-06 15:48:20 +00:00
Guido van Rossum
bf9d353bab
New "re" regular expression support.
...
The new re module was written by Andrew Kuchling and uses the pcre
code in ../Modules/. The old re module has been renamed to re1,
just in case you need it for comparison.
1997-10-06 14:45:17 +00:00
Guido van Rossum
6af6d3511e
Turns out whatsound.py and sndhdr.py were identical modules.
...
Since there's also an imghdr.py file, I propose to make sndhdr.py the
official one. For compatibility, whatsound.py imports * from
sndhdr.py.
1997-10-04 20:29:17 +00:00
Guido van Rossum
f1b0009a78
Fix path search for test data file so it works under more circumstances.
1997-10-01 22:10:32 +00:00
Guido van Rossum
ae631f7f45
There was actually a test that ensured that raising an exception A
...
with an instance of a derived class B would really raise an A, not a
B. Since Barry fixed this anomalous behaviour, I though I might as
well fix the test! (Hmm, Barry, did you not run the tests or did you
miss that test_opcodes failed?)
1997-10-01 04:41:05 +00:00
Guido van Rossum
a008fa52be
Fixed test for socket.error to work when it's a class exception.
1997-10-01 04:39:05 +00:00
Guido van Rossum
ac8a9f3ee9
Handy utility to guess MIME type from extension.
1997-09-30 19:05:50 +00:00