summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Rename DEBUG macro to Py_DEBUGGuido van Rossum1996-12-303-9/+9
|
* Moved the raise logic out of the main interpreter loop to a separate function.Guido van Rossum1996-12-101-60/+127
| | | | | | | | | | | | | | | 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.
* Better way to handle 64-bit ints, keeping gcc -Wall happy.Guido van Rossum1996-12-101-30/+18
| | | | Tested with AMK's help.
* Add unistd.h to make gcc -Wall happy.Guido van Rossum1996-12-101-0/+4
|
* Add const to error and newstring functionsGuido van Rossum1996-12-101-1/+1
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-056-28/+38
|
* Support __complex__ method on instances, for complex() conversion.Guido van Rossum1996-12-051-1/+23
| | | | Keep gcc -Wall happy.
* Change the Don Beaudry hack into the Don B + Jim F hack; now, if *any*Guido van Rossum1996-12-051-28/+26
| | | | | | base class is special it gets invoked. Make gcc -Wall happy.
* Some extra flags that an HPUX user wants me to add.Guido van Rossum1996-12-051-2/+2
|
* Tentative changes to make this work better on 64-bit machines.Guido van Rossum1996-12-051-3/+66
| | | | | 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.
* New permission notice, includes CNRI.Guido van Rossum1996-10-2538-495/+761
|
* Forget about Ellipses b/w compatibility.Guido van Rossum1996-10-161-2/+0
|
* Ellipses -> Ellipsis rename (the dictionary really says that it shouldGuido van Rossum1996-10-113-8/+10
| | | | | | | | 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.
* Sjoerd's thread changes (including down_sema typo fix).Guido van Rossum1996-10-088-18/+47
| | | | Note: waitflag not supported on NT.
* Added line number to most compile-time error messages.Guido van Rossum1996-09-171-88/+90
|
* Rationalized MS ifdefsGuido van Rossum1996-09-113-18/+10
|
* Changes to setpythonpath():Guido van Rossum1996-09-101-4/+23
| | | | | Test for / as well as for SEP for MS filenames. Drop trailing separator from sys.path[0] for MS and Unix filenames.
* Stupid bug: complex(x,y) would yield x+xjGuido van Rossum1996-09-071-1/+1
|
* *** empty log message ***Guido van Rossum1996-08-291-0/+26
|
* Needed more includes...Guido van Rossum1996-08-291-6/+3
|
* *** empty log message ***Guido van Rossum1996-08-291-0/+22
|
* typo (#indef -> #undef)Guido van Rossum1996-08-261-1/+1
|
* Afterthough: leave both leading underscores in,Guido van Rossum1996-08-241-5/+5
| | | | so __spam becomes _ClassName__spam.
* Oops need to mangle global statement separatelyGuido van Rossum1996-08-241-0/+7
|
* Name mangling, what the heck!Guido van Rossum1996-08-241-3/+80
|
* Use MS_DLL_ID as sys.winverGuido van Rossum1996-08-231-2/+2
|
* PYTHONWIN -> MS_COREDLLGuido van Rossum1996-08-221-1/+1
|
* Add needed #include <ctype.h>Guido van Rossum1996-08-211-0/+2
|
* Add explicit #undef _POSIX_THREADS for use on Solaris 2.5 (Sjoerd).Guido van Rossum1996-08-211-0/+1
|
* Don't require <dlfcn.h> -- rely on existence of dlopen().Guido van Rossum1996-08-201-1/+3
|
* Always include config.hGuido van Rossum1996-08-196-12/+0
|
* Many little fixes:Guido van Rossum1996-08-191-3/+19
| | | | | | | | - 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
* getprogramname -> Py_GetProgramName.Guido van Rossum1996-08-191-2/+2
|
* Raise TypeError, not KeyError, on unknown keyword argument.Guido van Rossum1996-08-191-2/+1
|
* Added *PyMarshal_WriteObjectToString() (moved the relevant code thereGuido van Rossum1996-08-191-18/+25
| | | | from marshal_loads()).
* Support for keyword arguments (PyArg_ParseTupleAndKeywords) donated byGuido van Rossum1996-08-191-3/+383
| | | | | | | 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).
* Don't test here for negative number to float power; that belongs inGuido van Rossum1996-08-161-9/+0
| | | | floatobject.c.
* Don't die in resizestring() on filter(<func>, "").Guido van Rossum1996-08-161-1/+1
|
* Disable support for access statementGuido van Rossum1996-08-123-589/+567
|
* Insert "./" in front of pathname when it contains no '/' (if USE_SHLIB)Guido van Rossum1996-08-091-0/+6
|
* Changes necessary for AIX.Guido van Rossum1996-08-081-0/+15
|
* Added casts from unsigned char to char when calling rds_object() onGuido van Rossum1996-08-081-2/+2
| | | | frozen code.
* Removed unused var; added error check for ``lambda: x=1''.Guido van Rossum1996-08-081-1/+5
|
* Include mymath.h instead of declaring prototypes for math functions.Guido van Rossum1996-08-081-5/+13
| | | | Fix leak and unchecked error in complex().
* Put definition of _REENTRANT in config.hGuido van Rossum1996-08-011-4/+0
|
* Changes for AIX sharedlibs.Guido van Rossum1996-07-311-14/+120
|
* If NO_DYNAMIC_LINK is defined, load_dynamic_module() will always fail.Guido van Rossum1996-07-311-0/+4
|
* Added _REENTRANT definitionGuido van Rossum1996-07-311-0/+4
|
* Always insert script directory in front of sys.path -- if there's noGuido van Rossum1996-07-301-17/+17
| | | | | sys.argv, insert "". Note that "." is removed as a default component of the path (see changes to getpath.c and Setup.in).
* Better error message if stride used on normal sequence objectGuido van Rossum1996-07-301-2/+10
|