Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More int -> pid_t. | Christian Heimes | 2008-02-01 | 1 | -11/+18 |
| | |||||
* | Move __builtins__.trunc() to math.trunc() per | Jeffrey Yasskin | 2008-02-01 | 1 | -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 int | Christian Heimes | 2008-01-31 | 1 | -6/+7 |
| | |||||
* | Revert rev. 59925, it breaks comtypes (I need to further examine this). | Thomas Heller | 2008-01-28 | 1 | -5/+0 |
| | |||||
* | static PyObject* variables should use PyString_InternFromString() instead of ↵ | Christian Heimes | 2008-01-28 | 2 | -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 longdouble | Neal Norwitz | 2008-01-27 | 2 | -16/+48 |
| | |||||
* | Initialize variable to prevent warning on some platform/config. | Neal Norwitz | 2008-01-27 | 1 | -2/+2 |
| | |||||
* | Use int for the sign rather than a char. char can be signed or unsigned. | Neal Norwitz | 2008-01-27 | 1 | -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_WINDOWS | Neal Norwitz | 2008-01-27 | 1 | -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 Norwitz | 2008-01-26 | 1 | -7/+7 |
| | | | | this might fix the problem. | ||||
* | #1940: make it possible to use curses.filter() before curses.initscr() | Georg Brandl | 2008-01-26 | 1 | -1/+10 |
| | | | | as the documentation says. | ||||
* | setup.py doesn't pick up changes to a header file | Christian Heimes | 2008-01-25 | 1 | -4/+4 |
| | |||||
* | Backport of several functions from Python 3.0 to 2.6 including ↵ | Christian Heimes | 2008-01-25 | 1 | -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 Norwitz | 2008-01-25 | 1 | -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 was | Thomas Heller | 2008-01-24 | 1 | -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 Heller | 2008-01-24 | 1 | -7/+10 |
| | | | | Also add a missing DECREF. | ||||
* | Use a PyDictObject again for the array type cache; retrieving items | Thomas Heller | 2008-01-24 | 1 | -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 Rossum | 2008-01-23 | 1 | -1/+1 |
| | |||||
* | patch 1754489 by vlahan: | Armin Rigo | 2008-01-23 | 1 | -2/+2 |
| | | | | improve portability of address length calculation for AF_UNIX sockets | ||||
* | Use Py_TYPE() instead of ->ob_type | Christian Heimes | 2008-01-23 | 1 | -1/+1 |
| | |||||
* | Fix for #1087741 patch. | Georg Brandl | 2008-01-22 | 1 | -1/+1 |
| | |||||
* | Reformat some ugly code. | Georg Brandl | 2008-01-21 | 1 | -26/+39 |
| | |||||
* | Patch #1720595: add T_BOOL to the range of structmember types. | Georg Brandl | 2008-01-21 | 1 | -2/+5 |
| | | | | Patch by Angelo Mottola, reviewed by MvL, tests by me. | ||||
* | #1087741: make mmap.mmap the type of mmap objects, not a | Georg Brandl | 2008-01-21 | 1 | -20/+27 |
| | | | | factory function. Allow it to be subclassed. | ||||
* | Switch mmap from old Py_FindMethod to new PyObject_GenericGetAttr attribute ↵ | Georg Brandl | 2008-01-20 | 1 | -10/+36 |
| | | | | | | access. Fixes #1087735. | ||||
* | #1509: fix sqlite3 docstrings and docs w.r.t. cursor.fetchXXX methods. | Georg Brandl | 2008-01-19 | 1 | -3/+3 |
| | |||||
* | Patch #1019808 from Federico Schwindt: Return correct socket error when | Andrew M. Kuchling | 2008-01-19 | 1 | -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 Brandl | 2008-01-19 | 1 | -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. Kuchling | 2008-01-19 | 1 | -5/+34 |
| | | | | Contributed by John Lenton. | ||||
* | Silence Coverity false alerts with CIDs #172, #183, #184 | Christian Heimes | 2008-01-18 | 1 | -1/+2 |
| | |||||
* | Coverity CID #168 | Christian Heimes | 2008-01-18 | 1 | -0/+1 |
| | | | | leaked_storage: Returned without freeing storage "fp" | ||||
* | Coverity issue CID #182 | Christian Heimes | 2008-01-18 | 1 | -0/+10 |
| | | | | size_error: Allocating 1 bytes to pointer "children", which needs at least 4 bytes | ||||
* | Coverity issue CID #197 | Christian Heimes | 2008-01-18 | 1 | -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 Hettinger | 2008-01-18 | 1 | -2/+1 |
| | |||||
* | Fix a function pointer declaration to silence the compiler. | Brett Cannon | 2008-01-17 | 1 | -1/+1 |
| | |||||
* | Make starmap() match its pure python definition and accept any itertable ↵ | Raymond Hettinger | 2008-01-17 | 1 | -3/+4 |
| | | | | input (not just tuples). | ||||
* | Use 'g' instead of 'D' as the ctypes typecode for c_longdouble, for | Thomas Heller | 2008-01-16 | 2 | -4/+4 |
| | | | | compliance with PEP 3118. | ||||
* | Raise a TypeError instead of a ValueError when too many initializers | Thomas Heller | 2008-01-16 | 1 | -1/+1 |
| | | | | are used in a Structure or Union constructor. | ||||
* | Raise a TypeError if conflicting positional and named arguments are | Thomas Heller | 2008-01-16 | 1 | -0/+15 |
| | | | | passed to a Structure or Union constructor. | ||||
* | Convert the internal ctypes array type cache to a WeakValueDict so | Thomas Heller | 2008-01-16 | 1 | -10/+20 |
| | | | | that array types do not live longer than needed. | ||||
* | Issue 1821: configure libffi for amd64 on FreeeBSD. | Thomas Heller | 2008-01-14 | 2 | -104/+57 |
| | |||||
* | ?Why did my tests not notice this before? | Amaury Forgeot d'Arc | 2008-01-14 | 1 | -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'Arc | 2008-01-14 | 2 | -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 Heller | 2008-01-13 | 1 | -4/+7 |
| | |||||
* | Fix a potential 'SystemError: NULL result without error'. | Thomas Heller | 2008-01-11 | 1 | -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 NULL | Thomas Heller | 2008-01-11 | 1 | -0/+5 |
| | | | | | | function pointer is called. Will backport to release25-maint. | ||||
* | Removed unused variable | Christian Heimes | 2008-01-11 | 1 | -1/+1 |
| | |||||
* | Guard definition of TIPC_SUB_CANCEL with an #ifdef. | Georg Brandl | 2008-01-11 | 1 | -1/+4 |
| | |||||
* | Comment-out missing constant (from rev 59819) | Raymond Hettinger | 2008-01-11 | 1 | -1/+1 |
| | |||||
* | Check for fd of -1 to save fsync() and fstat() call | Andrew M. Kuchling | 2008-01-10 | 1 | -2/+4 |
| |