Guido van Rossum
b5dc5e3d7e
Added support for imaginary constants (e.g. 0j, 1j, 1.0j).
1997-03-10 23:17:01 +00:00
Guido van Rossum
c43b685054
Clarify error message for unexpected keyword parameter.
1997-03-10 22:58:23 +00:00
Guido van Rossum
27e280dc77
Restore old behavior of autotest and testall, using regrtest.
...
This is done for backward compatibility with Python 1.4.
1997-03-07 21:05:43 +00:00
Guido van Rossum
f58ed25967
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.
1997-03-07 21:04:33 +00:00
Guido van Rossum
e69be3eb93
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.)
1997-03-07 20:30:03 +00:00
Guido van Rossum
b51eaa183e
Fixed doc string, added __version__, fixed 1 bug.
1997-03-07 00:21:55 +00:00
Guido van Rossum
fc6f5339a9
Ka-Ping's version.
1997-03-07 00:21:12 +00:00
Guido van Rossum
19700b6a98
Add casts to CMPERROR macro to silence SunPro compiler warnings about
...
integer overflow in << operator.
1997-03-05 00:45:43 +00:00
Guido van Rossum
82598051e6
Greatly renamed. Not a very thorough job -- I'm going to restructure
...
it anyway.
1997-03-05 00:20:32 +00:00
Guido van Rossum
159b77fd5e
Add Emacs shell-script directive, SunPro version#, and fix typo
1997-03-04 23:44:15 +00:00
Guido van Rossum
53bb550a5f
Solaris and IRIX specific instructions for fpectl.
1997-03-04 23:36:04 +00:00
Guido van Rossum
f39fc43f31
A few comment alignment and clarifications.
1997-03-04 18:31:47 +00:00
Guido van Rossum
7614da6b87
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!
1997-03-03 19:14:45 +00:00
Guido van Rossum
e9e47796c8
Add global Py_OptimizeFlag.
1997-03-03 19:13:54 +00:00
Guido van Rossum
8e793d925c
Add global Py_OptimizeFlag. SET_LINENO is omitted again unless this is
...
nonzero.
1997-03-03 19:13:14 +00:00
Guido van Rossum
3978d75cca
Added intern()
1997-03-03 16:03:27 +00:00
Guido van Rossum
38e2ec4f14
Added ref to StringIO docs.
1997-03-03 16:03:05 +00:00
Guido van Rossum
3ff7317857
Correct two typos
1997-03-03 16:02:32 +00:00
Guido van Rossum
d90e5b1012
Fix name of PyObject_GetAttrString
1997-03-03 16:02:10 +00:00
Guido van Rossum
cda3d7d0e7
Added (minimal) StringIO docs.
1997-03-03 16:01:21 +00:00
Guido van Rossum
20e4210ec4
Fix up indentation of examples to use 4 spaces instead of tabs.
1997-02-28 16:37:49 +00:00
Guido van Rossum
17e973cb32
Remove the list of Python users, replace it with a pointer to the
...
on-line list of same.
1997-02-26 16:11:55 +00:00
Guido van Rossum
7b6f3435e4
Added new ftp mirror site ftp://ftp.cdrom.com/pub/python/ (Walnut Creek CDROM).
1997-02-25 23:08:03 +00:00
Jack Jansen
827eecd290
Converted to CW11.
1997-02-24 14:03:45 +00:00
Jack Jansen
666212d429
Make cache-alignment work always (in stead of 50% of the time:-)
1997-02-24 14:00:52 +00:00
Jack Jansen
c587301e2e
- Changed GestaltEqu.h to Gestalt.h
...
- Changed FragLoader.h to CodeFragments.h
- Removed Desk.h
1997-02-24 13:59:38 +00:00
Jack Jansen
4a8c54e6d9
- 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)
1997-02-24 13:56:59 +00:00
Jack Jansen
6a528149db
Re-generated from new (CW11) universal headers
1997-02-24 13:52:56 +00:00
Barry Warsaw
fb07f408b6
(python-font-lock-keywords): Use new convention for installing in mode
1997-02-24 03:37:22 +00:00
Guido van Rossum
2a0711d8db
Removing this -- complex numbers are now builtin,
...
and there is already a similar demo in Demo/classes/Complex.py.
1997-02-23 05:37:36 +00:00
Guido van Rossum
5680906cdb
Change all three fopen calls to use binary mode.
1997-02-21 15:19:03 +00:00
Guido van Rossum
05bc4af47d
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.
1997-02-21 01:22:47 +00:00
Guido van Rossum
ad183bbfe6
Removed nonstandard strftime formats (strftime is tested more
...
extensively in test_strftime.py anyway).
1997-02-20 16:23:01 +00:00
Jack Jansen
eea9ab723d
Rebuilt everything with Guido's new sources, added a few modules here
...
and there, etc. These projects are still CW10.
1997-02-20 15:28:31 +00:00
Jack Jansen
ab786562b0
Added calldll module
1997-02-20 15:27:44 +00:00
Jack Jansen
0040b4704e
- Put USE_MAC_DYNAMIC_LOADING beack here in stead of auto-enabling it
...
in importdl.c (I had just one crash too many with a static python
importing a dynamic module)
- On powerpc, enable USE_CACHE_ALIGNED with a linesize of 32 bytes.
1997-02-20 15:25:49 +00:00
Jack Jansen
7e94404081
Only go into eventloop/interrupt check 10 times per second
1997-02-20 15:23:18 +00:00
Jack Jansen
4f27a55e80
Comments around identifier after #endif
1997-02-20 15:22:17 +00:00
Jack Jansen
c1cd2ca999
Added operator, errno and soundex modules.
1997-02-20 15:20:46 +00:00
Jack Jansen
e0e1f1a25d
Redid arg/return handling (still not as I would like it to be, though).
1997-02-20 15:18:32 +00:00
Guido van Rossum
78016145d6
Remove some bogus code that would cause a NameError if a -r option was passed.
1997-02-19 20:07:38 +00:00
Guido van Rossum
13ddde0653
Remove %n and %t from the list of standard expectations.
1997-02-19 16:25:52 +00:00
Barry Warsaw
19302de7a0
join(): Wax the incorrect leading comment
1997-02-18 22:06:21 +00:00
Barry Warsaw
7574587587
Document the new join() semantics.
1997-02-18 21:53:53 +00:00
Guido van Rossum
fbd64c8790
Restructured quite a bit, hopefully Lee Busby will find this useful.
...
Also grandly renamed.
Here's the new interface:
When WITH_READLINE is defined, two functions are defined:
- PyOS_GnuReadline (what used to be my_readline() with WITH_READLINE)
- PyOS_ReadlineInit (for Dave Ascher)
Always, these functions are defined:
- PyOS_StdioReadline (what used to be my_readline() without WITH_READLINE)
- PyOS_Readline (the interface used by tokenizer.c and [raw_]input().
There's a global function pointer PyOS_ReadlineFunctionPointer,
initialized to NULL. When PyOS_Readline finds this to be NULL, it
sets it to either PyOS_GnuReadline or PyOS_StdioReadline depending on
which one makes more sense (i.e. it uses GNU only if it is defined
*and* stdin is indeed a tty device).
An embedding program that has its own wishes can set the function
pointer to a function of its own design. It should take a char*
prompt argument (which may be NULL) and return a string *ending in a
\n character* -- or "" for EOF or NULL for a user interrupt.
--Guido van Rossum (home page: http://www.python.org/~guido/ )
1997-02-18 21:53:32 +00:00
Barry Warsaw
384d249006
join(): join one or more path components
1997-02-18 21:53:25 +00:00
Barry Warsaw
736bb0659f
Added a paragraph to describe clear_cache(), and why it's necessary.
1997-02-18 18:59:37 +00:00
Barry Warsaw
cd77df64e6
Document the new get_syntax() function.
1997-02-18 18:54:30 +00:00
Barry Warsaw
b67a25c079
Store the current regex syntax along with the regular expression
...
string as the key to the cache. This means that changing the syntax
will return the correct compiled pattern.
clear_cache(): New function.
1997-02-18 18:52:55 +00:00
Barry Warsaw
909d7c3284
regex_get_syntax(): New module function exported to Python.
1997-02-18 18:48:50 +00:00