Commit Graph

5610 Commits

Author SHA1 Message Date
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
Guido van Rossum 5a56649e09 Remove Digital Creations copyright (Jim sez it's okay). 1997-04-11 22:31:56 +00:00
Guido van Rossum 62bd30c430 Catch and report ValueError raised by strftime. 1997-04-11 22:26:42 +00:00
Guido van Rossum b31c7dcb43 OK, I lied. On Windows, _IOLBF seems to be the same as full
buffering, so to get the normal behavior back, I set it to
unbuffered.
1997-04-11 22:19:12 +00:00
Guido van Rossum 2a212191f8 Change in when and how stdin and stdout are set to line-buffering.
This used to be done whenever stdin was interactive.  Now we only do
it when the -i flag is given.  Also (and this is the real reason for
this fix) we explicitly allocate a buffer -- this seems to be
necessary on Windows.
1997-04-11 21:57:53 +00:00
Guido van Rossum 7844e38a98 Keep Microsoft VC happy. 1997-04-11 20:44:04 +00:00
Guido van Rossum 6bf62dad9e Keep gcc -Wall and Microsoft VC happy. 1997-04-11 20:37:35 +00:00
Barry Warsaw 90126035ca Removed two unused static function: string_addsep() and
string_append().  These must be artifacts of GvR's rewrite.

Fixed some typos in the leading comment (and re-filled the
paragraphs).

Hope you don't mind, Guido.
1997-04-11 20:27:03 +00:00
Guido van Rossum 3dc35b0c66 My own patch: support writable 'softspace' attribute. 1997-04-11 19:56:06 +00:00
Guido van Rossum 1d2e240954 (Jack:) On the Mac, don't automatically enable dynamic loading. 1997-04-11 19:22:06 +00:00
Guido van Rossum 62bf108392 (Jack:) Don't define TRUE and FALSE if already defined. 1997-04-11 19:19:46 +00:00
Guido van Rossum 6976a52099 (Jack:) On the Mac, use standard strerror() if using MSL C-library. 1997-04-11 19:18:23 +00:00
Guido van Rossum 2d45be1366 (Jack:) On the Mac, give syntax error on \r. 1997-04-11 19:16:25 +00:00
Guido van Rossum 3648884490 (Jack:) Align mapping entries to 4-words if USE_CACHE_ALIGNED is defined. 1997-04-11 19:14:07 +00:00