summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * stdwinmodule.c (stdwin_done): interface to shutdown stdwin (now this isGuido van Rossum1993-10-181-6/+8
| | | | | | | | | no longer done by config.c). * stdwinmodule.c (initstdwin), config.c (initall): get command line arguments from sys.argv instead of special-casing stdwin in config.c * import.c (get_module): fix core dump when foomodule.o does not define initfoo(). * ChangeLog: documented changes by Sjoerd.
* Makefile, import.c: Lance's alternative module search (allow .pyc fileGuido van Rossum1993-10-151-98/+112
| | | | | | | | | | without .py file); Bill's dynamic loading for SunOS using shared libraries. pwdmodule.c (mkgrent): remove DECREF of uninitialized variable. classobject.c (instance_getattr): Fix case when class lookup returns unbound method instead of function.
* Added widget methods {Height,Width}{,MM}OfScreen.Sjoerd Mullender1993-10-121-1/+1
|
* * Extended X interface: pixmap objects, colormap objects visual objects,Sjoerd Mullender1993-10-111-0/+8
| | | | | | | | image objects, and lots of new methods. * Added counting of allocations and deallocations of builtin types if COUNT_ALLOCS is defined. Had to move calls to NEWREF down in some files. * Bug fix in sorting lists.
* * Makefile: added all: and default: targets.Guido van Rossum1993-07-059-20/+13
| | | | | | | | | | | | * many files: made some functions static; removed "extern int errno;". * frozenmain.c: fixed bugs introduced on 24 June... * flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a (and some old functions that were omitted). * timemodule.c: added MSDOS floatsleep version . * pgenmain.c: changed exit() to goaway() and added defn of goaway(). * intrcheck.c: add hack (to UNIX only) so interrupting 3 times will exit from a hanging program. The second interrupt prints a message explaining this to the user.
* * pythonmain.c: -k option, usage message, more environment flags.Guido van Rossum1993-06-243-8/+57
| | | | | | | | | | | (the latter also in frozenmain.c) * ceval.c: global 'killprint' flag raises exception when printing an expression statement's value (useful for finding stray output) * timemodule.c: add asctime() and ctime(). Change julian date to 1-based origin (as intended and documented). * Removed unused DO_TIMES stuff from timemodule.c. Added 'epoch' and 'day0' globals (year where time.time() == 0 and day of the week the epoch started).
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-174-28/+27
| | | | | | | | | | Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
* * classobject.c: in instance_getattr, don't make a method out of aGuido van Rossum1993-05-252-21/+33
| | | | | | | | | | function found as instance data. * socketmodule.c: added 'flags' argument sendto/recvfrom, rewrite argument parsing in send/recv. * More changes related to access (terminology change: owner instead of class; allow any object as owner; local/global variables are owned by their dictionary, only class/instance data is owned by the class; "from...import *" now only imports objects with public access; etc.)
* * Lots of small changes related to access.Guido van Rossum1993-05-211-8/+49
| | | | | | | * Added "access *: ...", made access work for class methods. * Introduced subclass check: make sure that when calling ClassName.methodname(instance, ...), the instance is an instance of ClassName or of a subclass thereof (this might break some old code!)