]> granicus.if.org Git - python/log
python
28 years agoCatch and report ValueError raised by strftime.
Guido van Rossum [Fri, 11 Apr 1997 22:26:42 +0000 (22:26 +0000)]
Catch and report ValueError raised by strftime.

28 years agoOK, I lied. On Windows, _IOLBF seems to be the same as full
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.

28 years agoChange in when and how stdin and stdout are set to line-buffering.
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.

28 years agoKeep Microsoft VC happy.
Guido van Rossum [Fri, 11 Apr 1997 20:44:04 +0000 (20:44 +0000)]
Keep Microsoft VC happy.

28 years agoKeep gcc -Wall and Microsoft VC happy.
Guido van Rossum [Fri, 11 Apr 1997 20:37:35 +0000 (20:37 +0000)]
Keep gcc -Wall and Microsoft VC happy.

28 years agoRemoved two unused static function: string_addsep() and
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.

28 years agoMy own patch: support writable 'softspace' attribute.
Guido van Rossum [Fri, 11 Apr 1997 19:56:06 +0000 (19:56 +0000)]
My own patch: support writable 'softspace' attribute.

28 years ago(Jack:) On the Mac, don't automatically enable dynamic loading.
Guido van Rossum [Fri, 11 Apr 1997 19:22:06 +0000 (19:22 +0000)]
(Jack:) On the Mac, don't automatically enable dynamic loading.

28 years ago(Jack:) Don't define TRUE and FALSE if already defined.
Guido van Rossum [Fri, 11 Apr 1997 19:19:46 +0000 (19:19 +0000)]
(Jack:) Don't define TRUE and FALSE if already defined.

28 years ago(Jack:) On the Mac, use standard strerror() if using MSL C-library.
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.

28 years ago(Jack:) On the Mac, give syntax error on \r.
Guido van Rossum [Fri, 11 Apr 1997 19:16:25 +0000 (19:16 +0000)]
(Jack:) On the Mac, give syntax error on \r.

28 years ago(Jack:) Align mapping entries to 4-words if USE_CACHE_ALIGNED is defined.
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.

28 years ago(Jack:) fopen arg typo (?) "rw" changed to "rb".
Guido van Rossum [Fri, 11 Apr 1997 19:12:20 +0000 (19:12 +0000)]
(Jack:) fopen arg typo (?) "rw" changed to "rb".

28 years ago(Jack:) Mac only: get GUSI errno.h values too.
Guido van Rossum [Fri, 11 Apr 1997 19:11:25 +0000 (19:11 +0000)]
(Jack:) Mac only: get GUSI errno.h values too.

28 years ago(Jack+Guido:) interpret ../ in basejoin() according to RFC1808.
Guido van Rossum [Fri, 11 Apr 1997 19:09:51 +0000 (19:09 +0000)]
(Jack+Guido:) interpret ../ in basejoin() according to RFC1808.

28 years agoOpen files in binary mode.
Guido van Rossum [Fri, 11 Apr 1997 19:01:48 +0000 (19:01 +0000)]
Open files in binary mode.

28 years ago(Jack:) Better MacOS support.
Guido van Rossum [Fri, 11 Apr 1997 19:00:53 +0000 (19:00 +0000)]
(Jack:) Better MacOS support.

28 years ago(Jack:) Recognize PNG files.
Guido van Rossum [Fri, 11 Apr 1997 18:59:38 +0000 (18:59 +0000)]
(Jack:) Recognize PNG files.

28 years agoRemove the Emacs shell-script line. It's not a shell script.
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.

28 years agoFrom: Clarence Gardner <clarence@king.silcom.com>
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.

28 years agoThe default path components are now all relative instead of absolute paths.
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.

28 years agoCompletely revamped the way the default path is constructed.
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.)

28 years agoPass VERSION and VPATH into getpath.c.
Guido van Rossum [Fri, 11 Apr 1997 17:04:49 +0000 (17:04 +0000)]
Pass VERSION and VPATH into getpath.c.

28 years agoOops, added <URL:...> around the URL.
Guido van Rossum [Fri, 11 Apr 1997 16:46:56 +0000 (16:46 +0000)]
Oops, added <URL:...> around the URL.

