Commit Graph

5189 Commits

Author SHA1 Message Date
Guido van Rossum 7b7c578616 Add optional 4th argument to [r]find and [r]index (end of slice). 1997-03-14 04:13:56 +00:00
Guido van Rossum 612316f016 Add a rough list of undocumented stuff at the end. 1997-03-14 04:12:52 +00:00
Guido van Rossum 1f8cee2521 Hint about [\] trick to avoid quad backslashes. 1997-03-14 04:10:13 +00:00
Fred Drake db5a41f16b target libinstall:
Create the .pyo files corresponding to the .py and .pyc files as
	well.
1997-03-13 14:14:29 +00:00
Fred Drake ef8dc06c01 compile(): Use the __debug__ flag to determine the proper filename extension
to use for the cached module code object.
1997-03-13 14:13:16 +00:00
Guido van Rossum 6af0c00ab6 Fix dumb bug calling parsestrplus with wrong node as argument.
Add prototypes for parsestr() and parsestrplus() (unrelated, but
seemed to make sense.)
1997-03-11 21:25:55 +00:00
Guido van Rossum 1c6a459921 Define __debug__ as 0 if -O is given, 1 otherwise. Also test for
errors in initializing the dictionary.
1997-03-11 18:43:26 +00:00
Guido van Rossum 7c53111d5b 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.
1997-03-11 18:42:21 +00:00
Guido van Rossum 0824f63cfc When -O is given, use ".pyo" instead of ".pyc". 1997-03-11 18:37:35 +00:00
Guido van Rossum 80eb3c0202 Zap all env vars beginning with PYTHON to prevent an obvious form of attack. 1997-03-11 18:24:21 +00:00
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