summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* aifc.py: added missing tell() method in AIFC write class;Sjoerd Mullender1993-12-132-47/+569
| | | | | | | use audioop module as backup for cl module when reading or writing u-law compressed files. sunau.py: interface with the same methods as aifc for Sun and NeXT audio files
* Port to Solaris 2.3.Sjoerd Mullender1993-12-034-45/+203
|
* change syntactical position of lambdef (was an atom, now is a test)Guido van Rossum1993-11-303-102/+111
|
* * test_*.py: new lambda syntax (also affects tests for filter, map,Guido van Rossum1993-11-307-32/+112
| | | | | | | | | | reduce) * ftplib.py: added default callback for retrlines; added dir() method * ftplib.py: don't return self in self.connect(); added hack so that if 'CDUP' is not understood, 'CWD ..' is tried. * ftplib.py: second method called init() should have been called connect(); if __init__ sees more than one argument, it will also try to login().
* * import.c (get_module): pass .py filename to parse_file, not .pyc filename!Guido van Rossum1993-11-308-766/+740
| | | | | | | | | | | * 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.
* Fix lay-out of previous fix.Guido van Rossum1993-11-232-4/+8
|
* * timemodule.c: Add hack for Solaris 2.Guido van Rossum1993-11-2311-29/+31
| | | | | | | | | | | | | | | * 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.
* * {lib,ref,ext,tut}.tex: added explicit \date{<date> \\ <release>}.Guido van Rossum1993-11-238-0/+16
| | | | * lib2.tex: change bogus \\var to \var.
* * text2latex.py: call main() instead of always processing ext.tex.Guido van Rossum1993-11-195-105/+449
| | | | | | | | * 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())
* * import.c (get_module): total rewrite, to ensure proper search order: forGuido van Rossum1993-11-173-193/+228
| | | | | | | | | | | | | 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].
* Fix the fix :-(Guido van Rossum1993-11-111-1/+3
|
* Three micro fixes to formatstringGuido van Rossum1993-11-111-5/+4
|
* * test_select.py: (some) tests for built-in select moduleGuido van Rossum1993-11-116-1/+155
| | | | | | * 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
* * parsermodule.c, Makefile, config.c: rudimentary interface to the PythonGuido van Rossum1993-11-104-2/+117
| | | | | | parser. * mappingobject.c (lookmapping): 'freeslot' was never used due to a bug in the code.
* * posixmodule.c: added set{uid,gid}.Guido van Rossum1993-11-107-9/+51
| | | | | | * {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
* Use __init__ instead of init.Sjoerd Mullender1993-11-088-26/+28
| | | | Also use CDDB_PATH and CDDB_WRITE_DIR environment variables in cddb.py.
* * string.py: added rindex(), rfind(); changed index() to interpretGuido van Rossum1993-11-0810-20/+161
| | | | | | | | | | | 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()
* * ext.tex: did most of the tedious changes from plain ASCII text to LaTeX.Guido van Rossum1993-11-0511-558/+632
| | | | | | * 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.
* * ext.tex: documentation for extending, reference counts, and embeddingGuido van Rossum1993-11-0513-161/+1687
| | | | | | | | | | | | | | | | | | (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().
* * mpzmodule.c: removed redundant mpz_print function.Guido van Rossum1993-11-056-41/+51
| | | | | | | | | | | | | | * 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-052-2/+57
| | | | (Also hash, but it doesn't work yet.)
* Added getmappingsize(). (Needed by previous checkin of posixmodule.c)Guido van Rossum1993-11-053-0/+23
|
* Fix stupib bug in concatenationGuido van Rossum1993-11-051-1/+1
|
* Must initialize 'inspect' flagGuido van Rossum1993-11-051-1/+2
|
* Added execve; change getstrarg into getargs with "s" formatGuido van Rossum1993-11-051-10/+99
|
* Fix memory leaks in join & joinfieldsGuido van Rossum1993-11-051-11/+25
|
* * nismodule.c: database keys and values can contain null bytes. be moreGuido van Rossum1993-11-035-36/+101
| | | | | | | | | | 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().
* Fixed a couple of bugs: getargs doesn't use % escapes, and secondsSjoerd Mullender1993-11-021-2/+2
| | | | must be set after timeout is initialized.
* * ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c,Guido van Rossum1993-11-0110-10/+14
| | | | | | pythonrun.c: added static forward declarations * pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of static routines
* * selectmodule.c (select_select): timeout argument may be None with sameGuido van Rossum1993-11-011-6/+12
| | | | meaning as no 4th argument
* * fileobject.c (softspace): fix bug if called with NULL file.Guido van Rossum1993-11-011-1/+1
|
* Hacks for NEXTSTEP.Guido van Rossum1993-11-011-0/+5
|
* * rangeobject.{c,h}, bltinmodule.c: removed non-essential ops from rangeGuido van Rossum1993-11-013-121/+42
| | | | object.
* Replace <<-13 by >>13. Leave old code in #ifdef BUGGY_CODE_BW_COMPAT.Guido van Rossum1993-11-011-0/+15
|
* Simplify life for md5: include (slightly modified) md5.h and md5c.cGuido van Rossum1993-11-013-5/+414
| | | | | from RFC 1321 here, and point to that RFC instead of a non-existant incompatible file on rsa.com.
* Restructured main loop. Etc.Guido van Rossum1993-11-011-174/+161
|
* Major rewrite with new read_* interfacesGuido van Rossum1993-11-011-155/+295
|
* Fix bug in backup inside esc sequence.Guido van Rossum1993-11-011-1/+3
|
* Changed redraw policy.Guido van Rossum1993-11-011-14/+24
|
* Fixed bugs in resizetuple and extended the interface.Sjoerd Mullender1993-11-014-18/+59
| | | | | Added ifdefs in stringobject.c for shared strings of length 1. Renamed free_list in tupleobject.c to free_tuples.
* Added Dates.py and Rev.pyGuido van Rossum1993-10-301-0/+2
|
* Initial revisionGuido van Rossum1993-10-302-0/+322
|
* Fix bug and use __init__Guido van Rossum1993-10-301-9/+4
|
* Initial revisionGuido van Rossum1993-10-285-0/+971
|
* * listobject.c (list_ass_slice): XDECREF instead of DECREF soGuido van Rossum1993-10-272-187/+128
| | | | | | 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.
* * lib3.tex (module string): added rindex().Guido van Rossum1993-10-276-42/+42
| | | | | | | | | * lib1.tex (section{Built-in Functions}): added bagof(), lambda(), map() and reduce(). Repharased apply(). Removed or rephrased references to exec() (now the exec stmt). * lib4.tex: posix.exec --> posix.execv * ref4.tex, ref8.tex, tut.tex: builtin --> __builtin__ * lib3.tex (module string): added atof() and atol(), and ato[fl]_error.
* Committing the correct graminit.c; also changed confusing comments in Grammar.Guido van Rossum1993-10-272-719/+701
|
* *** empty log message ***Guido van Rossum1993-10-272-5/+31
|
* Add coercionsGuido van Rossum1993-10-271-2/+12
|
* Initial revisionGuido van Rossum1993-10-271-0/+341
|