summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* ?Why did my tests not notice this before?Amaury Forgeot d'Arc2008-01-141-1/+1
| | | | | Slots inheritance is very different from OO inheritance. This code lead to infinite recursion on classes derived from StructType.
* As discussed in issue 1700288:Amaury Forgeot d'Arc2008-01-142-2/+2
| | | | | | | ctypes takes some liberties when creating python types: it modifies the types' __dict__ directly, bypassing all the machinery of type objects which deal with special methods. And this broke recent optimisations of method lookup. Now we try to modify the type with more "official" functions.
* Make Modules/socketobject.c compile for Windows again.Thomas Heller2008-01-131-4/+7
|
* Fix a potential 'SystemError: NULL result without error'.Thomas Heller2008-01-111-1/+1
| | | | | | NULL may be a valid return value from PyLong_AsVoidPtr. Will backport to release25-maint.
* Raise an error instead of crashing with a segfault when a NULLThomas Heller2008-01-111-0/+5
| | | | | | function pointer is called. Will backport to release25-maint.
* Removed unused variableChristian Heimes2008-01-111-1/+1
|
* Guard definition of TIPC_SUB_CANCEL with an #ifdef.Georg Brandl2008-01-111-1/+4
|
* Comment-out missing constant (from rev 59819)Raymond Hettinger2008-01-111-1/+1
|
* Check for fd of -1 to save fsync() and fstat() callAndrew M. Kuchling2008-01-101-2/+4
|
* Related to patch #1114: fix another place where attr_t is assumed to be a longAndrew M. Kuchling2008-01-091-4/+9
|