- 30 Nov, 1993 1 commit
-
-
Guido van Rossum authored
* 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.
-
- 23 Nov, 1993 3 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
* 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.
-
Guido van Rossum authored
* lib2.tex: change bogus \\var to \var.
-
- 19 Nov, 1993 1 commit
-
-
Guido van Rossum authored
* Makefile: added 'ext' to 'all' target * ext.tex: more changes towards a readable text * lib4.tex (posix): added set{uid,gid} * lib2.tex (array): restored doc for typecode and itemsize (which were there but not visible for dir())
-
- 17 Nov, 1993 1 commit
-
-
Guido van Rossum authored
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].
-
- 11 Nov, 1993 3 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
* test_grammar.py, testall.out: added test for funny things in string literals * token.py, symbol.py: definitions used with built-in parser module. * tokenize.py: added double-quote recognition
-
- 10 Nov, 1993 2 commits
-
-
Guido van Rossum authored
parser. * mappingobject.c (lookmapping): 'freeslot' was never used due to a bug in the code.
-
Guido van Rossum authored
* {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
-
- 08 Nov, 1993 2 commits
-
-
Sjoerd Mullender authored
Also use CDDB_PATH and CDDB_WRITE_DIR environment variables in cddb.py.
-
Guido van Rossum authored
negative start indices starting from the right. * ftplib.py: debug() -> set_debuglevel(); change demo to use __init__(). * os.py: added execl, execlp, and execvp. * lambda.py: removed (now that we have built-in map, reduce, bagof, lambda) * test_b{1,2}.py, testall.out: added tests for bagof, lambda, map, reduce * commands.py: use os, not posix * test_grammar.py: make it easy to disable non-portable int overflow tests * dis.py: don't abuse range()
-
- 05 Nov, 1993 9 commits
-
-
Guido van Rossum authored
* text2latex.py: automatically put function names in \code{}. * lib.tex, ref.tex, ext.tex, qua.tex, tut.tex: use new P.O.Box number in address.
-
Guido van Rossum authored
(formerly ../misc/{EXTENDING,REFCNT,EMBEDDING}). Also affects Makefile. * text2latex.py: script to do part of the conversion from an plain ASCI text file (in my particular style) to LaTeX. (Chapter/section/subsection headers, and verbatim sections.) * partparse.py, texipre.dat, fix.el, Makefile: Minor cleanup of latex -> info conversion process (at least it works again, and with less debugging output). Removed fix.sh. * lib1.tex (section{Built-in Functions}): adapt description of str() and repr() to new situation. * lib3.tex (Module os): added exec*() variants. * lib3.tex (Module posix): added execve(). * lib2.tex (Module array): documented reality; remove typecode and itemsize, add byteswap, rename read/write to fromfile/tofile, and re-alphabetized. * lib1.tex (Built-in Functions): renamed bagof() to filter().
-
Guido van Rossum authored
* 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!)
-
Guido van Rossum authored
(Also hash, but it doesn't work yet.)
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
- 03 Nov, 1993 1 commit
-
-
Guido van Rossum authored
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().
-
- 02 Nov, 1993 1 commit
-
-
Sjoerd Mullender authored
must be set after timeout is initialized.
-
- 01 Nov, 1993 12 commits
-
-
Guido van Rossum authored
pythonrun.c: added static forward declarations * pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of static routines
-
Guido van Rossum authored
meaning as no 4th argument
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
object.
-
Guido van Rossum authored
-
Guido van Rossum authored
from RFC 1321 here, and point to that RFC instead of a non-existant incompatible file on rsa.com.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Sjoerd Mullender authored
Added ifdefs in stringobject.c for shared strings of length 1. Renamed free_list in tupleobject.c to free_tuples.
-
- 30 Oct, 1993 3 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
- 28 Oct, 1993 1 commit
-
-
Guido van Rossum authored
-