summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Add -3 warnings that set.copy(), dict.copy(), and defaultdict.copy() will go ↵Raymond Hettinger2008-02-091-2/+12
| | | | away in Py3.x
* Update big5hkscs codec to conform to the HKSCS:2004 revision.Hye-Shik Chang2008-02-082-1797/+1875
|
* issue 2045: Infinite recursion when printing a subclass of defaultdict,Amaury Forgeot d'Arc2008-02-081-1/+11
| | | | | | if default_factory is set to a bound method. Will backport.
* Make sure a switch statement does not have repetitive case statements.Brett Cannon2008-02-071-0/+2
| | | | Error found through LLVM post-2.1 svn.
* Fixed refcounts and error handling.Thomas Heller2008-02-061-8/+12
| | | | Should not be merged to py3k branch.
* Another int -> pid_t caseChristian Heimes2008-02-031-1/+2
|
* Merge this fix from the pybsddb tree:Gregory P. Smith2008-02-031-2/+6
| | | | | | | r293 | jcea | 2008-01-31 01:08:19 -0800 (Thu, 31 Jan 2008) | 4 lines Solved memory leak when using cursors with databases without environment.
* The wrapper function is supposed to be for spawnvpe() so that'sAndrew MacIntyre2008-02-031-2/+2
| | | | | | what we should call [this wrapper only available on OS/2]. Backport candidate to 2.5.
* Neaten-up a bit.Raymond Hettinger2008-02-021-5/+1
|
* More int -> pid_t.Christian Heimes2008-02-011-11/+18
|
* Move __builtins__.trunc() to math.trunc() perJeffrey Yasskin2008-02-011-0/+16
| | | | | http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965.
* Fixed bug #1983: Return from fork() is pid_t, not intChristian Heimes2008-01-311-6/+7
|
* Revert rev. 59925, it breaks comtypes (I need to further examine this).Thomas Heller2008-01-281-5/+0
|
* static PyObject* variables should use PyString_InternFromString() instead of ↵Christian Heimes2008-01-282-5/+5
| | | | PyObject_FromString() to store a python string in a function level static var.
* Update to newer version of ffi. Fixes crashes and test failures of longdoubleNeal Norwitz2008-01-272-16/+48
|
* Initialize variable to prevent warning on some platform/config.Neal Norwitz2008-01-271-2/+2
|
* Use int for the sign rather than a char. char can be signed or unsigned.Neal Norwitz2008-01-271-1/+1
| | | | It's system dependent. This might fix the problem with test_rfind failing.
* Mostly reformat. Also set an error and return NULL if neither MS_WINDOWSNeal Norwitz2008-01-271-15/+13
| | | | nor UNIX is defined. This may have caused problems on cygwin.
* Cleanup the code a bit. test_rfind is failing on PPC and PPC64 buildbots,Neal Norwitz2008-01-261-7/+7
| | | | this might fix the problem.
* #1940: make it possible to use curses.filter() before curses.initscr()Georg Brandl2008-01-261-1/+10
| | | | as the documentation says.
* setup.py doesn't pick up changes to a header fileChristian Heimes2008-01-251-4/+4
|
* Backport of several functions from Python 3.0 to 2.6 including ↵Christian Heimes2008-01-251-0/+927
| | | | | | | PyUnicode_FromString, PyUnicode_Format and PyLong_From/AsSsize_t. The functions are partly required for the backport of the bytearray type and _fileio module. They should also make it easier to port C to 3.0. First chapter of the Python 3.0 io framework back port: _fileio The next step depends on a working bytearray type which itself depends on a backport of the nwe buffer API.
* Add prototypes to get the mathmodule.c to compile on OSF1 5.1 (Tru64)Neal Norwitz2008-01-251-0/+5
| | | | | and eliminate a compiler warning in floatobject.c. There might be a better way to go about this, but it should be good enough for now.
* Invert the checks in get_[u]long and get_[u]longlong. The intent wasThomas Heller2008-01-241-19/+15
| | | | | | | to not accept float types; the result was that integer-like objects were not accepted. Ported from release25-maint.
* Replace Py_BuildValue with PyTuple_Pack because it is faster.Thomas Heller2008-01-241-7/+10
| | | | Also add a missing DECREF.
* Use a PyDictObject again for the array type cache; retrieving itemsThomas Heller2008-01-241-16/+137
| | | | | | | | from the WeakValueDictionary was slower by nearly a factor of 3. To avoid leaks, weakref proxies for the array types are put into the cache dict, with weakref callbacks that removes the entries when the type goes away.
* Fix misleading comment reported in issue #1917.Guido van Rossum2008-01-231-1/+1
|
* patch 1754489 by vlahan:Armin Rigo2008-01-231-2/+2
| | | | improve portability of address length calculation for AF_UNIX sockets
* Use Py_TYPE() instead of ->ob_typeChristian Heimes2008-01-231-1/+1
|
* Fix for #1087741 patch.Georg Brandl2008-01-221-1/+1
|
* Reformat some ugly code.Georg Brandl2008-01-211-26/+39
|
* Patch #1720595: add T_BOOL to the range of structmember types.Georg Brandl2008-01-211-2/+5
| | | | Patch by Angelo Mottola, reviewed by MvL, tests by me.
* #1087741: make mmap.mmap the type of mmap objects, not aGeorg Brandl2008-01-211-20/+27
| | | | factory function. Allow it to be subclassed.
* Switch mmap from old Py_FindMethod to new PyObject_GenericGetAttr attribute ↵Georg Brandl2008-01-201-10/+36
| | | | | | access. Fixes #1087735.
* #1509: fix sqlite3 docstrings and docs w.r.t. cursor.fetchXXX methods.Georg Brandl2008-01-191-3/+3
|
* Patch #1019808 from Federico Schwindt: Return correct socket error whenAndrew M. Kuchling2008-01-191-9/+16
| | | | | | | | a default timeout has been set, by using getsockopt() to get the error condition (instead of trying another connect() call, which seems to be a Linuxism). 2.5 bugfix candidate, assuming no one reports any problems with this change.
* #1663329: add os.closerange() to close a range of fds,Georg Brandl2008-01-191-0/+19
| | | | | ignoring errors, and use this in subprocess to speed up subprocess creation in close_fds mode. Patch by Mike Klaas.
* Patch #976880: add mmap .rfind() method, and 'end' paramter to .find().Andrew M. Kuchling2008-01-191-5/+34
| | | | Contributed by John Lenton.
* Silence Coverity false alerts with CIDs #172, #183, #184Christian Heimes2008-01-181-1/+2
|
* Coverity CID #168Christian Heimes2008-01-181-0/+1
| | | | leaked_storage: Returned without freeing storage "fp"
* Coverity issue CID #182Christian Heimes2008-01-181-0/+10
| | | | size_error: Allocating 1 bytes to pointer "children", which needs at least 4 bytes
* Coverity issue CID #197Christian Heimes2008-01-181-0/+2
| | | | | var_decl: Declared variable "stm" without initializer ninit_use_in_call: Using uninitialized value "stm" (field "stm".tm_zone uninitialized) in call to function "mktime"
* clearcache() needs to remove the dict as well as clear it.Raymond Hettinger2008-01-181-2/+1
|
* Fix a function pointer declaration to silence the compiler.Brett Cannon2008-01-171-1/+1
|
* Make starmap() match its pure python definition and accept any itertable ↵Raymond Hettinger2008-01-171-3/+4
| | | | input (not just tuples).
* Use 'g' instead of 'D' as the ctypes typecode for c_longdouble, forThomas Heller2008-01-162-4/+4
| | | | compliance with PEP 3118.
* Raise a TypeError instead of a ValueError when too many initializersThomas Heller2008-01-161-1/+1
| | | | are used in a Structure or Union constructor.
* Raise a TypeError if conflicting positional and named arguments areThomas Heller2008-01-161-0/+15
| | | | passed to a Structure or Union constructor.
* Convert the internal ctypes array type cache to a WeakValueDict soThomas Heller2008-01-161-10/+20
| | | | that array types do not live longer than needed.
* Issue 1821: configure libffi for amd64 on FreeeBSD.Thomas Heller2008-01-142-104/+57
|