Guido van Rossum
fb9b7fd5ee
Be nicer to systems that have neither termios nor msvcrt.
1998-04-13 20:22:21 +00:00
Guido van Rossum
b19e2a383c
Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it
...
would still try to call the class...
1998-04-13 18:08:45 +00:00
Guido van Rossum
be14e69742
New revision -- sometimes it's AUTH-LOGIN, sometimes AUTH=LOGIN!
1998-04-11 03:11:51 +00:00
Guido van Rossum
5c7e8cd267
Avoid using the obsolete rand module; and improve the randomness
...
of the boundary chosen by choose_boudary() by using milliseconds
of the timestamp.
1998-04-11 03:06:02 +00:00
Guido van Rossum
38d8f4e1c2
New version doesn't require REV1 capability.
1998-04-11 01:22:34 +00:00
Guido van Rossum
c74521acc4
Oops -- remove some debug print statements!
1998-04-11 01:18:35 +00:00
Guido van Rossum
c296651e10
Add image_types() and image_names() as methods to Misc class.
1998-04-10 19:16:10 +00:00
Guido van Rossum
ce73acf5e6
Tim's version 4, with my mods
1998-04-10 19:14:59 +00:00
Guido van Rossum
4cee3c49c2
Another easter present.
1998-04-10 16:14:34 +00:00
Guido van Rossum
7f5013a9a9
New Java-style threading module. The doc strings are in a separate module.
1998-04-09 22:01:42 +00:00
Guido van Rossum
bb08066053
The usual
1998-04-09 21:47:39 +00:00
Guido van Rossum
b5903ac9fb
Another new utility: getpass() prompts for a password, with echo off.
...
Also contains getuser(), which returns the username (not prompting though).
These work on Unix and Windows!
1998-04-09 20:37:16 +00:00
Guido van Rossum
29e5f5d81f
When getcwd() doesn't exist or raises an exception, don't fail but
...
fall back to using os.curdir instead; if it is fine, don't use
os.curdir at all.
1998-04-09 14:27:57 +00:00
Guido van Rossum
c09e6b1c0a
Clarify that put *blocks* when the queue is full. Add some blank
...
lines to doc strings.
1998-04-09 14:25:32 +00:00
Guido van Rossum
eeec0af307
Piers' new version (but I unfolded a few doc strings).
1998-04-09 14:20:31 +00:00
Guido van Rossum
c2c07fa10c
Piers Lauder's IMAP module.
1998-04-09 13:51:46 +00:00
Guido van Rossum
03774bb5ea
Version with docstrings and some other changes, by Piers Lauder.
...
(Adapted by Just, I believe.)
1998-04-09 13:50:55 +00:00
Fred Drake
3217be9395
Relocating file to Lib/lib-old.
1998-04-09 04:05:43 +00:00
Fred Drake
153165ca3d
Restore ni as an obsolete module.
1998-04-09 04:04:18 +00:00
Guido van Rossum
484772d472
Dave Ascher's pop client code.
1998-04-06 18:27:27 +00:00
Guido van Rossum
8053d89f7b
Add usage message when no arguments.
1998-04-06 14:45:26 +00:00
Guido van Rossum
f4b44fa6ef
Tim's latest version (supports old and new tokenize modules)
1998-04-06 14:41:20 +00:00
Guido van Rossum
986abac1ba
Give in to tabnanny
1998-04-06 14:29:28 +00:00
Guido van Rossum
1ae297ae8b
Remove some long obsolete files...
1998-04-06 14:16:12 +00:00
Guido van Rossum
f62cf61548
Give in to tabnanny.
1998-04-06 14:14:25 +00:00
Guido van Rossum
5810297052
Correction to vonmisesvariate() by Magnus Kessler: it should take and
...
return something between 0 and 2*pi. Also added a reference to the
literature.
1998-04-06 14:12:13 +00:00
Guido van Rossum
56c04b8376
Restructured the event_* calls slightly -- there's really no need to
...
use the default root, and instead of string.split, use splitlist.
1998-04-06 03:10:03 +00:00
Fred Drake
bdc61b1c7b
Relocating file to Lib/lib-old.
1998-04-04 01:05:17 +00:00
Fred Drake
a351f89a94
Relocating file to Lib/lib-old.
1998-04-04 00:54:56 +00:00
Guido van Rossum
8430c583da
AMK's latest
1998-04-03 21:47:12 +00:00
Guido van Rossum
a50547e0c0
Track changes in tokenize.py
1998-04-03 19:56:40 +00:00
Guido van Rossum
18586f4c48
Add optional argument to help().
1998-04-03 17:03:13 +00:00
Guido van Rossum
1d5102cac1
Explicitly close rfile and wfile in StreamRequestHandler.finish() --
...
mostly for jpython.
1998-04-03 16:49:52 +00:00
Guido van Rossum
a90c78b918
Differentiate between NEWLINE token (an official newline) and NL token
...
(a newline that the grammar ignores).
1998-04-03 16:05:38 +00:00
Guido van Rossum
fbe63de37d
UnixMailbox: don't be fooled by lines that begin with "From " but
...
otherwise don't look like headers at all...
Also robustify the test code a bit.
1998-04-03 16:04:05 +00:00
Guido van Rossum
7e07b3845b
Sjoerd's latest.
1998-04-03 16:02:39 +00:00
Guido van Rossum
0454b51282
Oops, pulled over by the tab police :-)
1998-04-03 15:57:58 +00:00
Guido van Rossum
b5916ab065
Change by Sjoerd (with minor reformatting):
...
guess the mime type of a local file.
Change suggested by Sjoerd (with different implementation):
when retrieve() creates a temporary file, preserve the suffix.
Corrollary of the first change:
also return the mime type of a local file in retrieve().
1998-04-03 15:56:16 +00:00
Guido van Rossum
75d92c1864
Added a __delitem__ to the Message class.
...
(Still no __setitem__, until I get a request to add it!)
1998-04-02 21:33:20 +00:00
Guido van Rossum
b1062fc9d2
Correct dumb typo found by kjpylint (stack should be self.stack).
1998-03-31 17:00:46 +00:00
Guido van Rossum
599174f74d
Correct a definite typo ('mem' should be 'memo').
1998-03-31 16:30:28 +00:00
Guido van Rossum
9ab75cbaab
Tim Peters' program for checking whether a program's indentation is
...
sensitive to tab size. Uses a different strategy than tabpolice.py,
but has compatible usage.
1998-03-31 14:31:39 +00:00
Guido van Rossum
a6bb6be95f
Strip argument to atol and atof to match what strop does better.
1998-03-30 17:22:30 +00:00
Guido van Rossum
a08fabad72
A few lines were indented using spaces instead of tabs -- fix them.
1998-03-30 17:17:24 +00:00
Guido van Rossum
117a5a8138
Return the name of the Tcl command defined by _bind(). This can
...
optionally be passed to unbind() (or you can apss it to
deletecommand()).
1998-03-27 21:26:51 +00:00
Guido van Rossum
548703a1b8
The usual.
1998-03-26 22:14:20 +00:00
Guido van Rossum
65e5399081
Don't write "if self.dict: self.dict.close()"; just write
...
"self.dict.close()" and ignore the exception. The "if self.dict:"
part would be calculated through len(self.dict.keys()), which is very
expensive for a large dictionary...
1998-03-26 22:12:22 +00:00
Guido van Rossum
3ec38f0ee4
A few lines were indented using tabs instead of spaces -- fix them.
1998-03-26 22:10:50 +00:00
Guido van Rossum
45e2fbc2e7
Mass check-in after untabifying all files that need it.
1998-03-26 21:13:24 +00:00
Guido van Rossum
9ea7024754
Delete this unused relic.
1998-03-26 21:07:14 +00:00