28 years ago(Sjoerd:) Incorporate `build number' stuff.
Guido van Rossum [Fri, 11 Apr 1997 15:25:47 +0000 (15:25 +0000)]
(Sjoerd:) Incorporate `build number' stuff.

28 years ago(Sjoerd:) Install getbuildinfo.c in config/ so extensions can use it.
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.

28 years agoBugfix by Sjoerd:
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 */

28 years agobase64 support by Sjoerd.
Guido van Rossum [Fri, 11 Apr 1997 15:22:56 +0000 (15:22 +0000)]
base64 support by Sjoerd.

28 years agoAdded note about SWIG (replacing a whole lot of nonsense about how
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).

28 years agoUse uuencoded test images.
Guido van Rossum [Wed, 9 Apr 1997 21:25:01 +0000 (21:25 +0000)]
Use uuencoded test images.

28 years agoDon't just die when an error is not defined; print a warning instead.
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.

28 years agoTry calling getpid() from /usr/lib/libc.so instead of some other
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.

28 years agoUse TESTFN instead of /etc/passwd and /dev/null as test files.
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.

28 years agoTweaks to keep the Microsoft compiler quiet.
Guido van Rossum [Wed, 9 Apr 1997 19:41:24 +0000 (19:41 +0000)]
Tweaks to keep the Microsoft compiler quiet.

28 years agoTweaks to keep the Microsoft compiler quier.
Guido van Rossum [Wed, 9 Apr 1997 19:24:53 +0000 (19:24 +0000)]
Tweaks to keep the Microsoft compiler quier.

28 years agoRemove unused variable.
Guido van Rossum [Wed, 9 Apr 1997 18:22:28 +0000 (18:22 +0000)]
Remove unused variable.

28 years agoRemove two unised variables.
Guido van Rossum [Wed, 9 Apr 1997 18:19:39 +0000 (18:19 +0000)]
Remove two unised variables.

28 years agoGot rid of the static decl of PyCObject_Import, which was a 1.4
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.

28 years agoGive PyErr_Format a new name and make it static.
Guido van Rossum [Wed, 9 Apr 1997 17:47:47 +0000 (17:47 +0000)]
Give PyErr_Format a new name and make it static.

28 years agosupport module for cPickle
Guido van Rossum [Wed, 9 Apr 1997 17:44:11 +0000 (17:44 +0000)]
support module for cPickle

28 years agoJim Fulton's version 2.2.
Guido van Rossum [Wed, 9 Apr 1997 17:36:32 +0000 (17:36 +0000)]
Jim Fulton's version 2.2.

28 years agoUnknown changes by Jim Fulton.
Guido van Rossum [Wed, 9 Apr 1997 17:35:33 +0000 (17:35 +0000)]
Unknown changes by Jim Fulton.

28 years agoChanged the way the C API was exported. 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.

28 years agoNew version by Digital Creations, supports binary format compatible
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.

28 years agoPing's latest. Fixes triple quoted strings ending in odd
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.

28 years agoNewMovieFromFile has extra parameter and return value
Jack Jansen [Wed, 9 Apr 1997 15:54:54 +0000 (15:54 +0000)]
NewMovieFromFile has extra parameter and return value

28 years agoEnabled resID input/output parameter to NewMovieFromFile. This changes
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.

28 years agowhile (1) -> while 1. Sorry.
Guido van Rossum [Tue, 8 Apr 1997 19:46:53 +0000 (19:46 +0000)]
while (1) -> while 1.  Sorry.

28 years agoSearch for a valid begin line instead of requiring the first line.
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.

28 years ago(Optional) MSL compatability
Jack Jansen [Tue, 8 Apr 1997 15:28:05 +0000 (15:28 +0000)]
(Optional) MSL compatability

28 years agoDisposPtr -> DisposePtr
Jack Jansen [Tue, 8 Apr 1997 15:27:29 +0000 (15:27 +0000)]
DisposPtr -> DisposePtr

28 years agoChanged the few old routine names still used to the new ones
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

