]>
granicus.if.org Git - python/log
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().
Guido van Rossum [Wed, 2 Apr 1997 05:47:39 +0000 (05:47 +0000)]
Add #! line.
Guido van Rossum [Wed, 2 Apr 1997 05:47:11 +0000 (05:47 +0000)]
New doc strings.
Guido van Rossum [Wed, 2 Apr 1997 05:46:35 +0000 (05:46 +0000)]
Fix two small bugs with proxies.
Guido van Rossum [Wed, 2 Apr 1997 05:46:05 +0000 (05:46 +0000)]
New symbols due to assert statement.
Guido van Rossum [Wed, 2 Apr 1997 05:44:51 +0000 (05:44 +0000)]
New test output for test_builtin
Guido van Rossum [Wed, 2 Apr 1997 05:35:28 +0000 (05:35 +0000)]
Win32 precision clock() -- Mark Hammond.
Guido van Rossum [Wed, 2 Apr 1997 05:33:00 +0000 (05:33 +0000)]
Support include statement :-(
Guido van Rossum [Wed, 2 Apr 1997 05:32:13 +0000 (05:32 +0000)]
Support assert stmt.
Guido van Rossum [Wed, 2 Apr 1997 05:31:09 +0000 (05:31 +0000)]
Several fixes reported by jim F.
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.
Guido van Rossum [Wed, 2 Apr 1997 05:24:36 +0000 (05:24 +0000)]
Added assert statement.
Guido van Rossum [Wed, 2 Apr 1997 05:24:08 +0000 (05:24 +0000)]
Added assert grammar.
Guido van Rossum [Wed, 2 Apr 1997 05:23:46 +0000 (05:23 +0000)]
Allow leading underscore in keywords.
Guido van Rossum [Wed, 2 Apr 1997 05:22:53 +0000 (05:22 +0000)]
Added AssertionError.
Guido van Rossum [Wed, 2 Apr 1997 05:22:18 +0000 (05:22 +0000)]
Added __assert__ statement (later to be renamed)
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.
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.
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).
Guido van Rossum [Mon, 31 Mar 1997 17:19:05 +0000 (17:19 +0000)]
remove ConflictError
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.
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.
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.
Guido van Rossum [Thu, 27 Mar 1997 20:57:52 +0000 (20:57 +0000)]
Added a list of the main undocumented extension modules.
Guido van Rossum [Thu, 27 Mar 1997 14:56:18 +0000 (14:56 +0000)]
Added docs for UserDict,UserList
Guido van Rossum [Tue, 25 Mar 1997 22:09:18 +0000 (22:09 +0000)]
Added docs for glob and mailcap
Guido van Rossum [Tue, 25 Mar 1997 22:07:53 +0000 (22:07 +0000)]
Added docs for glob
Guido van Rossum [Tue, 25 Mar 1997 22:01:35 +0000 (22:01 +0000)]
Added docs for mailcap
Guido van Rossum [Tue, 25 Mar 1997 21:58:08 +0000 (21:58 +0000)]
Change by Andrew Kuchling (edited by Guido):
Removed unused import tempfile.
Added some docstrings.
Guido van Rossum [Tue, 25 Mar 1997 18:25:20 +0000 (18:25 +0000)]
Added two new questions about number conversions.
Roger E. Masse [Tue, 25 Mar 1997 17:39:56 +0000 (17:39 +0000)]
As per GvR recomendation, added support for a 'sync' attribute for the
GDBM module.
Guido van Rossum [Tue, 25 Mar 1997 16:50:31 +0000 (16:50 +0000)]
Added new functions replace() and replace1().
Guido van Rossum [Tue, 25 Mar 1997 16:41:31 +0000 (16:41 +0000)]
Added docs for replace() and replace1().
Roger E. Masse [Tue, 25 Mar 1997 16:06:03 +0000 (16:06 +0000)]
Added a 'sync' method to shelve. If the underlying database does not have a sync
attribute, this method silently ignores this fact. The default (bsddb's dbhash) does.
Guido van Rossum [Tue, 25 Mar 1997 15:25:54 +0000 (15:25 +0000)]
Remove untrue statement about . and .. being included in list of names
passed to walk() visitor.
Guido van Rossum [Fri, 21 Mar 1997 21:55:12 +0000 (21:55 +0000)]
Add clear() method to dictionary objects.
Guido van Rossum [Fri, 21 Mar 1997 21:18:16 +0000 (21:18 +0000)]
Removed 'marshal' from the list of "ok" built-in functions -- the
unmarshalling code is actually rather naive and can easily be
caused to crash by feeding it invalid data. This should be fixed in
the marshal module, but I don't have the time to fix it now :-(
Guido van Rossum [Thu, 20 Mar 1997 20:46:29 +0000 (20:46 +0000)]
Fix typo (missing $ in )
Guido van Rossum [Thu, 20 Mar 1997 20:40:45 +0000 (20:40 +0000)]
Ping's new version -- more efficient at finding the keywords.
Guido van Rossum [Thu, 20 Mar 1997 19:46:41 +0000 (19:46 +0000)]
Added __assert__.
Guido van Rossum [Thu, 20 Mar 1997 19:45:51 +0000 (19:45 +0000)]
Ka-Ping Yee's version is better:
Here's a "keyword" module which, in the spirit of "token.py", updates
the list of keywords automatically from a source file (in this case,
"graminit.c" seemed like a reasonable choice, easier than "Grammar/Grammar").
You get "kwlist", a sorted list of keywords; "kwdict", a dictionary
mapping each keyword to 1; and "iskeyword", a function which tells
you if a given string happens to be a keyword.
Guido van Rossum [Thu, 20 Mar 1997 19:44:30 +0000 (19:44 +0000)]
Simple module to publish list of Python keywords.
Guido van Rossum [Thu, 20 Mar 1997 14:42:17 +0000 (14:42 +0000)]
Avoid crashes with nested multipart/mixed parts.
Guido van Rossum [Wed, 19 Mar 1997 14:43:28 +0000 (14:43 +0000)]
Added note about adding \n to source for exec and compile.
Guido van Rossum [Sun, 16 Mar 1997 18:34:00 +0000 (18:34 +0000)]
Added Q. about HTTP/1.1.
Guido van Rossum [Sun, 16 Mar 1997 00:37:59 +0000 (00:37 +0000)]
New long_lshift, without restriction on size of shift count, by Tim Peters.
This makes it possible to write 1L<<
1000000 , memory permitting.
Guido van Rossum [Fri, 14 Mar 1997 05:09:30 +0000 (05:09 +0000)]
Remove err_input -- there is no such global!
Guido van Rossum [Fri, 14 Mar 1997 04:32:50 +0000 (04:32 +0000)]
New form of PyFPE_END_PROTECT macro.
Guido van Rossum [Fri, 14 Mar 1997 04:32:25 +0000 (04:32 +0000)]
Include setjmp.h so it compiles if WANT_SIGFPE_HANDLER is undefined.
Guido van Rossum [Fri, 14 Mar 1997 04:25:22 +0000 (04:25 +0000)]
Remove redundant references to thread stuff -- long, long ago, there
was some locking code in this file that needed it...
Guido van Rossum [Fri, 14 Mar 1997 04:24:08 +0000 (04:24 +0000)]
Add Macros defining new names for all external symbols.
Guido van Rossum [Fri, 14 Mar 1997 04:23:42 +0000 (04:23 +0000)]
Change PyFPE_END_PROTECT to PyFPE_END_PROTECT(v). v should be the
last variable to which a floating point expression is assigned. The
macro passes its address to a dummy function so that the optimizer
can't delay calculating its value until after the macro.
Guido van Rossum [Fri, 14 Mar 1997 04:21:10 +0000 (04:21 +0000)]
Implement find_class() without exec statement.
Guido van Rossum [Fri, 14 Mar 1997 04:18:20 +0000 (04:18 +0000)]
Change the list() function to match the documentation in the comment
(it should return a list of tuples, not a list of lists).
Guido van Rossum [Fri, 14 Mar 1997 04:16:54 +0000 (04:16 +0000)]
Added Fred Drake's netrc parser class.
Guido van Rossum [Fri, 14 Mar 1997 04:15:43 +0000 (04:15 +0000)]
Support disassembly of a variety of objects through dis.dis().
Guido van Rossum [Fri, 14 Mar 1997 04:13:56 +0000 (04:13 +0000)]
Add optional 4th argument to [r]find and [r]index (end of slice).
Guido van Rossum [Fri, 14 Mar 1997 04:12:52 +0000 (04:12 +0000)]
Add a rough list of undocumented stuff at the end.
Guido van Rossum [Fri, 14 Mar 1997 04:10:13 +0000 (04:10 +0000)]
Hint about [\] trick to avoid quad backslashes.
Fred Drake [Thu, 13 Mar 1997 14:14:29 +0000 (14:14 +0000)]
target libinstall:
Create the .pyo files corresponding to the .py and .pyc files as
well.
Fred Drake [Thu, 13 Mar 1997 14:13:16 +0000 (14:13 +0000)]
compile(): Use the __debug__ flag to determine the proper filename extension
to use for the cached module code object.
Guido van Rossum [Tue, 11 Mar 1997 21:25:55 +0000 (21:25 +0000)]
Fix dumb bug calling parsestrplus with wrong node as argument.
Add prototypes for parsestr() and parsestrplus() (unrelated, but
seemed to make sense.)
Guido van Rossum [Tue, 11 Mar 1997 18:43:26 +0000 (18:43 +0000)]
Define __debug__ as 0 if -O is given, 1 otherwise. Also test for
errors in initializing the dictionary.
Guido van Rossum [Tue, 11 Mar 1997 18:42:21 +0000 (18:42 +0000)]
Added support for ``if __debug__:'' -- if -O is given, this form is
recognized by the code generator and code generation for the test and
the subsequent suite is suppressed.
One must write *exactly* ``if __debug__:'' or ``elif __debug__:'' --
no parentheses or operators must be present, or the optimization is
not carried through. Whitespace doesn't matter. Other uses of
__debug__ will find __debug__ defined as 0 or 1 in the __builtin__
module.
Guido van Rossum [Tue, 11 Mar 1997 18:37:35 +0000 (18:37 +0000)]
When -O is given, use ".pyo" instead of ".pyc".
Guido van Rossum [Tue, 11 Mar 1997 18:24:21 +0000 (18:24 +0000)]
Zap all env vars beginning with PYTHON to prevent an obvious form of attack.
Guido van Rossum [Mon, 10 Mar 1997 23:17:01 +0000 (23:17 +0000)]
Added support for imaginary constants (e.g. 0j, 1j, 1.0j).
Guido van Rossum [Mon, 10 Mar 1997 22:58:23 +0000 (22:58 +0000)]
Clarify error message for unexpected keyword parameter.
Guido van Rossum [Fri, 7 Mar 1997 21:05:43 +0000 (21:05 +0000)]
Restore old behavior of autotest and testall, using regrtest.
This is done for backward compatibility with Python 1.4.
Guido van Rossum [Fri, 7 Mar 1997 21:04:33 +0000 (21:04 +0000)]
Add "extra-verbose" mode, triggered by specifying two -v flags. In
this mode, all tests are run in verbose mode with their output to
stdout. No comparing of output is done.
Guido van Rossum [Fri, 7 Mar 1997 20:30:03 +0000 (20:30 +0000)]
Much more rigorous testing -- we now try many times, varying in time
of day, day of week, and season.
Fix the weekday predictions -- these seemed to be all bogus. The new
predictions seem to correspond with strftime() on Solaris and IRIX, so
I believe they are correct.
Get rid of the test for non-standard format %C returning "the same as
date(1)". This is hard to do reliably without opening a pipe to date,
and moreover, on IRIX 6.2, %C yields the Century. So we use that
instead. (We don't complain about this in non-verbose mode anyway.)
Guido van Rossum [Fri, 7 Mar 1997 00:21:55 +0000 (00:21 +0000)]
Fixed doc string, added __version__, fixed 1 bug.
Guido van Rossum [Fri, 7 Mar 1997 00:21:12 +0000 (00:21 +0000)]
Ka-Ping's version.
Guido van Rossum [Wed, 5 Mar 1997 00:45:43 +0000 (00:45 +0000)]
Add casts to CMPERROR macro to silence SunPro compiler warnings about
integer overflow in << operator.
Guido van Rossum [Wed, 5 Mar 1997 00:20:32 +0000 (00:20 +0000)]
Greatly renamed. Not a very thorough job -- I'm going to restructure
it anyway.
Guido van Rossum [Tue, 4 Mar 1997 23:44:15 +0000 (23:44 +0000)]
Add Emacs shell-script directive, SunPro version#, and fix typo
Guido van Rossum [Tue, 4 Mar 1997 23:36:04 +0000 (23:36 +0000)]
Solaris and IRIX specific instructions for fpectl.
Guido van Rossum [Tue, 4 Mar 1997 18:31:47 +0000 (18:31 +0000)]
A few comment alignment and clarifications.
Guido van Rossum [Mon, 3 Mar 1997 19:14:45 +0000 (19:14 +0000)]
Add -O option which sets Py_OptimizeFlag to avoid emitting SET_LINENO.
Fred: sorry, I hadn't checked these changes in. This should fix your
tracebacks!
Guido van Rossum [Mon, 3 Mar 1997 19:13:54 +0000 (19:13 +0000)]
Add global Py_OptimizeFlag.
Guido van Rossum [Mon, 3 Mar 1997 19:13:14 +0000 (19:13 +0000)]
Add global Py_OptimizeFlag. SET_LINENO is omitted again unless this is
nonzero.
Guido van Rossum [Mon, 3 Mar 1997 16:03:27 +0000 (16:03 +0000)]
Added intern()
Guido van Rossum [Mon, 3 Mar 1997 16:03:05 +0000 (16:03 +0000)]
Added ref to StringIO docs.
Guido van Rossum [Mon, 3 Mar 1997 16:02:32 +0000 (16:02 +0000)]
Correct two typos
Guido van Rossum [Mon, 3 Mar 1997 16:02:10 +0000 (16:02 +0000)]
Fix name of PyObject_GetAttrString
Guido van Rossum [Mon, 3 Mar 1997 16:01:21 +0000 (16:01 +0000)]
Added (minimal) StringIO docs.
Guido van Rossum [Fri, 28 Feb 1997 16:37:49 +0000 (16:37 +0000)]
Fix up indentation of examples to use 4 spaces instead of tabs.
Guido van Rossum [Wed, 26 Feb 1997 16:11:55 +0000 (16:11 +0000)]
Remove the list of Python users, replace it with a pointer to the
on-line list of same.
Guido van Rossum [Tue, 25 Feb 1997 23:08:03 +0000 (23:08 +0000)]
Added new ftp mirror site ftp://ftp.cdrom.com/pub/python/ (Walnut Creek CDROM).
Jack Jansen [Mon, 24 Feb 1997 14:03:45 +0000 (14:03 +0000)]
Converted to CW11.
Jack Jansen [Mon, 24 Feb 1997 14:00:52 +0000 (14:00 +0000)]
Make cache-alignment work always (in stead of 50% of the time:-)
Jack Jansen [Mon, 24 Feb 1997 13:59:38 +0000 (13:59 +0000)]
- Changed GestaltEqu.h to Gestalt.h
- Changed FragLoader.h to CodeFragments.h
- Removed Desk.h
Jack Jansen [Mon, 24 Feb 1997 13:56:59 +0000 (13:56 +0000)]
- Changed GestaltEqu.h to Gestalt.h
- Changed FragLoader.h to CodeFragments.h
- Removed Desk.h
- Regenerated bgen modules from new universal headers
- Changed some of the s# in PyArg_ParseTuple to m# (unfortunately:
this should have been a different commit)
Jack Jansen [Mon, 24 Feb 1997 13:52:56 +0000 (13:52 +0000)]
Re-generated from new (CW11) universal headers
Barry Warsaw [Mon, 24 Feb 1997 03:37:22 +0000 (03:37 +0000)]
(python-font-lock-keywords): Use new convention for installing in mode
Guido van Rossum [Sun, 23 Feb 1997 05:37:36 +0000 (05:37 +0000)]
Removing this -- complex numbers are now builtin,
and there is already a similar demo in Demo/classes/Complex.py.
Guido van Rossum [Fri, 21 Feb 1997 15:19:03 +0000 (15:19 +0000)]
Change all three fopen calls to use binary mode.
Guido van Rossum [Fri, 21 Feb 1997 01:22:47 +0000 (01:22 +0000)]
Lee's next version. Careful: this now dumps core for me on SGI IRIX 5.3.
Lee is wondering whether to withdraw his patchs. Sigh.
Guido van Rossum [Thu, 20 Feb 1997 16:23:01 +0000 (16:23 +0000)]
Removed nonstandard strftime formats (strftime is tested more
extensively in test_strftime.py anyway).
Jack Jansen [Thu, 20 Feb 1997 15:28:31 +0000 (15:28 +0000)]
Rebuilt everything with Guido's new sources, added a few modules here
and there, etc. These projects are still CW10.