Guido van Rossum
65bf9f265e
Quickly renamed.
1997-04-29 18:33:38 +00:00
Guido van Rossum
04e30c188a
Remove err_input from rename list -- it is a static inside errors.c.
1997-04-29 18:25:32 +00:00
Guido van Rossum
373c869a6a
Quickly renamed. Also removed the long comment explaining why this is
...
better than the old error API.
1997-04-29 18:22:47 +00:00
Guido van Rossum
58d8e3dd9e
Remove renaming instructions for ANY -- this is not renamed in
...
mymalloc.h. (Since it's a macro, I don't care much. It is used
internally only; others can use void *.)
1997-04-29 18:19:10 +00:00
Guido van Rossum
b209a116cf
Quickly renamed.
1997-04-29 18:18:01 +00:00
Guido van Rossum
e2b4f0906d
Track updates in rename2.h.
1997-04-29 16:27:09 +00:00
Guido van Rossum
e601c0f55d
Added new name for inittab!
1997-04-29 16:23:44 +00:00
Guido van Rossum
63c35e5407
Remove macros that are only used for cgensupport.[ch].
...
Fixed typo in PyArg_VaParse (not PyArgs_*).
1997-04-29 16:21:39 +00:00
Guido van Rossum
92e8782217
Moved cgensupport.h to Modules (awaiting oblivion).
1997-04-29 16:08:53 +00:00
Guido van Rossum
8105821bf5
Added -I$(srcdir) to line for glmodule so we can move cgensupport.h here.
1997-04-29 16:07:45 +00:00
Guido van Rossum
62cb0bafe2
Moved to ../Modules.
1997-04-29 15:50:32 +00:00
Guido van Rossum
ba9d7c5612
Change the exception objects to have the string value "os.error"
...
instead "posix.error" or "nt.error".
1997-04-29 15:49:54 +00:00
Guido van Rossum
8ec9e639ab
Adapt Mac specific code to new universal headers (I think -- this is
...
Jack's code).
1997-04-29 15:49:04 +00:00
Guido van Rossum
dfed920e51
Hm. What was previously checked in was the edited *output* of the old
...
cgen.py. Now that cgen.py and cstubs have been quickly renamed, check
in the actual output. This has some "old-style" names left in
(getilongarg etc.) but these are now take care of by macros in
cgensupport.h (which is now specific to glmodule.c).
1997-04-29 15:46:43 +00:00
Guido van Rossum
3837de00a9
Moved here from ../Python and quickly renamed.
1997-04-29 15:43:55 +00:00
Guido van Rossum
58a6ac55d2
Removed cgensupport.[co] (to ../Modules).
1997-04-29 15:42:53 +00:00
Guido van Rossum
4f1099fcf4
Added cgensupport.o.
1997-04-29 15:41:53 +00:00
Guido van Rossum
7fa3b75f28
Added cgensupport.c to Setup line for gl module.
...
Addeed Andrew Kuchling's zlib module.
1997-04-29 15:41:26 +00:00
Guido van Rossum
9e3a812306
Added Jeremy's resource module.
1997-04-29 15:39:45 +00:00
Guido van Rossum
0a3eaf0838
Quickly renamed.
1997-04-29 15:39:28 +00:00
Guido van Rossum
fb221562a3
Added Andrew Kuchling's zlib module.
1997-04-29 15:38:09 +00:00
Guido van Rossum
1818b7702b
Moved rename2's macros relevant to this module here and added comment
...
about the file's obsolescence.
1997-04-29 15:35:28 +00:00
Guido van Rossum
1875247549
Quickly renamed.
1997-04-29 14:49:28 +00:00
Guido van Rossum
9d0a3dfa3d
Transformed comments to doc strings.
...
Added symlinks option to copytree.
1997-04-29 14:45:19 +00:00
Guido van Rossum
a2baf46c89
Reindented at 4 spaces.
1997-04-29 14:06:46 +00:00
Guido van Rossum
5980845bd5
Add feature to copy(), copy2(): dst may be a directory.
...
Remove unneeded check for '.' / '..' from copytree().
Add some comments.
1997-04-29 14:06:05 +00:00
Guido van Rossum
277206b08e
Improvements to copyfile(): open the files in binary mode, and close
...
them in a finally clause.
1997-04-29 13:08:15 +00:00
Guido van Rossum
e9a0732cd1
Note that passing a filename to uu.{en,de}code() is deprecated.
1997-04-27 21:29:51 +00:00
Guido van Rossum
e76b7a8fcd
Added fnmatch, base64 and quopri, received from Andrew Kuchling.
1997-04-27 21:25:52 +00:00
Guido van Rossum
8be9a11617
Restore two features of the original 1.4 pickle:
...
- which_module() search __main__ last;
- load_inst() no longer checks that the classname really refers to a class.
1997-04-25 19:52:29 +00:00
Guido van Rossum
faeae5cd78
Alas, I have to restore 'marshal', since it is needed by the new
...
cPickle-compatible pickle, and pickle must be importable in restricted
mode. I guess I'll have to make marshal safe.
1997-04-25 19:10:15 +00:00
Guido van Rossum
5026cb4dc6
Now that the string-sig has settled on r"obin" strings, restrict the
...
<letter><string> notation to 'r' and 'R'.
1997-04-25 17:32:00 +00:00
Guido van Rossum
c474deaaf6
Expand one level of symbolic link in sys.argv[0] before inserting its
...
dirname in sys.path. This means that you can create a symbolic link
foo in /usr/local/bin pointing to /usr/yourname/src/foo/foo.py, and
then invoking foo will insert /usr/yourname/src/foo in sys.path, not
/usr/local/bin. This makes it easier to have multifile programs
(before, the program would have to do an os.readlink(sys.argv[0])
itself and insert the resulting directory in sys.path -- Grail does
this).
Note that the expansion is only used for sys.path; sys.argv[0] is
still the original, unadorned filename (/usr/local/bin/foo in the
example).
1997-04-25 15:38:31 +00:00
Guido van Rossum
4246edda7c
Unroll the for loop used for building python, so the first three
...
subdirectories can be made in parallel (unfortunately, Modules has to
depend on all three).
1997-04-23 15:14:24 +00:00
Guido van Rossum
caa9f234bc
Change inspired by Tommy Burnette to add an interface to get stderr, too.
1997-04-21 14:15:55 +00:00
Fred Drake
5fd026dc5e
Fix a couple of glitches identified by Greg Stein.
1997-04-18 13:54:13 +00:00
Fred Drake
f39d0516b4
_safe_repr(): Make the context parameter required; ok since it's only for
...
internal use. Make sure the maxlevels and level parameters get
passed to recursive invocations.
1997-04-16 18:55:58 +00:00
Fred Drake
a89fda0fe2
Muchly changed and improved pprint.py:
...
- handles recursive data structures
- formatting based on a PrettyPrinter object
- allows a maximum nesting depth to be specified
- provides safe repr()-like function which does not pretty-print
1997-04-16 16:59:30 +00:00
Guido van Rossum
ab0d1afdf3
spliturl() should not throw away everything past first newline
1997-04-16 15:17:06 +00:00
Fred Drake
b2c02de9cb
Removed pprint.py.
...
Removed pprint.py from the README; it's now in the standard lib.
1997-04-16 04:47:57 +00:00
Guido van Rossum
0c5e049c75
Reindented with 4 spaces.
1997-04-16 02:47:12 +00:00
Guido van Rossum
7cfd31ee8a
Rewrite parsesequence() to emulate MH without invoking pick.
...
Test it extensively by using pick.
1997-04-16 02:45:08 +00:00
Guido van Rossum
5e92affc54
Checking in a copy of Fred Drake's data structure pretty-printer
...
(with some slight formatting changes).
Feature requests:
- Make it a class (everything should be a class);
- support recursive data structures (like pp.py on the ftp contrib site).
1997-04-16 00:49:59 +00:00
Guido van Rossum
03a7466b8f
OK, ready to make 'assert' a keyword (instead of '__assert__').
1997-04-16 00:34:46 +00:00
Guido van Rossum
7aa9fc5642
Use uuencoded test images.
1997-04-16 00:30:45 +00:00
Guido van Rossum
684480f419
Soft failure for Win32 and Mac platforms. Less output unless verbose.
1997-04-16 00:29:59 +00:00
Guido van Rossum
cc5a91dc4f
Soft failure for Win32 platform.
1997-04-16 00:29:15 +00:00
Guido van Rossum
505043f35e
No need to define assert, it's built in.
1997-04-16 00:27:45 +00:00
Fred Drake
b5d20393b1
Always use spaces for indentation.
...
Added pformat() function: formats object to a string representation with
no trailing newline; returns the string.
1997-04-15 14:15:23 +00:00
Guido van Rossum
103cc6dd11
Patch by Craig McPheeters to clean up the back-references to widgets
...
contained in commands created by those same widgets.
1997-04-14 13:30:24 +00:00