]>
granicus.if.org Git - python/log
Guido van Rossum [Fri, 25 Apr 1997 19:52:29 +0000 (19:52 +0000)]
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.
Guido van Rossum [Fri, 25 Apr 1997 19:10:15 +0000 (19:10 +0000)]
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.
Guido van Rossum [Fri, 25 Apr 1997 17:32:00 +0000 (17:32 +0000)]
Now that the string-sig has settled on r"obin" strings, restrict the
<letter><string> notation to 'r' and 'R'.
Guido van Rossum [Fri, 25 Apr 1997 15:38:31 +0000 (15:38 +0000)]
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).
Guido van Rossum [Wed, 23 Apr 1997 15:14:24 +0000 (15:14 +0000)]
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).
Guido van Rossum [Mon, 21 Apr 1997 14:15:55 +0000 (14:15 +0000)]
Change inspired by Tommy Burnette to add an interface to get stderr, too.
Fred Drake [Fri, 18 Apr 1997 13:54:13 +0000 (13:54 +0000)]
Fix a couple of glitches identified by Greg Stein.
Fred Drake [Wed, 16 Apr 1997 18:55:58 +0000 (18:55 +0000)]
_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.
Fred Drake [Wed, 16 Apr 1997 16:59:30 +0000 (16:59 +0000)]
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
Guido van Rossum [Wed, 16 Apr 1997 15:17:06 +0000 (15:17 +0000)]
spliturl() should not throw away everything past first newline
Fred Drake [Wed, 16 Apr 1997 04:47:57 +0000 (04:47 +0000)]
Removed pprint.py.
Removed pprint.py from the README; it's now in the standard lib.
Guido van Rossum [Wed, 16 Apr 1997 02:47:12 +0000 (02:47 +0000)]
Reindented with 4 spaces.
Guido van Rossum [Wed, 16 Apr 1997 02:45:08 +0000 (02:45 +0000)]
Rewrite parsesequence() to emulate MH without invoking pick.
Test it extensively by using pick.
Guido van Rossum [Wed, 16 Apr 1997 00:49:59 +0000 (00:49 +0000)]
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).
Guido van Rossum [Wed, 16 Apr 1997 00:34:46 +0000 (00:34 +0000)]
OK, ready to make 'assert' a keyword (instead of '__assert__').
Guido van Rossum [Wed, 16 Apr 1997 00:30:45 +0000 (00:30 +0000)]
Use uuencoded test images.
Guido van Rossum [Wed, 16 Apr 1997 00:29:59 +0000 (00:29 +0000)]
Soft failure for Win32 and Mac platforms. Less output unless verbose.
Guido van Rossum [Wed, 16 Apr 1997 00:29:15 +0000 (00:29 +0000)]
Soft failure for Win32 platform.
Guido van Rossum [Wed, 16 Apr 1997 00:27:45 +0000 (00:27 +0000)]
No need to define assert, it's built in.
Fred Drake [Tue, 15 Apr 1997 14:15:23 +0000 (14:15 +0000)]
Always use spaces for indentation.
Added pformat() function: formats object to a string representation with
no trailing newline; returns the string.
Guido van Rossum [Mon, 14 Apr 1997 13:30:24 +0000 (13:30 +0000)]
Patch by Craig McPheeters to clean up the back-references to widgets
contained in commands created by those same widgets.
Guido van Rossum [Fri, 11 Apr 1997 22:31:56 +0000 (22:31 +0000)]
Remove Digital Creations copyright (Jim sez it's okay).
Guido van Rossum [Fri, 11 Apr 1997 22:26:42 +0000 (22:26 +0000)]
Catch and report ValueError raised by strftime.
Guido van Rossum [Fri, 11 Apr 1997 22:19:12 +0000 (22:19 +0000)]
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.
Guido van Rossum [Fri, 11 Apr 1997 21:57:53 +0000 (21:57 +0000)]
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.
Guido van Rossum [Fri, 11 Apr 1997 20:44:04 +0000 (20:44 +0000)]
Keep Microsoft VC happy.
Guido van Rossum [Fri, 11 Apr 1997 20:37:35 +0000 (20:37 +0000)]
Keep gcc -Wall and Microsoft VC happy.
Barry Warsaw [Fri, 11 Apr 1997 20:27:03 +0000 (20:27 +0000)]
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.
Guido van Rossum [Fri, 11 Apr 1997 19:56:06 +0000 (19:56 +0000)]
My own patch: support writable 'softspace' attribute.
Guido van Rossum [Fri, 11 Apr 1997 19:22:06 +0000 (19:22 +0000)]
(Jack:) On the Mac, don't automatically enable dynamic loading.
Guido van Rossum [Fri, 11 Apr 1997 19:19:46 +0000 (19:19 +0000)]
(Jack:) Don't define TRUE and FALSE if already defined.
Guido van Rossum [Fri, 11 Apr 1997 19:18:23 +0000 (19:18 +0000)]
(Jack:) On the Mac, use standard strerror() if using MSL C-library.
Guido van Rossum [Fri, 11 Apr 1997 19:16:25 +0000 (19:16 +0000)]
(Jack:) On the Mac, give syntax error on \r.
Guido van Rossum [Fri, 11 Apr 1997 19:14:07 +0000 (19:14 +0000)]
(Jack:) Align mapping entries to 4-words if USE_CACHE_ALIGNED is defined.
Guido van Rossum [Fri, 11 Apr 1997 19:12:20 +0000 (19:12 +0000)]
(Jack:) fopen arg typo (?) "rw" changed to "rb".
Guido van Rossum [Fri, 11 Apr 1997 19:11:25 +0000 (19:11 +0000)]
(Jack:) Mac only: get GUSI errno.h values too.
Guido van Rossum [Fri, 11 Apr 1997 19:09:51 +0000 (19:09 +0000)]
(Jack+Guido:) interpret ../ in basejoin() according to RFC1808.
Guido van Rossum [Fri, 11 Apr 1997 19:01:48 +0000 (19:01 +0000)]
Open files in binary mode.
Guido van Rossum [Fri, 11 Apr 1997 19:00:53 +0000 (19:00 +0000)]
(Jack:) Better MacOS support.
Guido van Rossum [Fri, 11 Apr 1997 18:59:38 +0000 (18:59 +0000)]
(Jack:) Recognize PNG files.
Guido van Rossum [Fri, 11 Apr 1997 18:42:45 +0000 (18:42 +0000)]
Remove the Emacs shell-script line. It's not a shell script.
Guido van Rossum [Fri, 11 Apr 1997 18:20:42 +0000 (18:20 +0000)]
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.
Guido van Rossum [Fri, 11 Apr 1997 17:19:54 +0000 (17:19 +0000)]
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.
Guido van Rossum [Fri, 11 Apr 1997 17:18:45 +0000 (17:18 +0000)]
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.)
Guido van Rossum [Fri, 11 Apr 1997 17:04:49 +0000 (17:04 +0000)]
Pass VERSION and VPATH into getpath.c.
Guido van Rossum [Fri, 11 Apr 1997 16:46:56 +0000 (16:46 +0000)]
Oops, added <URL:...> around the URL.
Guido van Rossum [Fri, 11 Apr 1997 15:25:47 +0000 (15:25 +0000)]
(Sjoerd:) Incorporate `build number' stuff.
Guido van Rossum [Fri, 11 Apr 1997 15:25:08 +0000 (15:25 +0000)]
(Sjoerd:) Install getbuildinfo.c in config/ so extensions can use it.
Guido van Rossum [Fri, 11 Apr 1997 15:23:52 +0000 (15:23 +0000)]
Bugfix by Sjoerd:
/* x_ocount is in bytes, wheras play.samples is in frames */
/* we want frames */
Guido van Rossum [Fri, 11 Apr 1997 15:22:56 +0000 (15:22 +0000)]
base64 support by Sjoerd.
Guido van Rossum [Fri, 11 Apr 1997 15:19:35 +0000 (15:19 +0000)]
Added note about SWIG (replacing a whole lot of nonsense about how
difficult it is to do).
Guido van Rossum [Wed, 9 Apr 1997 21:25:01 +0000 (21:25 +0000)]
Use uuencoded test images.
Guido van Rossum [Wed, 9 Apr 1997 21:02:17 +0000 (21:02 +0000)]
Don't just die when an error is not defined; print a warning instead.
This for errno-challenged platforms like Windows.
Guido van Rossum [Wed, 9 Apr 1997 20:57:52 +0000 (20:57 +0000)]
Try calling getpid() from /usr/lib/libc.so instead of some other
random things.
Guido van Rossum [Wed, 9 Apr 1997 20:51:54 +0000 (20:51 +0000)]
Use TESTFN instead of /etc/passwd and /dev/null as test files.
Guido van Rossum [Wed, 9 Apr 1997 19:41:24 +0000 (19:41 +0000)]
Tweaks to keep the Microsoft compiler quiet.
Guido van Rossum [Wed, 9 Apr 1997 19:24:53 +0000 (19:24 +0000)]
Tweaks to keep the Microsoft compiler quier.
Guido van Rossum [Wed, 9 Apr 1997 18:22:28 +0000 (18:22 +0000)]
Remove unused variable.
Guido van Rossum [Wed, 9 Apr 1997 18:19:39 +0000 (18:19 +0000)]
Remove two unised variables.
Guido van Rossum [Wed, 9 Apr 1997 18:04:08 +0000 (18:04 +0000)]
Got rid of the static decl of PyCObject_Import, which was a 1.4
compatibility hack.
Guido van Rossum [Wed, 9 Apr 1997 17:47:47 +0000 (17:47 +0000)]
Give PyErr_Format a new name and make it static.
Guido van Rossum [Wed, 9 Apr 1997 17:44:11 +0000 (17:44 +0000)]
support module for cPickle
Guido van Rossum [Wed, 9 Apr 1997 17:36:32 +0000 (17:36 +0000)]
Jim Fulton's version 2.2.
Guido van Rossum [Wed, 9 Apr 1997 17:35:33 +0000 (17:35 +0000)]
Unknown changes by Jim Fulton.
Guido van Rossum [Wed, 9 Apr 1997 17:34:28 +0000 (17:34 +0000)]
Changed the way the C API was exported. Jim Fulton.
Guido van Rossum [Wed, 9 Apr 1997 17:32:51 +0000 (17:32 +0000)]
New version by Digital Creations, supports binary format compatible
with cPickle.
Guido van Rossum [Wed, 9 Apr 1997 17:15:54 +0000 (17:15 +0000)]
Ping's latest. Fixes triple quoted strings ending in odd
#backslashes, and other stuff I don't know.
Jack Jansen [Wed, 9 Apr 1997 15:54:54 +0000 (15:54 +0000)]
NewMovieFromFile has extra parameter and return value
Jack Jansen [Wed, 9 Apr 1997 15:53:46 +0000 (15:53 +0000)]
Enabled resID input/output parameter to NewMovieFromFile. This changes
the Python interface, unfortunately.
Added a few calls that were blacklisted for no apparent reason.
Guido van Rossum [Tue, 8 Apr 1997 19:46:53 +0000 (19:46 +0000)]
while (1) -> while 1. Sorry.
Guido van Rossum [Tue, 8 Apr 1997 19:46:02 +0000 (19:46 +0000)]
Search for a valid begin line instead of requiring the first line.
Jack Jansen [Tue, 8 Apr 1997 15:28:05 +0000 (15:28 +0000)]
(Optional) MSL compatability
Jack Jansen [Tue, 8 Apr 1997 15:27:29 +0000 (15:27 +0000)]
DisposPtr -> DisposePtr
Jack Jansen [Tue, 8 Apr 1997 15:27:00 +0000 (15:27 +0000)]
Changed the few old routine names still used to the new ones
Started working on MSL support
Jack Jansen [Tue, 8 Apr 1997 15:26:03 +0000 (15:26 +0000)]
Changed [SG]etCRefCon to [SG]etControlReference
Jack Jansen [Tue, 8 Apr 1997 15:24:58 +0000 (15:24 +0000)]
Modified for (optional) use of MSL
Jack Jansen [Tue, 8 Apr 1997 15:24:17 +0000 (15:24 +0000)]
Fixed for compiling without OLDROUTINENAMES and OLDROUTINELOCATIONS
Guido van Rossum [Tue, 8 Apr 1997 14:24:39 +0000 (14:24 +0000)]
Ka-Ping's muich improved version of March 26, 1997:
# Ignore now accepts \f as whitespace. Operator now includes '**'.
# Ignore and Special now accept \n or \r\n at the end of a line.
# Imagnumber is new. Expfloat is corrected to reject '0e4'.
Guido van Rossum [Sun, 6 Apr 1997 03:46:20 +0000 (03:46 +0000)]
Support for alternative string quotes (a"xx", b"xx", c"xx", ...).
Guido van Rossum [Sun, 6 Apr 1997 03:41:40 +0000 (03:41 +0000)]
Support for alternative string quotes (a"xx", b"xx", c"xx", ...).
In interactive mode, do generate code for single-string statements.
Guido van Rossum [Thu, 3 Apr 1997 23:49:28 +0000 (23:49 +0000)]
Various status updates.
Guido van Rossum [Thu, 3 Apr 1997 22:43:02 +0000 (22:43 +0000)]
Added site
Guido van Rossum [Thu, 3 Apr 1997 22:41:49 +0000 (22:41 +0000)]
New stuff by AMK.
Guido van Rossum [Thu, 3 Apr 1997 18:31:43 +0000 (18:31 +0000)]
Remove a redundant XINCREF(value). This caused the reference count of
all locals to be upped by one when `from <module> import <whatever>'
was executed.
Guido van Rossum [Thu, 3 Apr 1997 17:06:32 +0000 (17:06 +0000)]
New version by Sjoerd, with support for IRIX 6 audio library.
Jack Jansen [Thu, 3 Apr 1997 14:51:03 +0000 (14:51 +0000)]
Added an attribute string_id_to_buffer, which gives the offset you
have to add to the id() of a string to get the address of the
data. This is a horrible and error-prone hack, but unfortunately it is
one that is needed for playing audio and crearing pixmaps. Having the
constant here is at least marginally better than the previous practice
of having the constant 16 all over the place...
Jack Jansen [Thu, 3 Apr 1997 14:48:04 +0000 (14:48 +0000)]
- Most errors are *not* OSErr style, so raise better exceptions (with
textual messages)
- Plugged a memory leak or two
Jack Jansen [Thu, 3 Apr 1997 14:45:28 +0000 (14:45 +0000)]
Still not a real test, but at least it runs again
Jack Jansen [Thu, 3 Apr 1997 14:44:41 +0000 (14:44 +0000)]
Use MacOS.string_id_to_buffer for id() to buffer address hack
Jack Jansen [Thu, 3 Apr 1997 14:44:07 +0000 (14:44 +0000)]
Use MacOS.string_id_to_buffer for the hack to convert string id() to
buffer address.
Guido van Rossum [Thu, 3 Apr 1997 00:04:51 +0000 (00:04 +0000)]
Checked in some new Tk demos that I wrote a while ago.
Fred Drake [Wed, 2 Apr 1997 14:51:56 +0000 (14:51 +0000)]
Small grammatical touchups:
Para. 1: ...that reads and writes a string buffer...
^ ^
Para. 3: ...can be called at any time to retrieve the...
XXXXXXXXXXXX ^^^^^
...entire contents of the entire ``file'' ...
^^^^^^^ XXXXXXX
Guido, I hope I'm not stomping too far afield, but these seem pretty clear
to me.
Guido van Rossum [Wed, 2 Apr 1997 06:13:34 +0000 (06:13 +0000)]
Whole lotta changes.
Guido van Rossum [Wed, 2 Apr 1997 06:11:55 +0000 (06:11 +0000)]
use /usr/bin/env
Guido van Rossum [Wed, 2 Apr 1997 06:11:18 +0000 (06:11 +0000)]
Added replace() implementation by Perry Stoll (debugged and reformatted by me).
Guido van Rossum [Wed, 2 Apr 1997 06:06:03 +0000 (06:06 +0000)]
Spell Unix, not UNIX.
Guido van Rossum [Wed, 2 Apr 1997 06:05:07 +0000 (06:05 +0000)]
Horrible hack to split up code '--' to prevent
latex2html from collapsing it into '-'.
Guido van Rossum [Wed, 2 Apr 1997 06:04:02 +0000 (06:04 +0000)]
Add complex().
Update int(), long(), float() to support string conversions.
Guido van Rossum [Wed, 2 Apr 1997 05:56:16 +0000 (05:56 +0000)]
Add cross-refs for int() to atoi() etc.
Change replace() arguments; remove replace1().
Guido van Rossum [Wed, 2 Apr 1997 05:49:46 +0000 (05:49 +0000)]
Changed my mind on replace().
It's now replace(str, old, new, maxsplit=0).
Note new ordering of parameters (string first);
this is more consistent with translate().