summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Squash a few calls to the hideously expensive PyObject_CallObject(o,a)Guido van Rossum2002-08-161-1/+1
| | | | | | | -- replace then with slightly faster PyObject_Call(o,a,NULL). (The difference is that the latter requires a to be a tuple; the former allows other values and wraps them in a tuple if necessary; it involves two more levels of C function calls to accomplish all that.)
* base64.decodestring('') should return '' instead of raising anBarry Warsaw2002-08-151-5/+2
| | | | | exception. The bug fix for SF #430849 wasn't quite right. This closes SF bug #595671. I'll backport this to Python 2.2.
* This is my patchMichael W. Hudson2002-08-151-5/+8
| | | | | | | | [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change.
* Patch #505705: Remove eval in pickle and cPickle.Martin v. Löwis2002-08-142-32/+65
|
* Fix memory leaks reported by valgrindNeal Norwitz2002-08-141-1/+7
|
* add some example docstrings using PyDoc_STRSkip Montanaro2002-08-141-8/+8
|
* add PyDoc_STR and PyDoc_STRVAR calls as examples for module authorsSkip Montanaro2002-08-141-6/+18
|
* Allow more docstrings to be removed during compilation in some modulesNeal Norwitz2002-08-134-38/+40
|
* For new-style classes, we can now test for tp_del instead of askingGuido van Rossum2002-08-091-3/+3
| | | | for a __del__ attribute, to see if there's a finalizer.
* On Cygwin, put stdin, stderr, and stdout in binary mode when the -uSjoerd Mullender2002-08-091-2/+2
| | | | flag is given (to mimic native Windows).
* SF bug #592645 fix memory leak in socket.getaddrinfoNeal Norwitz2002-08-091-0/+2
|
* Update the text on the Expat module and library.Fred Drake2002-08-091-17/+9
|
* The other half of the patches added to SF patch 555085 by A IGuido van Rossum2002-08-081-0/+2
| | | | | | MacIntyre. At least on OS/2, a subsequent connect() on a nonblocking socket returns errno==EISCONN to indicate success. This seems harmless on Unix.
* Clean up some docstrings. Some docstrings didn't show their returnGuido van Rossum2002-08-081-10/+11
| | | | | | value; others were inconsistent in what to name the argument or return value; a few module-global functions had "socket." in front of their name, against convention.
* Patch #588561: Cygwin _hotshot patchJason Tishler2002-08-081-2/+4
| | | | | | YA Cygwin module patch very similar to other patches that I have submitted. I tested under Cygwin and Red Hat Linux 7.1.
* Replace abort with Py_FatalError.Martin v. Löwis2002-08-071-1/+1
|
* internal_connect(): Windows. When sock_timeout > 0 and connect() yieldsTim Peters2002-08-061-6/+14
| | | | | | | WSAEWOULDBLOCK, the second connect() attempt appears to yield WSAEISCONN on Win98 but WSAEINVAL on Win2K. So accept either as meaning "yawn, fine". This allows test_socket to succeed on my Win2K box (which it already did on my Win98SE box).
* Mark xreadlines deprecated. Don't use f.xreadlines() in test_iter.py.Guido van Rossum2002-08-061-0/+2
|
* Since the errno module is needed by os._execvpe(), and that is used by theFred Drake2002-08-051-1/+1
| | | | | | | setup.py (indirectly) script to build the standard dynamically loaded modules, the errno module is being made static so it will always be available. Closes SF bug #591205 (needed on trunk only).
* Add trace_frame. Fixes #534864. Backported to 2.2.Martin v. Löwis2002-08-041-0/+38
|
* Add recursion counter for pickling. Fixes #576084.Martin v. Löwis2002-08-041-0/+9
| | | | | 2.2 bugfix candidate (may cause RuntimeError for applications that currently work fine).
* Fix ref(), proxy() docstrings, based on comments from David Abrahams.Fred Drake2002-08-021-3/+4
|
* add #include branch for compilation with Berkeley DBSkip Montanaro2002-08-021-0/+3
|
* Added one call to Py_Main(), for OSX framework builds only, that will get theJack Jansen2002-08-021-1/+17
| | | | | | | | | | | | | actual script to run in case we are running from an applet. If we are indeed running an applet we skip the normal option processing leaving it all to the applet code. This allows us to get use the normal python binary in the Python.app bundle, giving us all the normal command line options through PythonLauncher while still allowing Python.app to be used as the template for building applets. Consequently, pythonforbundle is gone, and Mac/Python/macmain.c isn't used on OSX anymore.
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-0251-59/+68
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* - Get _environ through the NSEnviron call in a MacOSX framework. This allowsJack Jansen2002-08-011-2/+11
| | | | | | | | | us to completely decouple the framework from the executable, so we can use a two-level namespace. - Do framework builds with a twolevel namespace. - Reorganized the code that creates the minimal framework in the build directory, to make it more robust against incomplete frameworks (from earlier aborted builds, or builds of previous Python versions).
* Cray fixup as seen in bug #558153.Michael W. Hudson2002-07-311-2/+2
|
* Revert changes to use PyArg_Parse(), so any sequence will continue to work ↵Neal Norwitz2002-07-301-1/+1
| | | | -- Spotted by Just van Rossum
* Use PyArg_ParseTuple() instead of PyArg_Parse() which is deprecatedNeal Norwitz2002-07-301-1/+1
|
* Fix docstring to be consistent with parameter name (prefix)Neal Norwitz2002-07-301-1/+1
|
* SF patch #584245, get python to link on OSF1 (Dec Unix)Neal Norwitz2002-07-301-2/+2
|
* Fix forMichael W. Hudson2002-07-291-6/+7
| | | | | | [ 587875 ] crash on deleting extended slice The array code got simpler, always a good thing!
* Patch #573770: Implement lchown.Martin v. Löwis2002-07-281-0/+30
|
* Pass length of result structure into setipaddr. Fixes bug #565747.Martin v. Löwis2002-07-281-8/+12
| | | | Committed to 2.2 branch.
* SF patch #577031, remove PyArg_NoArgs() since it's deprecatedNeal Norwitz2002-07-281-439/+437
| | | | Explicitly use METH_OLDARGS
* SF patch #577031, remove PyArg_Parse() since it's deprecatedNeal Norwitz2002-07-281-2/+14
|
* Fix last checkin, can't use " inside a stringNeal Norwitz2002-07-281-1/+1
|
* Patch #552812: Better description in "python -h" for -u.Martin v. Löwis2002-07-281-0/+1
|
* Patch #575827: allow threads inside SSL creation.Martin v. Löwis2002-07-281-4/+19
|
* Put checks for error returns in the right place.Jeremy Hylton2002-07-251-2/+8
|
* Extended socket.htonl and ntohl to accept longs.Jeremy Hylton2002-07-251-15/+53
| | | | | | | Fixes SF bug #568322. The code should raise an OverflowError if the long is > 32 bits, even on platforms where sizeof(long) > 4.
* Replace DL_IMPORT with PyMODINIT_FUNC and remove "/export:init..." linkMark Hammond2002-07-239-10/+10
| | | | | command line for Windows builds. This should allow MSVC to import and build the Python MSVC6 project files without error.
* unpack_string(): avoid a compiler warning (about a real bug!) byGuido van Rossum2002-07-201-1/+4
| | | | | copying the result of fgetc() into an int variable before testing it for EOF.
* Return NULL instead of 0 from function with a pointer return value.Fred Drake2002-07-191-1/+1
|
* Patch to call the Pure python strptime implementation if there's noGuido van Rossum2002-07-191-3/+18
| | | | | | | | C implementation. See SF patch 474274, by Brett Cannon. (As an experiment, I'm adding a line that #undefs HAVE_STRPTIME, so that you'll always get the Python version. This is so that it gets some good exercise. We should eventually delete that line.)
* Bail out early from internal_select() when socket file descriptorGuido van Rossum2002-07-191-0/+5
| | | | closed. Prevents core dump.
* Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.Mark Hammond2002-07-192-5/+3
|
* A Python float is a C double; redeclare defaulttimeout as such; stopsTim Peters2002-07-181-1/+1
| | | | compiler wngs on Windows.
* Silence warning about getdefaulttimeout in PyMethodDef.Guido van Rossum2002-07-181-1/+1
|
* Fix indentation.Jeremy Hylton2002-07-181-5/+5
|