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
Guido van Rossum
fd16d9438d
(Jack:) fopen arg typo (?) "rw" changed to "rb".
1997-04-11 19:12:20 +00:00
Guido van Rossum
fb421c82a9
(Jack:) Mac only: get GUSI errno.h values too.
1997-04-11 19:11:25 +00:00
Guido van Rossum
54a1d0bc69
(Jack+Guido:) interpret ../ in basejoin() according to RFC1808.
1997-04-11 19:09:51 +00:00
Guido van Rossum
c511aee0e3
Open files in binary mode.
1997-04-11 19:01:48 +00:00
Guido van Rossum
f4f756cf55
(Jack:) Better MacOS support.
1997-04-11 19:00:53 +00:00
Guido van Rossum
9e3307494d
(Jack:) Recognize PNG files.
1997-04-11 18:59:38 +00:00
Guido van Rossum
3d82972b85
Remove the Emacs shell-script line. It's not a shell script.
1997-04-11 18:42:45 +00:00
Guido van Rossum
5f32248d56
From: Clarence Gardner <clarence@king.silcom.com>
...
The function parse_qs currently calls urllib.unquote on the
value of the field submitted, but not on the name. It needs
to do both.
1997-04-11 18:20:42 +00:00
Guido van Rossum
97227814a9
The default path components are now all relative instead of absolute paths.
...
This completes the getpath.c checkin. Note that to enable this in an
existing build tree, you'll have to edit your Setup and Setup.in file
to remove the $(DESTLIB) from all the PATH variable definitions.
1997-04-11 17:19:54 +00:00
Guido van Rossum
305e5d0d4f
Completely revamped the way the default path is constructed.
...
Idea and first three implementation rounds due to Barry -- after that
I spent another day on it, hopefully it's enough for now :-)
(Wait for the checkin to Setup.in.)
1997-04-11 17:18:45 +00:00
Guido van Rossum
ec61b77216
Pass VERSION and VPATH into getpath.c.
1997-04-11 17:04:49 +00:00
Guido van Rossum
5d88aa3a36
Oops, added <URL:...> around the URL.
1997-04-11 16:46:56 +00:00
Guido van Rossum
24c93591cd
(Sjoerd:) Incorporate `build number' stuff.
1997-04-11 15:25:47 +00:00
Guido van Rossum
5ad7aaf5fb
(Sjoerd:) Install getbuildinfo.c in config/ so extensions can use it.
1997-04-11 15:25:08 +00:00
Guido van Rossum
1e0b19e9e4
Bugfix by Sjoerd:
...
/* x_ocount is in bytes, wheras play.samples is in frames */
/* we want frames */
1997-04-11 15:23:52 +00:00
Guido van Rossum
a3d9e02593
base64 support by Sjoerd.
1997-04-11 15:22:56 +00:00