summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Wrap a bunch of long lines.Fred Drake2001-02-191-13/+23
|
* renamed internal functions to avoid name clashes under OpenVMSFredrik Lundh2001-02-181-17/+18
| | | | (fixes bug #132815)
* stupid typo (for some reason, this only caused problems on OpenVMS).Fredrik Lundh2001-02-181-1/+1
|
* Move docstrings out of function table to constants defined near theFred Drake2001-02-181-11/+23
| | | | function implementations.
* Bug #132816: Compiler warning in PYEXPAT.C for extra ';'Tim Peters2001-02-171-5/+5
| | | | Removed trailing ";" in instances of "};" closing code blocks.
* Remove the old version of my_StartElementHandler(). This was conditionallyFred Drake2001-02-161-17/+0
| | | | | | compiled only for some versions of Expat, but was no longer needed as the new implementation works for all versions. Keeping it created multiple definitions for Expat 1.2, which caused compilation to fail.
* Remove a hard coded Python version, and a now incorrect relative path. ClosesNeil Schemenauer2001-02-161-2/+1
| | | | SF patch #103680.
* Moved BeOS/ar-fake and BeOS/linkmodule to Modules/ar_beos andNeil Schemenauer2001-02-162-0/+152
| | | | Modules/ld_so_beos. Closes SF patch #103679.
* Add a few more missing prototypes to the SunOS 4.1.4 section (no SFThomas Wouters2001-02-151-0/+3
| | | | | bugreport, just an IRC one by Marion Delgado.) These prototypes are necessary because the functions are tossed around, not just called.
* xmlparseobject: Remove the unused conv_attrs field, added anFred Drake2001-02-141-87/+156
| | | | | | | | | | | | | | | | | | | | | | | | in_callback field that's set to true whenever a callback into an event handler is true. Needed for: set_error(): Add line number of offset information to the exception as attributes, so users don't need to parse the text of the message. set_error_attr(): New helper function for set_error(). xmlparse_GetInputContext(): New function of the parser object; returns the document source for an event during a callback, None at all other times. xmlparse_SetParamEntityParsing(): Make the signature consistent with the other parser methods (use xmlparseobject* for self instead of PyObject*). initpyexpat(): Don't lose the reference to the exception class! call_with_frame(), getcode(): Re-indent to be consistent with the rest of the file.
* Related to SF bug 132008 (PyList_Reverse blows up).Tim Peters2001-02-121-0/+46
| | | | | | | | _testcapimodule.c make sure PyList_Reverse doesn't blow up again getargs.c assert args isn't NULL at the top of vgetargs1 instead of waiting for a NULL-pointer dereference at the end
* Richard Fish <rfish@users.sourceforge.net>:Fred Drake2001-02-121-33/+39
| | | | | | | | Fix the .binary() method of mpz objects for 64-bit systems. [Also removed a lot of trailing whitespace elsewhere in the file. --FLD] This closes SF patch #103547.
* 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().