Guido van Rossum
922d8ff803
Include rename2.h
32 years ago
Guido van Rossum
58b6873f6b
fix subtle refcount big in filter() -- Tim MacKenzie
32 years ago
Guido van Rossum
5524a59b09
move coerce() from bltinmodule.c to object.c and implement builtin_coerce() differently
32 years ago
Guido van Rossum
84eaa8396e
fix globals/locals defaults for eval/execfile
32 years ago
Guido van Rossum
6135a87f2b
__builtins__ mods (and sys_checkinterval for ceval.c)
32 years ago
Guido van Rossum
2565bff40a
Alpha OSF/1 fix
32 years ago
Guido van Rossum
970a0a20b8
api version checking
32 years ago
Guido van Rossum
6da5bfad0f
remove nogus reload check
32 years ago
Guido van Rossum
a0d7a23398
sys.check_interval=x -> sys.setcheckinterval(x)
32 years ago
Guido van Rossum
50620fa9b8
New newmethodobject() interface takes struct methodlist pointer
instead of individual components; initmodule3() now has doc string
argument as well
32 years ago
Guido van Rossum
1f4fa50176
Two independent chages:
(a) support import NAME.NAME...NAME;
(b) support doc strings in modules, classes and function definitions
32 years ago
Guido van Rossum
06186519e5
Use new instancebinop interface
32 years ago
Guido van Rossum
6a00cd8b89
* Python/bltinmodule.c: restructured coerce(), divmod(), pow() to
use new instancebinop interface
32 years ago
Guido van Rossum
a10f512dba
Grammar changed
32 years ago
Guido van Rossum
5fb1da76ff
NT dlls have .pyd extension instead of .dll
32 years ago
Guido van Rossum
6d023c98b0
Added 1995 to copyright message.
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
32 years ago
Guido van Rossum
1ae940a587
Lots of changes, most minor (fatal() instead of abort(), use of
err_fetch/err_restore and so on). But...
NOTE: import.c has been rewritten and all the DL stuff is now in the
new file importdl.c.
32 years ago
Sjoerd Mullender
06fe7e5c2c
Added comment symbols around word after #endif.
32 years ago
Jack Jansen
599f0d1c2c
- Added ability to get at strings embedded in the struct
- For the mac, added ability to get at pascal-style strings
32 years ago
Jack Jansen
e00637bdcf
Removed extraneous fclose() in case of .pyc file argument
32 years ago
Jack Jansen
8fd2d94e37
Added hook for better mac error messages.
32 years ago
Guido van Rossum
69d9eb9f56
replace abort() calls by fatal()
32 years ago
Guido van Rossum
363ac7d5b6
set name to <lambda> instead of None for lambdas
32 years ago
Guido van Rossum
13d0ed13c3
prevent core dump for old getargs() with NULL arg
32 years ago
Guido van Rossum
c054a663eb
call err_clear in err_setval
32 years ago
Guido van Rossum
030ae17582
fix pow() core dump
32 years ago
Guido van Rossum
42a24ef2d7
add getargs.o:getargs.c rule
32 years ago
Guido van Rossum
a44031031c
Plug memory leak for code objects
32 years ago
Guido van Rossum
180d7b4d55
* Python/ceval.c, Include/ceval.h: promote MakePendingCalls to
global: Py_MakePendingCalls. Also guard against recursive calls
* Include/classobject.h, Objects/classobject.c,
Python/{ceval.c,bltinmodule.c}: entirely redone operator
overloading. The rules for class instances are now much more
relaxed than for other built-in types
(whose coerce must still return two objects of the same type)
32 years ago
Guido van Rossum
fe3f1a256b
* Python/{modsupport.c,getargs.c,Makefile.in},
Include/modsupport.h: moved getargs() to its own file and
re-implemented it entirely to support optional arguments, multiple
arguments without surrounding parentheses
(when called as newgetargs()), and better error messages
32 years ago
Guido van Rossum
6989e54ebf
* Python/errors.c (err_clear): clear interpreter stack trace
32 years ago
Guido van Rossum
83dd6c319e
* Python/pythonrun.c: add string "Python" to fatal error message
32 years ago
Guido van Rossum
a66e25dfa3
* Python/pythonmain.c: fatal error if can't alloc mem for -c
string
32 years ago
Guido van Rossum
bfd5d755a0
* Python/traceback.c: security fix -- check for buffer oveflow
before concatenating sys.path item and module name
32 years ago
Guido van Rossum
6c849697fd
Fix various potential buffer overrun problems.
32 years ago
Guido van Rossum
798199d8a6
* Python/pythonrun.c (print_error): print only last line of
multi-line source line
32 years ago
Guido van Rossum
a96720907a
* Python/ceval.c (eval_code): added registry of pending functions
(to be used by functions that are called asynchronously, like
UNIX signal handlers or Mac I/O completion routines)
32 years ago
Guido van Rossum
fdef271550
* Import/pythonrun.h, Python/{import,pythonrun}.c,
mac/macsetfiletype.c: changes by Jack to execute .pyc file passed
as command line argument. On the Mac .pyc files are given a
special type so they can be double-clicked
32 years ago
Guido van Rossum
ae311bd503
Mods for HP-UX dynamic loading.
32 years ago
Guido van Rossum
1662dd5a3d
added Py_AtExit() -- register cleanup functions for C modules
32 years ago
Guido van Rossum
e4ab6475f1
* Python/getmtime.c: Remove mac specifics (Mac subdirectory has
its own version now)
* Python/bltinmodule.c (builtin_tuple): use pre-existing
listtuple(v) for lists
32 years ago
Guido van Rossum
9717991b78
Merge back to main trunk
32 years ago
Guido van Rossum
1d5735e846
Merge back to main trunk
32 years ago
Guido van Rossum
e59214ed91
call_object: print message before abort()
32 years ago
Guido van Rossum
74e6a118ca
* Python/import.c: support *.o/*.so as alternative for
*module.o/*module.so
* Python/import.c: if initializing a module did not enter the
module into sys.modules, it may have raised an exception -- don't
override this exception.
Merged NT changes
* Python/import.c: add lost NT-specific code back in
Fixed NT changes
32 years ago
Guido van Rossum
14144fcdfd
Added delattr()
32 years ago
Guido van Rossum
cae027b298
* Python/bltinmodule.c: added tuple() builtin
32 years ago
Guido van Rossum
df05ac6dfb
Python/bltinmodule.c: mods by Andrew Kuchling to implement
pow(x,y,z) == pow(x,y)%z, but without incurring overflow
32 years ago
Guido van Rossum
2d9518585c
* Python/bltinmodule.c (builtin_vars): correct typo in error msg
32 years ago
Guido van Rossum
a110aa658b
* Python/pythonrun.c (print_error): added INCREF/DECREF pair --
the exception returned by a syntax error (when reported) would
contain an object with refcnt zero!
MPW changes
32 years ago