summaryrefslogtreecommitdiff
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* 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].
* * posixmodule.c: added set{uid,gid}.Guido van Rossum1993-11-101-1/+1
| | | | | | * {tuple,list,mapping,array}object.c: call printobject with 0 for flags * compile.c (parsestr): use quote instead of '\'' at one crucial point * arraymodule.c (array_getattr): Added __members__ attribute
* * mpzmodule.c: removed redundant mpz_print function.Guido van Rossum1993-11-052-12/+8
| | | | | | | | | | | | | | * object.[ch], bltinmodule.c, fileobject.c: changed str() to call strobject() which calls an object's __str__ method if it has one. strobject() is also called by writeobject() when PRINT_RAW is passed. * ceval.c: rationalize code for PRINT_ITEM (no change in function!) * funcobject.c, codeobject.c: added compare and hash functionality. Functions with identical code objects and the same global dictionary are equal. Code objects are equal when their code, constants list and names list are identical (i.e. the filename and code name don't count). (hash doesn't work yet since the constants are in a list and lists can't be hashed -- suppose this should really be done with a tuple now we have resizetuple!)
* Added compare operations for functions and code objects.Guido van Rossum1993-11-051-1/+31
| | | | (Also hash, but it doesn't work yet.)
* Must initialize 'inspect' flagGuido van Rossum1993-11-051-1/+2
|
* * nismodule.c: database keys and values can contain null bytes. be moreGuido van Rossum1993-11-031-5/+5
| | | | | | | | | | careful about these. * arraymodule.c: added 8 byte swap; added 'i' format character; added reverse() method; rename read/write to fromfile/tofile. * config.c: Set version to 0.9.9++. * rotormodule.c (r_rand): declare k1..k5 as unsigned longs so the shifts will have a well-defined effect independent of word size. * bltinmodule.c: renamed bagof() to filter().
* * ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c,Guido van Rossum1993-11-012-1/+9
| | | | | | pythonrun.c: added static forward declarations * pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of static routines
* * rangeobject.{c,h}, bltinmodule.c: removed non-essential ops from rangeGuido van Rossum1993-11-011-40/+13
| | | | object.
* Fixed bugs in resizetuple and extended the interface.Sjoerd Mullender1993-11-011-1/+1
| | | | | Added ifdefs in stringobject.c for shared strings of length 1. Renamed free_list in tupleobject.c to free_tuples.
* * listobject.c (list_ass_slice): XDECREF instead of DECREF soGuido van Rossum1993-10-271-182/+123
| | | | | | setlistslice() can be used to cut the unused part out of a freshly made slice (as done by bagof()). [needed by the next mod!] * structural changes to bagof(), map() etc.
* Committing the correct graminit.c; also changed confusing comments in Grammar.Guido van Rossum1993-10-271-717/+700
|
* * compile.[ch]: support for lambda()Guido van Rossum1993-10-263-690/+1326
| | | | | | | | | | * PROTO.h, mymalloc.h: added #ifdefs for TURBOC and GNUC. * allobjects.h: added #include "rangeobject.h" * Grammar: added lambda_input; relaxed syntax for exec. * bltinmodule.c: added bagof, map, reduce, lambda, xrange. * tupleobject.[ch]: added resizetuple(). * rangeobject.[ch]: new object type to speed up range operations (not convinced this is needed!!!)
* Changes to accept double-quoted strings on input.Guido van Rossum1993-10-261-2/+4
|
* * filemodule.c: added writelines() -- analogous to readlines()Guido van Rossum1993-10-251-1/+2
| | | | * import.c: fixed core dump when out-of-date .pyc file encountered (again!)
* import.c: When something is wrong with the .pyc, properly open the .pySjoerd Mullender1993-10-251-26/+31
| | | | | file. object.c: Write allocation statistics to stderr.
* * import.c (MAGIC): Changed magic word to avoid confusion about execGuido van Rossum1993-10-222-2/+2
| | | | | | | function vs. exec statement * bltinmodule.c: renamed the module to __builtin__. * posixmodule.c (posix_execv): renamed exec --> execv since it is now a reserved word.
* Several optimizations and speed improvements.Sjoerd Mullender1993-10-221-7/+5
| | | | cstubs: Use Matrix type instead of float[4][4].
* * bltinmodule.c: removed exec() built-in function.Guido van Rossum1993-10-184-408/+538
| | | | | | | * Grammar: add exec statement; allow testlist in expr statement. * ceval.c, compile.c, opcode.h: support exec statement; avoid optimizing locals when it is used * fileobject.{c,h}: add getfilename() internal function.