summaryrefslogtreecommitdiff
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* call err_clear in err_setvalGuido van Rossum1994-11-101-2/+2
|
* fix pow() core dumpGuido van Rossum1994-11-101-1/+1
|
* add getargs.o:getargs.c ruleGuido van Rossum1994-10-111-0/+1
|
* Plug memory leak for code objectsGuido van Rossum1994-10-051-0/+1
|
* * Python/ceval.c, Include/ceval.h: promote MakePendingCalls toGuido van Rossum1994-09-292-10/+48
| | | | | | | | | | 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)
* * Python/{modsupport.c,getargs.c,Makefile.in},Guido van Rossum1994-09-293-341/+588
| | | | | | | 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
* * Python/errors.c (err_clear): clear interpreter stack traceGuido van Rossum1994-09-291-1/+5
|
* * Python/pythonrun.c: add string "Python" to fatal error messageGuido van Rossum1994-09-291-1/+1
|
* * Python/pythonmain.c: fatal error if can't alloc mem for -cGuido van Rossum1994-09-291-1/+2
| | | | string
* * Python/traceback.c: security fix -- check for buffer oveflowGuido van Rossum1994-09-291-1/+6
| | | | before concatenating sys.path item and module name
* Fix various potential buffer overrun problems.Guido van Rossum1994-09-261-9/+18
|
* * Python/pythonrun.c (print_error): print only last line ofGuido van Rossum1994-09-191-0/+12
| | | | multi-line source line
* * Python/ceval.c (eval_code): added registry of pending functionsGuido van Rossum1994-09-141-1/+91
| | | | | (to be used by functions that are called asynchronously, like UNIX signal handlers or Mac I/O completion routines)
* * Import/pythonrun.h, Python/{import,pythonrun}.c,Guido van Rossum1994-09-142-1/+58
| | | | | | 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
* Mods for HP-UX dynamic loading.Guido van Rossum1994-09-121-1/+42
|
* added Py_AtExit() -- register cleanup functions for C modulesGuido van Rossum1994-09-071-0/+16
|
* * Python/getmtime.c: Remove mac specifics (Mac subdirectory hasGuido van Rossum1994-08-302-17/+2
| | | | | | its own version now) * Python/bltinmodule.c (builtin_tuple): use pre-existing listtuple(v) for lists
* Merge back to main trunkGuido van Rossum1994-08-301-78/+94
|
* Merge back to main trunkGuido van Rossum1994-08-3011-649/+275
|
* call_object: print message before abort()Guido van Rossum1994-08-301-157/+144
|
* * Python/import.c: support *.o/*.so as alternative forGuido van Rossum1994-08-291-68/+332
| | | | | | | | | | | | | | *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
* Added delattr()Guido van Rossum1994-08-291-0/+16
|
* * Python/bltinmodule.c: added tuple() builtinGuido van Rossum1994-08-291-0/+71
|
* Python/bltinmodule.c: mods by Andrew Kuchling to implementGuido van Rossum1994-08-291-5/+18
| | | | pow(x,y,z) == pow(x,y)%z, but without incurring overflow
* * Python/bltinmodule.c (builtin_vars): correct typo in error msgGuido van Rossum1994-08-291-101/+211
|
* * Python/pythonrun.c (print_error): added INCREF/DECREF pair --Guido van Rossum1994-08-291-82/+170
| | | | | | the exception returned by a syntax error (when reported) would contain an object with refcnt zero! MPW changes
* * Python/compile.c (com_argdefs, com_arglist): avoid referencingGuido van Rossum1994-08-291-156/+303
| | | | CHILD(n,i) for i >= NCH(n)
* err_clear: clear interpreter stack traceGuido van Rossum1994-08-291-40/+7
|
* add function name to traceback infoGuido van Rossum1994-08-291-15/+15
| | | | MPW fixes
* MPW changesGuido van Rossum1994-08-291-5/+0
|
* errors.c: clear traceback too.Guido van Rossum1994-08-191-1/+2
| | | | Makefile.in: remove lib*.a before creating new one.
* version.c is no longer...Guido van Rossum1994-08-181-1/+0
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-015-32/+79
|
* Replace intrcheck() by sigcheck() in many places.Guido van Rossum1994-06-031-0/+43
| | | | | | | | | In Pythonrun, tirn off SIGPIPE and move signal handlers elsewhere. In ceval.c, also move locals_2_fast/ fast_2_locals to frameobject.c, replaced local variable trace by f->f_trace, got rid of unused mergelocals() and unneeded calls to fast_2_locals, return the variable name on "fast variable not found", AND use "__call__" method if it exists to call an inmstance. Whew!
* Fix waiting for children -- save ppid in pidlist as well.Guido van Rossum1994-05-301-14/+34
|
* ceval.c: dict of local mapping is now a tupleGuido van Rossum1994-05-236-6/+43
| | | | | | | compile.c: lists and dictionary in code objects become tuples import.c: bump MAGIC thread*.[ch]: added thread_ident() function version.c: added '++' to version number and bumped date
* Tim's changes; removed some remaining non-functional ifdefsGuido van Rossum1994-05-113-94/+89
|
* Split thread.c into a number of system-specific files.Guido van Rossum1994-05-096-0/+1409
| | | | Added Tim Peters' pthread version.
* New version handles -o<string> same as -o <string>Guido van Rossum1994-04-281-31/+62
|
* A getopt.c for your amusementGuido van Rossum1994-04-141-0/+54
|
* Misc changes.Guido van Rossum1993-12-241-27/+33
|
* New files.Guido van Rossum1993-12-244-0/+279
|
* * rangeobject.[ch], bltinmodule.c: incorporate new version of rangeGuido van Rossum1993-12-211-1/+1
| | | | object (unchanged from source except "range" -> "xrange").
* New fileGuido van Rossum1993-12-201-0/+75
|
* * mpzmodule.c: cast some methods to the proper type.Guido van Rossum1993-12-172-6/+23
| | | | | | | * traceback.c (tb_print): use sys.tracebacklimit as a maximum number of traceback entries to print (default 1000). * ceval.c (printtraceback): Don't print stack trace header -- this is now done by tb_print().
* Port to Solaris 2.3.Sjoerd Mullender1993-12-031-39/+164
|
* change syntactical position of lambdef (was an atom, now is a test)Guido van Rossum1993-11-302-98/+109
|
* * import.c (get_module): pass .py filename to parse_file, not .pyc filename!Guido van Rossum1993-11-304-713/+682
| | | | | | | | | | | * funcobject.c (func_repr): don't call getstringvalue(None) for anonymous functions. * bltinmodule.c: removed lambda (which is now a built-in function); removed implied lambda for string arg to filter/map/reduce. * Grammar, graminit.[ch], compile.[ch]: replaced lambda as built-in function by lambda as grammar entity: instead of "lambda('x: x+1')" you write "lambda x: x+1". * Xtmodule.c (checkargdict): return 0, not NULL, for error.
* * timemodule.c: Add hack for Solaris 2.Guido van Rossum1993-11-232-2/+2
| | | | | | | | | | | | | | | * posixmodule.c: don't prototype getcwd() -- it's not portable... * mappingobject.c: double-check validity of last_name_char in dict{lookup,insert,remove}. * arraymodule.c: need memmove only for non-STDC Suns. * Makefile: comment out HTML_LIBS and XT_USE by default * pythonmain.c: don't prototype getopt() -- it's not standardized * socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to recvfrom() to (ANY*). * pythonrun.c (initsigs): fix prototype, make it static * intobject.c (LONG_BIT): only #define it if not already defined * classobject.[ch]: remove all references to unused instance_convert() * mappingobject.c (getmappingsize): Don't return NULL in int function.
* * import.c (get_module): total rewrite, to ensure proper search order: forGuido van Rossum1993-11-171-172/+185
| | | | | | | | | | | | | each dir in sys.path, try each possible extension. (Note: C extensions are loaded before Python modules in the same directory, to allow having a C version used when dynamic loading is supported and a Python version as a back-up.) * import.c (reload_module): test for error from getmodulename() * moduleobject.c: implement module name as dict entry '__name__' instead of special-casing it in module_getattr(); this way a module (or function!) can access its own module name, and programs that know what they are doing can rename modules. * stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].