summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* In O_writelines: Replace use of string.joinfields with "".join.Jeremy Hylton2001-02-091-8/+11
|
* Relax the rules for using 'from ... import *' and exec in the presenceJeremy Hylton2001-02-091-1/+1
| | | | | | | | | | | | | | | | | | | of nested functions. Either is allowed in a function if it contains no defs or lambdas or the defs and lambdas it contains have no free variables. If a function is itself nested and has free variables, either is illegal. Revise the symtable to use a PySymtableEntryObject, which holds all the revelent information for a scope, rather than using a bunch of st_cur_XXX pointers in the symtable struct. The changes simplify the internal management of the current symtable scope and of the stack. Added new C source file: Python/symtable.c. (Does the Windows build process need to be updated?) As part of these changes, the initial _symtable module interface introduced in 2.1a2 is replaced. A dictionary of PySymtableEntryObjects are returned.
* set_error(): Handle construction of pyexpat.error exceptions. TheyFred Drake2001-02-081-153/+456
| | | | | | | | | | | | | | now carry a 'code' attribute that gives the Expat error number. Added support for additional handlers for Expat 1.95.*, including XmlDeclHandler, EntityDeclHandler, ElementDeclHandler, and AttlistDeclHandler. Associated constants are in the 'model' sub-object. Added two new attributes to the parser object: ordered_attributes and specified_attributes. These are used to control how attributes are reported and which attributes are reported.
* Remove the optional integer argument to SSL_write; now it will always sendAndrew M. Kuchling2001-02-071-5/+2
| | | | the entire string passed to it
* Patch #103636: Allow writing strings containing null bytes to an SSL socketAndrew M. Kuchling2001-02-061-1/+1
|
* Patch #103523, to make mpz module compile with CygwinAndrew M. Kuchling2001-02-061-1/+2
|
* Support older PYTHON_API_VERSIONs for backwards compatibility.Martin v. Löwis2001-02-062-5/+8
|
* Another _testXXX -> _testcapiXXX renaming.Tim Peters2001-02-041-1/+1
|
* Renamed _testXXX to _testcapiXXX. Jack is my hero -- good call!Tim Peters2001-02-041-3/+3
|
* Superseded by $(srcdir)/Makefile.pre.in.Neil Schemenauer2001-02-031-266/+0
|
* Repair legit compiler warning.Tim Peters2001-02-021-1/+1
|
* fix a couple last-minute bugs in the raw socket supportJeremy Hylton2001-02-021-24/+24
|
* Add minimal interface to symtable: _symtable module.Jeremy Hylton2001-02-021-0/+72
|
* Added new Python C API _test module to the build mechanism on Unix.Marc-André Lemburg2001-02-021-0/+1
|
* Patch derived from Trent's 101162: a Python/C API testing framework.Tim Peters2001-02-021-0/+68
| | | | STILL NEEDS UNIX BUILD CHANGES.
* SF patch 101137 from Grant EdwardsJeremy Hylton2001-02-021-3/+93
| | | | | | | | Adds support for raw packets (AF_PACKET) under Linux. I haven't tested this code thoroughly; it compiles and the basic calls all work without crashing. Not sure what to actually do with raw sockets though. Not sure what other platforms this might be useful for.
* Teach Windows build about the _weakref module.Tim Peters2001-02-021-1/+1
|
* An ssl-wrapped socket now returns '' on EOF, just like a regularJeremy Hylton2001-02-011-7/+4
| | | | | | socket -- as suggested by Clarence Gardner. Fix httplib to comply with the new ssl-socket interface.
* move extra arguments to the back of the new.code() arglistJeremy Hylton2001-02-011-7/+24
|
* PEP 205, Weak References -- initial checkin.Fred Drake2001-02-011-0/+757
|
* Add entries for the weakref module to the build control.Fred Drake2001-02-011-0/+1
|
* Docs for new Windows zlib build procedure.Tim Peters2001-01-311-8/+1
|
* Fix [ Bug #129293 ] zlib library used for binary win32 distribution can crashMark Hammond2001-01-311-2/+11
| | | | This involves changing the zlib build process to build zlib itself from sources, then use that library. Also updated are the comments to reflect the new official home of zlib, and add Windows specific notes regarding the build process.
* Partial fix to [ Bug #128685 ] popen on Win9x isnt smart enough about ↵Mark Hammond2001-01-311-9/+45
| | | | | | | | finding w9xpopen.exe. "Partial" as the code uses sys.prefix in an attempt to locate 'w9xpopen.exe', but sys.prefix is not set if Python can't find it itself. So this _still_ fails in Pythonwin, but I am committing the patch for 2 reasons: * Embedded apps that set sys.prefix or use PYTHONHOME will work * The exception raised on failure to find the executable is far more obvious
* Fix Bug #125891 - os.popen2,3 and 4 leaked file objects on Windows.Mark Hammond2001-01-311-0/+5
|
* Cleanup logic a little. Check args first, then try to create theJeremy Hylton2001-01-291-4/+3
| | | | object. This avoids creation + decref if bogus arguments are passed.
* Patch #103485 from Donn Cave: patches to make the module compile on AIX andAndrew M. Kuchling2001-01-291-0/+36
| | | | NetBSD
* Rename 'lines' variable to 'nlines' to avoid conflict with a macro definedAndrew M. Kuchling2001-01-291-7/+7
| | | | in term.h
* Add back most of the old contents of Setup.dist, with all the modulesAndrew M. Kuchling2001-01-291-2/+368
| | | | commented out.
* Bug #130117: add a prototype required to compile cleanly on IRIXAndrew M. Kuchling2001-01-281-0/+1
| | | | (contributed by Paul Jackson)
* new_instance(): Use PyInstance_NewRaw() instead of knowing too muchFred Drake2001-01-281-15/+17
| | | | | about the internal initialization of instance objects. Make the dict parameter optional, and allow None as equivalent to omission.
* Fix a typo.Neil Schemenauer2001-01-271-1/+1
|
* init_curses_panel(): Be more consistent with indentation and blank lines.Fred Drake2001-01-271-5/+3
|
* Bug #129904: Put back the path component for the Tkinter modulesAndrew M. Kuchling2001-01-271-0/+3
|
* - Use PY_CFLAGS when compile modules that will be part of the interpreter.Neil Schemenauer2001-01-261-3/+5
| | | | - Put shared modules in the same place as object files.
* Correct one-line typo, reported by yole @ SF, bug 130077.Guido van Rossum2001-01-251-1/+1
|
* Fix arguments for PyFrame_New(). The previous checkin used the wrongJeremy Hylton2001-01-251-1/+0
| | | | arguments, which were based on an interim development API.
* PEP 227 implementationJeremy Hylton2001-01-252-4/+13
| | | | Track changes to PyFrame_New() and PyFuntion_New().
* Let's keep things portable to non GCC compilers, please.Sjoerd Mullender2001-01-251-22/+22
| | | | You can only use mult-line strings in C if each line ends in \.
* lockf_doc: a much better description of the lockf() function, based onBarry Warsaw2001-01-251-4/+23
| | | | an eyeballing of the code.
* The array type was missing the Py_TPFLAGS_DEFAULT initializer for theGuido van Rossum2001-01-241-1/+1
| | | | | tp_flags. This will become important when I introduce Py_TPFLAGS_HAVE_RICHCOMPARE (as I should have!).
* Changes for flat makefile. Building of modules happens from toplevelNeil Schemenauer2001-01-241-12/+16
| | | | | | | directory. Modify meaning of -s option to specify the Modules directory. Add -l option to specify library source directory when building extension modules. Perhaps these names should be switched to avoid breaking old code. Add -c compiler option to when emitting rules to build object files.
* Build now happens in toplevel directory, not Modules. Don't monkey withNeil Schemenauer2001-01-241-12/+1
| | | | VPATH.
* ucnhash is no longer usedFredrik Lundh2001-01-241-22/+0
|
* ucnhash is no longer usedFredrik Lundh2001-01-241-2/+1
|
* Move uchhash functionality into unicodedata (after the recentFredrik Lundh2001-01-242-212/+229
| | | | | crop of changes, the files are small enough to do this). Also adds "name" and "lookup" functions to unicodedata.
* _PyImport_Inittab: define the exceptions module's init function.Barry Warsaw2001-01-231-1/+1
| | | | Fixes bug #121706.
* Clean up some comments and the default VERSION.Guido van Rossum2001-01-231-3/+2
|
* Get rid of weird @SET_CXX@ and @SET_DLLLIBRARY@ macro occurrences.Guido van Rossum2001-01-231-2/+2
|
* Use PyThreadState_DeleteCurrent() instead of PyThreadState_Delete()Guido van Rossum2001-01-231-2/+1
| | | | | | | and PyEval_ReleaseThread(). This fixes SF bug #125673 PyThreadState_Delete: invalid tstate (Unix only?).