Guido van Rossum
408027ea46
Rename DEBUG macro to Py_DEBUG
1996-12-30 16:17:54 +00:00
Guido van Rossum
0aa9ee65ab
Moved the raise logic out of the main interpreter loop to a separate function.
...
The raise logic has one additional feature: if you raise <class>,
<value> where <value> is not an instance, it will construct an
instance using <value> as argument. If <value> is None, <class> is
instantiated without arguments. If <value> is a tuple, it is used as
the argument list.
This feature is intended to make it easier to upgrade code from using
string exceptions to using class exceptions; without this feature,
you'd have to change every raise statement from ``raise X'' to ``raise
X()'' and from ``raise X, y'' to ``raise X(y)''. The latter is still
the recommended form (because it has no ambiguities about the number
of arguments), but this change makes the transition less painful.
1996-12-10 18:07:35 +00:00
Guido van Rossum
c1547d930f
Better way to handle 64-bit ints, keeping gcc -Wall happy.
...
Tested with AMK's help.
1996-12-10 15:39:04 +00:00
Guido van Rossum
1a2c5cbcc4
Add unistd.h to make gcc -Wall happy.
1996-12-10 15:37:36 +00:00
Guido van Rossum
067998f35e
Add const to error and newstring functions
1996-12-10 15:33:34 +00:00
Guido van Rossum
80bb9655f0
Keep gcc -Wall happy.
1996-12-05 23:27:02 +00:00
Guido van Rossum
ed0af8fe70
Support __complex__ method on instances, for complex() conversion.
...
Keep gcc -Wall happy.
1996-12-05 23:18:18 +00:00
Guido van Rossum
150b2df682
Change the Don Beaudry hack into the Don B + Jim F hack; now, if *any*
...
base class is special it gets invoked.
Make gcc -Wall happy.
1996-12-05 23:17:11 +00:00
Guido van Rossum
3afb5959aa
Some extra flags that an HPUX user wants me to add.
1996-12-05 23:15:35 +00:00
Guido van Rossum
b0c168cbe8
Tentative changes to make this work better on 64-bit machines.
...
A plain int that doesn't fit in 32 bits will be marshalled using a new
type. 32 bits machines can't handle this and will issue a warning.
1996-12-05 23:15:02 +00:00
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
1996-10-25 14:44:06 +00:00
Guido van Rossum
b75fba04c7
Forget about Ellipses b/w compatibility.
1996-10-16 04:18:36 +00:00
Guido van Rossum
e449af7da9
Ellipses -> Ellipsis rename (the dictionary really says that it should
...
be Ellipsis!).
Bumped the API version because a linker-visible symbol is affected.
Old C code will still compile -- there's a b/w compat macro.
Similarly, old Python code will still run, builtin exports both
Ellipses and Ellipsis.
1996-10-11 16:25:41 +00:00
Guido van Rossum
cf1474b73a
Sjoerd's thread changes (including down_sema typo fix).
...
Note: waitflag not supported on NT.
1996-10-08 14:17:53 +00:00
Guido van Rossum
452a9833c9
Added line number to most compile-time error messages.
1996-09-17 14:32:04 +00:00
Guido van Rossum
9b38a145e2
Rationalized MS ifdefs
1996-09-11 23:12:24 +00:00
Guido van Rossum
cc88341e6d
Changes to setpythonpath():
...
Test for / as well as for SEP for MS filenames.
Drop trailing separator from sys.path[0] for MS and Unix filenames.
1996-09-10 14:44:21 +00:00
Guido van Rossum
b072150d7f
Stupid bug: complex(x,y) would yield x+xj
1996-09-07 15:55:27 +00:00
Guido van Rossum
57b1822459
*** empty log message ***
1996-08-29 18:10:41 +00:00
Guido van Rossum
927f6e68fb
Needed more includes...
1996-08-29 18:10:30 +00:00
Guido van Rossum
bae29713ec
*** empty log message ***
1996-08-29 17:48:26 +00:00
Guido van Rossum
6eea32622c
typo (#indef -> #undef)
1996-08-26 14:58:54 +00:00
Guido van Rossum
d8a6d1c2e7
Afterthough: leave both leading underscores in,
...
so __spam becomes _ClassName__spam.
1996-08-24 07:54:27 +00:00
Guido van Rossum
fe2236f3c8
Oops need to mangle global statement separately
1996-08-24 07:29:04 +00:00
Guido van Rossum
8ff077b094
Name mangling, what the heck!
1996-08-24 06:21:31 +00:00
Guido van Rossum
8b9ea873ad
Use MS_DLL_ID as sys.winver
1996-08-23 18:14:47 +00:00
Guido van Rossum
ac279109d4
PYTHONWIN -> MS_COREDLL
1996-08-22 23:10:58 +00:00
Guido van Rossum
c1d5053882
Add needed #include <ctype.h>
1996-08-21 23:38:24 +00:00
Guido van Rossum
f1d7413445
Add explicit #undef _POSIX_THREADS for use on Solaris 2.5 (Sjoerd).
1996-08-21 14:39:29 +00:00
Guido van Rossum
504f4a9901
Don't require <dlfcn.h> -- rely on existence of dlopen().
1996-08-20 19:59:07 +00:00
Guido van Rossum
7cf1fcf347
Always include config.h
1996-08-19 22:12:39 +00:00
Guido van Rossum
1e6124902a
Many little fixes:
...
- support for SCO_SV dynamic loading
- on Mac, auto-detect dynamic loading by __CFM68K__ or _powerc)
- on Mac, long shared library extension is .cfm68k.slb or .ppc.slb
- on hp, don't redefine hpux if already defined
- add __file__ property to successfully loaded module
1996-08-19 22:12:10 +00:00
Guido van Rossum
71bd363d9c
getprogramname -> Py_GetProgramName.
1996-08-19 22:09:38 +00:00
Guido van Rossum
6d43c5de5a
Raise TypeError, not KeyError, on unknown keyword argument.
1996-08-19 22:09:16 +00:00
Guido van Rossum
3f3bb3d3c9
Added *PyMarshal_WriteObjectToString() (moved the relevant code there
...
from marshal_loads()).
1996-08-19 22:07:17 +00:00
Guido van Rossum
aa35465ccf
Support for keyword arguments (PyArg_ParseTupleAndKeywords) donated by
...
Geoff Philbrick <philbric@delphi.hks.com> (slightly changed by me).
Also a little change to make the file acceptable to K&R C compilers
(HPUX, SunOS 4.x).
1996-08-19 19:32:04 +00:00
Guido van Rossum
bf51afa049
Don't test here for negative number to float power; that belongs in
...
floatobject.c.
1996-08-16 20:49:17 +00:00
Guido van Rossum
79d96d6bff
Don't die in resizestring() on filter(<func>, "").
1996-08-16 20:44:34 +00:00
Guido van Rossum
0dfcf753ad
Disable support for access statement
1996-08-12 22:00:53 +00:00
Guido van Rossum
0bbf253e97
Insert "./" in front of pathname when it contains no '/' (if USE_SHLIB)
1996-08-09 20:55:05 +00:00
Guido van Rossum
1a62311cfb
Changes necessary for AIX.
1996-08-08 18:53:41 +00:00
Guido van Rossum
1741d60725
Added casts from unsigned char to char when calling rds_object() on
...
frozen code.
1996-08-08 18:52:59 +00:00
Guido van Rossum
15cc9a0a76
Removed unused var; added error check for ``lambda: x=1''.
1996-08-08 18:51:04 +00:00
Guido van Rossum
fe4b6ee775
Include mymath.h instead of declaring prototypes for math functions.
...
Fix leak and unchecked error in complex().
1996-08-08 18:49:41 +00:00
Guido van Rossum
9caf77a485
Put definition of _REENTRANT in config.h
1996-08-01 00:52:26 +00:00
Guido van Rossum
d5962adb44
Changes for AIX sharedlibs.
1996-07-31 22:44:53 +00:00
Guido van Rossum
3823420ca4
If NO_DYNAMIC_LINK is defined, load_dynamic_module() will always fail.
1996-07-31 17:55:19 +00:00
Guido van Rossum
5e41644ddd
Added _REENTRANT definition
1996-07-31 17:52:04 +00:00
Guido van Rossum
94a9667f1a
Always insert script directory in front of sys.path -- if there's no
...
sys.argv, insert "". Note that "." is removed as a default component
of the path (see changes to getpath.c and Setup.in).
1996-07-30 20:35:50 +00:00
Guido van Rossum
3b9c6677f8
Better error message if stride used on normal sequence object
1996-07-30 18:40:29 +00:00