Guido van Rossum
7eecc246a7
Remove .pyo files like .pyc files.
1997-10-20 23:16:58 +00:00
Guido van Rossum
fb5cef1160
Added separate tests for {}.get().
1997-10-20 20:10:43 +00:00
Barry Warsaw
9b887c7911
Added tests of dict.get()
1997-10-20 17:34:43 +00:00
Fred Drake
654451dc54
splitpasswd(): The parameter is named "user", not "host".
1997-10-14 13:30:57 +00:00
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
Guido van Rossum
83bd9a9c8c
Move Widget.config() c.s. to Misc class, so the Tk class also inherits them.
1997-09-29 23:24:52 +00:00
Guido van Rossum
332e14437c
Use sys.exc_info() where needed.
...
Use "re" module, making it threadsafe.
1997-09-29 23:23:46 +00:00
Guido van Rossum
f15d15964b
Use sys.exc_info() where needed.
1997-09-29 23:22:12 +00:00
Guido van Rossum
c90ad2103e
No longer need to be very careful with saving the exception state
...
first. Don't store the traceback as a local variable, to avoid
circular references.
1997-09-29 23:17:48 +00:00
Guido van Rossum
a3beb63eb7
Removing emacs.py, which is obsolete.
1997-09-29 13:19:53 +00:00
Guido van Rossum
da286666b2
Add optional bufsize argument to various calls so we can make the
...
os.fdopen() calls unbuffered. I presume that it's enough if we can
make all three of them (for stdin, stdout, and stderr) unbuffered and
don't need to specify different buffer sizes per file -- that would
complicate the interface more than I care for.
1997-09-29 04:04:39 +00:00
Guido van Rossum
4752966193
Use Marc Lemburg's tb_lineno() to calculate the correct line number.
...
Apparently the traceback object doesn't contains the right linenumber
when -O is used. Rather than guessing whether -O is on or off, use
tb_lineno() unconditionally.
1997-09-26 22:43:02 +00:00
Guido van Rossum
2781fbe46c
Word completion for the new readline.set_completer() function.
...
When completing a simple identifier, it completes keywords, built-ins
and globals in __main__; when completing NAME.NAME..., it evaluates
(!) the expression up to the last dot and completes its attributes.
It's very cool to do "import string" type "string.", hit the
completion key (twice), and see the list of names defined by the
string module!
Tip: to use the tab key as the completion key, call
readline.parse_and_bind("tab: complete")
1997-09-26 22:04:56 +00:00
Guido van Rossum
6dd4868681
The command can now either be a string (as before) or a list of
...
arguments for execvp (for those who don't want the shell's argument
parsing).
1997-09-18 20:00:39 +00:00
Barry Warsaw
25131faffe
NumberError => ArithmeticError
1997-09-16 21:50:59 +00:00
Guido van Rossum
c56ba38350
Two subtle changes:
...
(1) Introduce Exception as the conceptual root class for all exceptions.
(2) Do less work in __init__(), and more in __str__ (store args
unchanged).
1997-09-16 18:42:04 +00:00
Guido van Rossum
7883e1dfbd
Entirely rewritten parseaddr() function by Sjoerd Mullender.
...
(Includes a patch he sent me a few days later.)
1997-09-15 14:12:54 +00:00
Guido van Rossum
a1dbe50ec2
Added code to emit trailing ',' for singleton tuples in two places.
1997-09-14 23:21:51 +00:00
Guido van Rossum
4fb5b28dfc
Three independent changes:
...
- Don't use "from copy_reg import *".
- Use cls.__module__ instead of calling whichobject(cls, cls.__name__);
also try __module__ in whichmodule(), just in case.
- After calling save_reduce(), add the object to the memo.
1997-09-12 20:07:24 +00:00
Guido van Rossum
4ece95d55a
#Added doc string.
1997-09-09 20:44:04 +00:00
Guido van Rossum
4f9f8e3599
Make functionality more closely the same as what's implemented by default.
1997-09-09 20:39:58 +00:00
Guido van Rossum
501d0bb7ad
*** empty log message ***
1997-09-09 20:35:20 +00:00
Guido van Rossum
1c0d851a32
Renamed platform specific subdirectories to plat-*.
1997-09-09 03:50:59 +00:00
Guido van Rossum
5c1f5bd5f6
Renamed dos_8x3 to dos-8x3.
1997-09-09 03:42:09 +00:00
Guido van Rossum
d7500fcbb4
These directories renamed: tkinter -> lib-tk, stdwin -> lib-stdwin.
1997-09-09 03:39:21 +00:00
Guido van Rossum
c8bf884248
Added test for __all__.
1997-09-08 16:06:20 +00:00