Guido van Rossum
e57c96ee4c
site customization hook...
1996-08-17 19:56:26 +00:00
Guido van Rossum
fe58e3e22c
regen for Next
1996-08-16 18:14:41 +00:00
Guido van Rossum
dcc057a793
Added routines to print, format and extract the current, ``live'' stack.
...
Also added print_list() and format_list() which format the output from
an extract_*() routine.
1996-08-12 23:18:13 +00:00
Guido van Rossum
7a7d5d8fcf
Use splitx() in capwords() (bugfix after interface change for split()).
...
Give capwords a default pattern argument which will recognize words as
sequeces of [a-zA-Z0-9_].
1996-08-09 21:32:29 +00:00
Guido van Rossum
abfd8064d8
This is the third time I check in this change :-(
...
Don't use assignments into inst.__dict__ to restore instance
variables; use setattr() instead.
1996-08-08 20:26:45 +00:00
Guido van Rossum
afb5e93e77
For method=POST, append a query string from the environment or from
...
sys.argv[1], effectively merging the fields.
1996-08-08 18:42:12 +00:00
Guido van Rossum
306a8a6338
Add optional third parameter to split() and splitfields(), giving the
...
maximum number of delimiters to parse; e.g.
splitfields("a,b,c,d", ",", 2) -> ["a", "b", "c,d"].
1996-08-08 18:40:59 +00:00
Guido van Rossum
a59d3e6d50
Changed split() to be compatible with changes to string.split(): the
...
optional third argument gives a maximum number of delimiters to parse.
The new function splitx() is like split() but returns a list
containing the words as well as the delimiters.
1996-08-08 18:39:18 +00:00
Guido van Rossum
37a6f16d2e
Slight update of doc string -- suggest default args for __init__, no
...
longer complain that __getinitargs__ is an ugly name.
1996-08-08 18:35:22 +00:00
Guido van Rossum
4033ad7576
Restore 1.3 behavior of gettempdir(): if tempdir is already set, believe it.
1996-08-08 18:33:56 +00:00
Guido van Rossum
0523d63a5c
Don't use 'false'; use '0'.
1996-08-08 18:32:15 +00:00
Guido van Rossum
5468a7b76b
stupid typo in latest fix ('Name' should be 'name')
1996-08-08 18:31:42 +00:00
Guido van Rossum
524e9a450b
Need to import * from types
1996-08-08 18:31:11 +00:00
Guido van Rossum
fcce630a7d
Added test for math module
1996-08-08 18:26:25 +00:00
Guido van Rossum
47347f0425
Use fcntl.h instead of sys/fcntl.h; use h2py.py from Tools/scripts
1996-08-08 18:25:40 +00:00
Guido van Rossum
d44e0c3ace
New AIX specific subdirs
1996-08-08 18:24:58 +00:00
Guido van Rossum
68f56e45f6
Don't trip over empty string in sys.path.
1996-07-31 21:18:42 +00:00
Guido van Rossum
24cf88d31e
FreeBSD platform specific modules
1996-07-30 21:05:10 +00:00
Guido van Rossum
9afdabffa9
Add missing close parenthesis.
1996-07-30 20:16:21 +00:00
Guido van Rossum
053313a507
Change to use keyword args instead of dicts
1996-07-30 18:35:38 +00:00
Guido van Rossum
be33c37fae
Sh script to recreage generic machdep subdirectory
1996-07-30 16:36:42 +00:00
Guido van Rossum
3bb710d647
updated again
1996-07-30 16:35:26 +00:00
Guido van Rossum
c8b4791d9e
Two independent changes:
...
- accept empty string from focus_get
- map coords() return value through getdouble and splitlist
1996-07-30 16:31:32 +00:00
Guido van Rossum
8d12a1bcbc
Function to guess which db package created a database.
1996-07-30 16:30:15 +00:00
Guido van Rossum
3534a8932a
New, improved parseaddr() by Sjoerd.
1996-07-30 16:29:16 +00:00
Guido van Rossum
7698d12a8b
Changes to make it work on FreeBSD 2.x.
1996-07-30 16:28:45 +00:00
Guido van Rossum
f17361d314
Two changes suggested by Andrew Kuchling:
...
- move compile() inside try-except
- add code so you can do "python pdb.py <script> <arg> ..." to debug <script>
1996-07-30 16:28:13 +00:00
Guido van Rossum
81749b0754
Added optional second arg to what(), giving the data read from the file
...
(then f may be None).
1996-07-30 16:26:42 +00:00
Guido van Rossum
56a733856e
Added BUILD_SLICE opcode.
1996-07-30 16:26:07 +00:00
Guido van Rossum
8ec318d43b
Obsolete
1996-07-30 16:25:24 +00:00
Guido van Rossum
3b8e20d2c2
Added hook to os.environ to call putenv(), if it exists.
1996-07-24 00:55:17 +00:00
Guido van Rossum
ed7253ca50
Added 3rd optional argument to translate(), a string of characters to delete.
...
Added maketrans(), a utility to create a translation table.
1996-07-23 18:12:39 +00:00
Guido van Rossum
99aa2a4132
Remove all CRLF -> LF translation for file uploads, since we cannot
...
reliably distinguish binary files from text files (and Mac Netscape
sends all files in "binary" form, i.e. it sends text files with only
CR delimiters...).
1996-07-23 17:27:05 +00:00
Guido van Rossum
d3876d33d3
Renamed all occurrences of posix to os.
1996-07-23 03:47:28 +00:00
Guido van Rossum
773ab27f04
Changes by Jim Fulton: pass environ around as arg;
...
keep_blank_values option to parse().
1996-07-23 03:46:24 +00:00
Guido van Rossum
a48bf79977
Added splitext()
1996-07-23 02:28:32 +00:00
Guido van Rossum
54afb3bf60
New versions generated on a Linux 2.x system by AMK
1996-07-22 23:46:00 +00:00
Guido van Rossum
c7c5e697c3
Optimizations and one intentional loophole by Jim Fulton.
...
The optimizations consist mostly of using local variables to cache
methods or instance variables used a lot (e.g. "self.write").
The loopholes allows marshalling extension types as long as they have
a __class__ attribute (in which case they may support the rest of the
class piclking protocol as well). This allows pickling MESS extension
types.
1996-07-22 22:26:07 +00:00
Guido van Rossum
77c29a1734
This is needed for users of Linux 2.x
1996-07-22 21:50:43 +00:00
Guido van Rossum
5c971677a5
Fuck. For PC support, this must be in the distribution.
1996-07-22 15:23:25 +00:00
Guido van Rossum
ad8b3baa91
Restore the capability to pass a class (usually Pack) as an option to widget
...
creation; no longer support this for the config method.
1996-07-21 03:05:05 +00:00
Guido van Rossum
17f2b2dfed
Don't use tktools, dummy! Reworded test message slightly.
1996-07-21 02:20:06 +00:00
Guido van Rossum
421bb0e389
fix canvas bind commands
1996-07-21 02:19:32 +00:00
Guido van Rossum
6d6a15bab2
Added option to refilemessages() to keep sequences
1996-07-21 02:18:22 +00:00
Guido van Rossum
154a539460
Changes for new parser module (Fred Drake)
1996-07-21 02:17:52 +00:00
Guido van Rossum
6e21cebfbb
New opcodes BINARY_POWER, RAISE_VARARGS, CALL_FUNCTION, MAKE_FUNCTION
1996-07-21 02:16:53 +00:00
Guido van Rossum
cd6aab91a5
Fixed restore_files(); added reset_files(); made these more flexible.
1996-06-28 17:28:51 +00:00
Guido van Rossum
80b0fa0d99
socket wrapper module around _socket for all Window platforms
1996-06-26 19:52:38 +00:00
Guido van Rossum
746ea3598a
url2path for NT
1996-06-26 19:47:56 +00:00
Guido van Rossum
2281d35578
add nturl2path
1996-06-26 19:47:37 +00:00
Guido van Rossum
d3901028cf
Sjoerd's StringIO speed-up
1996-06-19 14:54:19 +00:00
Guido van Rossum
bd6187fcce
get rid of temporary README about Tommy's efforts
1996-06-17 17:15:28 +00:00
Guido van Rossum
990e619b45
new simple dialog module, incompatible
1996-06-17 17:14:46 +00:00
Guido van Rossum
84a00a80a2
Change defn of splitnport() to only accept valid digit strings.
1996-06-17 17:11:40 +00:00
Guido van Rossum
4e15599daa
Import marshal before using it :-(
1996-06-17 17:10:45 +00:00
Guido van Rossum
6afff6139a
Memoize _deepcopy_tuple() -- maybe this helps Tommy's problem.
1996-06-17 17:10:11 +00:00
Guido van Rossum
53725a2858
Added splitnport(), which is like splitport() but returns a numeric port,
...
is forgiving about semi-numeric port numbers, and allows you to specify
a default port (default is -1, None returned for nonnumeric port).
1996-06-13 19:12:35 +00:00
Guido van Rossum
601d332a3f
Bastionification utility (useful for rexec clients)
1996-06-11 20:12:49 +00:00
Guido van Rossum
4cc4ab1735
Add third arg to split(). Add capwords() -- which uses that.
1996-06-11 18:45:15 +00:00
Guido van Rossum
8775d8b9dc
Added capitalize() and capwords().
1996-06-11 18:43:00 +00:00
Guido van Rossum
8c1529dc29
regenerated files from IRIX 5.3 headers
1996-06-11 15:03:14 +00:00
Guido van Rossum
a7e4b28422
Support optional filename argument for retrieve() and urlretrieve(),
...
to specify where it should go (if specified, even local files will be
copied into the given file).
1996-06-11 00:16:27 +00:00
Guido van Rossum
69155682e6
small fix by Sjoerd
1996-06-10 19:04:02 +00:00
Guido van Rossum
3672aa2dcd
change DumbWriter to derive from NullWriter
1996-05-29 00:02:30 +00:00
Guido van Rossum
3fd32ecd92
optimizations due to Fred Drake; added urldefrag() function
1996-05-28 23:54:24 +00:00
Guido van Rossum
1acbffe2e0
Conversions between mac paths and URLs
1996-05-28 23:52:06 +00:00
Guido van Rossum
9787bdafe0
Many improvements dure to Fred Drake
1996-05-28 23:50:49 +00:00
Guido van Rossum
d2560b0f2e
Docstringified and PASV support by Siebren (including new ftpcp() function).
1996-05-28 23:41:25 +00:00
Guido van Rossum
3ada87a508
fix typo in load_dynamic
1996-05-28 23:34:10 +00:00
Guido van Rossum
f4aaf862fd
Be more careful about default temp dir
1996-05-28 23:31:34 +00:00
Guido van Rossum
7a623d7e7c
added " def
1996-05-28 23:18:55 +00:00
Guido van Rossum
1b5a1d0770
Total rewrite
1996-05-28 23:17:13 +00:00
Guido van Rossum
72e316428f
made it work again with changed Tkinter
1996-05-28 23:15:20 +00:00
Guido van Rossum
0978f993e3
Major overhaul:
...
- Support ~[user] expansion.
- Remember last directory and pattern; optional 'key' argument
specifies different memory locations.
- Absolutify pathnames if possible.
- WM close event cancels the dialog.
- First arg to go() can be either a directory or a file (renamed to
dir_of_file); defaults to current directory.
1996-05-28 23:14:36 +00:00
Guido van Rossum
51b708ab61
don't export selection
1996-05-28 23:10:30 +00:00
Guido van Rossum
5feb54c461
added hdl protocol properties
1996-05-28 23:10:02 +00:00
Guido van Rossum
3c998825bd
removed history comment
1996-05-28 23:09:09 +00:00
Guido van Rossum
2539528810
add translate() -- which was in strop per release 1.3
1996-05-28 23:08:45 +00:00
Guido van Rossum
a13edb489b
optimization of getheader() using a dictionary
1996-05-28 23:08:25 +00:00
Guido van Rossum
fdd45cb858
Fix some obsolete names comments.
...
Change RHooks() interface to not require a 'rexec' instance argument;
added set_rexec() method instead (which must be called by the RExec
instance using this RHooks instance).
Support dynamic loading of modules, at least for those modules that
are ok built-in modules. Added new interfaces set_trusted_path() and
load_dynamic() to RExec class (the default trusted path consists of
all absolute pathnames in sys.path).
Change copy_except() to actually try to delete the exceptions.
1996-05-28 23:07:17 +00:00
Guido van Rossum
9e6aa9d55b
avoid eval() like the plague
1996-05-28 23:01:28 +00:00
Guido van Rossum
dc42b8aa3d
change Mac creator/type
1996-05-28 23:01:05 +00:00
Guido van Rossum
6cb84f3cde
change return values of simple run* functions
1996-05-28 23:00:42 +00:00
Guido van Rossum
8460b94b50
removed unused globals
1996-05-28 22:59:58 +00:00
Guido van Rossum
508a092e2e
added setcontext and parsesequence; several small fixes
1996-05-28 22:59:37 +00:00
Guido van Rossum
22a18904e4
export error == IOError
1996-05-28 22:58:40 +00:00
Guido van Rossum
fa59cd73d4
bump version (sorry)
1996-05-28 22:58:15 +00:00
Guido van Rossum
503e50b0fa
capitalize H3 headers; add 'cgi.' prefix to example code
1996-05-28 22:57:20 +00:00
Guido van Rossum
ce84920e0c
added * and + operators
1996-05-28 22:56:16 +00:00
Guido van Rossum
68ded217f7
minor fix to mime header regex --Sjoerd
1996-05-28 19:52:40 +00:00
Guido van Rossum
507f15b254
Auto-install on first import.
...
Added quick reference.
1996-05-28 15:52:00 +00:00
Guido van Rossum
422cc7ffec
more changes copied from Grail
1996-05-21 20:30:07 +00:00
Guido van Rossum
63e39ae933
Made Place.info == Pack.info
1996-05-16 17:53:48 +00:00
Guido van Rossum
a5f875f504
Yet another mini fix to pack/grid info.
1996-05-16 17:50:07 +00:00
Guido van Rossum
3626999377
Some more changes from the net... Typos, 4.0/4.1 issues, new tkButtonInvoke().
1996-05-16 17:11:27 +00:00
Guido van Rossum
37dcab197c
Resync with Grail's Tkinter.py.
1996-05-16 16:00:19 +00:00
Guido van Rossum
955c5d156d
Set the base for atoi() and atol() to 0, since we're reading Python
...
numbers here, and so that atol() doesn't barf on the trailing 'L'.
Add a test case involving a long integer.
1996-05-15 22:49:57 +00:00
Guido van Rossum
7853647dd1
Don't atoi() the memo key.
...
Use atoi(), atol(), atof() instead of load_atomic for seed-up.
1996-04-12 13:36:27 +00:00
Guido van Rossum
bbb4e10e91
Subtlety: ~root/a should expand to /a, not //a. Everything else unchanged.
1996-04-02 22:30:03 +00:00
Guido van Rossum
ededb58c14
Update reference (it's now RFC 1808); added http to list of protocols
...
that use parameters.
1996-03-29 21:23:25 +00:00