28 years agoChanged [SG]etCRefCon to [SG]etControlReference
Jack Jansen [Tue, 8 Apr 1997 15:26:03 +0000 (15:26 +0000)]
Changed [SG]etCRefCon to [SG]etControlReference

28 years agoModified for (optional) use of MSL
Jack Jansen [Tue, 8 Apr 1997 15:24:58 +0000 (15:24 +0000)]
Modified for (optional) use of MSL

28 years agoFixed for compiling without OLDROUTINENAMES and OLDROUTINELOCATIONS
Jack Jansen [Tue, 8 Apr 1997 15:24:17 +0000 (15:24 +0000)]
Fixed for compiling without OLDROUTINENAMES and OLDROUTINELOCATIONS

28 years agoKa-Ping's muich improved version of March 26, 1997:
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'.

28 years agoSupport for alternative string quotes (a"xx", b"xx", c"xx", ...).
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", ...).

28 years agoSupport 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.

28 years agoVarious status updates.
Guido van Rossum [Thu, 3 Apr 1997 23:49:28 +0000 (23:49 +0000)]
Various status updates.

28 years agoAdded site
Guido van Rossum [Thu, 3 Apr 1997 22:43:02 +0000 (22:43 +0000)]
Added site

28 years agoNew stuff by AMK.
Guido van Rossum [Thu, 3 Apr 1997 22:41:49 +0000 (22:41 +0000)]
New stuff by AMK.

28 years agoRemove a redundant XINCREF(value). This caused the reference count of
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.

28 years agoNew version by Sjoerd, with support for IRIX 6 audio library.
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.

28 years agoAdded an attribute string_id_to_buffer, which gives the offset you
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...

28 years ago- Most errors are *not* OSErr style, so raise better exceptions (with
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

28 years agoStill not a real test, but at least it runs again
Jack Jansen [Thu, 3 Apr 1997 14:45:28 +0000 (14:45 +0000)]
Still not a real test, but at least it runs again

28 years agoUse MacOS.string_id_to_buffer for id() to buffer address hack
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

28 years agoUse MacOS.string_id_to_buffer for the hack to convert string id() to
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.

28 years agoChecked in some new Tk demos that I wrote a while ago.
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.

28 years agoSmall grammatical touchups:
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.

28 years agoWhole lotta changes.
Guido van Rossum [Wed, 2 Apr 1997 06:13:34 +0000 (06:13 +0000)]
Whole lotta changes.

28 years agouse /usr/bin/env
Guido van Rossum [Wed, 2 Apr 1997 06:11:55 +0000 (06:11 +0000)]
use /usr/bin/env

28 years agoAdded replace() implementation by Perry Stoll (debugged and reformatted by me).
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).

28 years agoSpell Unix, not UNIX.
Guido van Rossum [Wed, 2 Apr 1997 06:06:03 +0000 (06:06 +0000)]
Spell Unix, not UNIX.

28 years agoHorrible hack to split up code '--' to prevent
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 '-'.

28 years agoAdd complex().
Guido van Rossum [Wed, 2 Apr 1997 06:04:02 +0000 (06:04 +0000)]
Add complex().
Update int(), long(), float() to support string conversions.

28 years agoAdd cross-refs for int() to atoi() etc.
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().

28 years agoChanged my mind on replace().
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().

28 years agoAdd #! line.
Guido van Rossum [Wed, 2 Apr 1997 05:47:39 +0000 (05:47 +0000)]
Add #! line.

28 years agoNew doc strings.
Guido van Rossum [Wed, 2 Apr 1997 05:47:11 +0000 (05:47 +0000)]
New doc strings.

28 years agoFix two small bugs with proxies.
Guido van Rossum [Wed, 2 Apr 1997 05:46:35 +0000 (05:46 +0000)]
Fix two small bugs with proxies.

28 years agoNew symbols due to assert statement.
Guido van Rossum [Wed, 2 Apr 1997 05:46:05 +0000 (05:46 +0000)]
New symbols due to assert statement.

28 years agoNew test output for test_builtin
Guido van Rossum [Wed, 2 Apr 1997 05:44:51 +0000 (05:44 +0000)]
New test output for test_builtin

28 years agoWin32 precision clock() -- Mark Hammond.
Guido van Rossum [Wed, 2 Apr 1997 05:35:28 +0000 (05:35 +0000)]
Win32 precision clock() -- Mark Hammond.

28 years agoSupport include statement :-(
Guido van Rossum [Wed, 2 Apr 1997 05:33:00 +0000 (05:33 +0000)]
Support include statement :-(

28 years agoSupport assert stmt.
Guido van Rossum [Wed, 2 Apr 1997 05:32:13 +0000 (05:32 +0000)]
Support assert stmt.

28 years agoSeveral fixes reported by jim F.
Guido van Rossum [Wed, 2 Apr 1997 05:31:09 +0000 (05:31 +0000)]
Several fixes reported by jim F.

28 years agoAllow passing a .pyo file.
Guido van Rossum [Wed, 2 Apr 1997 05:28:38 +0000 (05:28 +0000)]
Allow passing a .pyo file.
Print correct name in fatal error from PyErr_Print.

28 years agoAdded assert statement.
Guido van Rossum [Wed, 2 Apr 1997 05:24:36 +0000 (05:24 +0000)]
Added assert statement.

28 years agoAdded assert grammar.
Guido van Rossum [Wed, 2 Apr 1997 05:24:08 +0000 (05:24 +0000)]
Added assert grammar.

28 years agoAllow leading underscore in keywords.
Guido van Rossum [Wed, 2 Apr 1997 05:23:46 +0000 (05:23 +0000)]
Allow leading underscore in keywords.

28 years agoAdded AssertionError.
Guido van Rossum [Wed, 2 Apr 1997 05:22:53 +0000 (05:22 +0000)]
Added AssertionError.

28 years agoAdded __assert__ statement (later to be renamed)
Guido van Rossum [Wed, 2 Apr 1997 05:22:18 +0000 (05:22 +0000)]
Added __assert__ statement (later to be renamed)

28 years agoOptimized the hell out of listmessages().
Guido van Rossum [Wed, 2 Apr 1997 01:18:30 +0000 (01:18 +0000)]
Optimized the hell out of listmessages().
Changed numericprog regexpr to make it faster to check.
Removed now unnecessary checks for os.curdir, os.pardir.

28 years agoGet rid of .conj pseudo data attribute for complex numbers.
Guido van Rossum [Tue, 1 Apr 1997 03:12:33 +0000 (03:12 +0000)]
Get rid of .conj pseudo data attribute for complex numbers.
Add __members__ attribute.

28 years agoRemove ConflictError (which was also removed from bltinmodule.c, even
Guido van Rossum [Mon, 31 Mar 1997 17:19:40 +0000 (17:19 +0000)]
Remove ConflictError (which was also removed from bltinmodule.c, even
though the checkin message failed to note that).

28 years agoremove ConflictError
Guido van Rossum [Mon, 31 Mar 1997 17:19:05 +0000 (17:19 +0000)]
remove ConflictError

28 years agoRemove ConflictError, add InteractiveFlag, CObject_Type, FdIsInteractive, and thread...
Guido van Rossum [Mon, 31 Mar 1997 17:18:03 +0000 (17:18 +0000)]
Remove ConflictError, add InteractiveFlag, CObject_Type, FdIsInteractive, and thread entry points.

28 years ago1. Add string conversions to int(), long(), float(). (Not to complex()!)
Guido van Rossum [Mon, 31 Mar 1997 17:15:43 +0000 (17:15 +0000)]
1. Add string conversions to int(), long(), float().  (Not to complex()!)

2. Fix two bugs in complex():

   - Memory leak when using complex(classinstance) -- r was never
   DECREF'ed.

   - Conversion of the second argument, if not complex, was done using
   the type vector of the 1st.

28 years agoAdded test of complex() (that catches a bug in 1.4!).
Guido van Rossum [Mon, 31 Mar 1997 17:13:17 +0000 (17:13 +0000)]
Added test of complex() (that catches a bug in 1.4!).

Added test that ensures that int() and long() truncate float numbers
towards zero.