summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* Fix for issue #7072Ronald Oussoren2010-04-181-1/+10
|
* towards beta 2Benjamin Peterson2010-04-101-1/+1
|
* bump version to 2.7b1Benjamin Peterson2010-04-101-3/+3
|
* Capsule-related changes:Larry Hastings2010-04-021-2/+26
| | | | | | | | | | | * PyCObject_AsVoidPtr() can now open capsules. This addresses most of the remaining backwards-compatibility concerns about the conversion of Python 2.7 from CObjects to capsules. * CObjects were marked Pending Deprecation. * Documentation about this pending deprecation was added to cobject.h. * The capsule source files were added to the legacy PC build processes.
* Issue #8276: PyEval_CallObject() is now only available in macro form. TheAntoine Pitrou2010-04-011-4/+0
| | | | | function declaration, which was kept for backwards compatibility reasons, is now removed (the macro was introduced in 1997!).
* Issue #8268: Old-style classes (not just instances) now support weakAntoine Pitrou2010-03-311-0/+1
| | | | references.
* Remove extraneous experimental code checked in by accident.Larry Hastings2010-03-251-92/+0
|
* Backported PyCapsule from 3.1, and converted most uses ofLarry Hastings2010-03-258-22/+168
| | | | CObject to PyCapsule.
* Add support for weak references to code objects. This will be used by an ↵Collin Winter2010-03-181-0/+1
| | | | | | optimization in the incoming Python 3 JIT. Patch by Reid Kleckner!
* post release updateBenjamin Peterson2010-03-061-1/+1
|
* bump version to 2.7a4v2.7a4Benjamin Peterson2010-03-061-2/+2
|
* Issue #7544: Preallocate thread memory before creating the thread to avoid aVictor Stinner2010-03-031-0/+2
| | | | fatal error in low memory condition.
* #4852: Remove dead code in every thread implementation, unused for many years.Amaury Forgeot d'Arc2010-02-231-9/+0
|
* Silence more 'comparison between signed and unsigned' warnings.Mark Dickinson2010-02-141-4/+4
|
* post release updatesBenjamin Peterson2010-02-061-1/+1
|
* bump version to 2.7a3v2.7a3Benjamin Peterson2010-02-061-2/+2
|
* Issue #5677: Explicitly forbid write operations on read-only file objects,Antoine Pitrou2010-02-051-0/+2
| | | | | | and read operations on write-only file objects. On Windows, the system C library would return a bogus result; on Solaris, it was possible to crash the interpreter. Patch by Stefan Krah.
* Issue #7767: Add new C-API function PyLong_AsLongLongAndOverflow, aMark Dickinson2010-01-301-0/+1
| | | | | long long variant of PyLong_AsLongAndOverflow. Patch by Case Van Horsen.
* - Issue #7658: Ensure that the new pythonw executable works on OSX 10.4Ronald Oussoren2010-01-171-1/+1
| | | | | | | | | | | | - Issue #7714: Use ``gcc -dumpversion`` to detect the version of GCC on MacOSX. - Make configure look for util.h as well as libutil.h. The former is the header file that on OSX contains the defition of openpty. (Needed to compile for OSX 10.4 on OSX 10.6) - Use the correct definition of CC to compile the pythonw executable
* Use PyAPI_DATA.Antoine Pitrou2010-01-171-1/+1
|
* Issue #7561: Operations on empty bytearrays (such as `int(bytearray())`)Antoine Pitrou2010-01-171-1/+5
| | | | | | could crash in many places because of the PyByteArray_AS_STRING() macro returning NULL. The macro now returns a statically allocated empty string instead.
* Issue #1967: Backport dictionary views.Alexandre Vassalotti2010-01-111-0/+12
|
* Issue #2333: Backport set and dict comprehensions syntax.Alexandre Vassalotti2010-01-114-8/+29
|
* Issue #2335: Backport set literals syntax from Python 3.x.Alexandre Vassalotti2010-01-093-23/+31
|
* post release version adjustmentBenjamin Peterson2010-01-091-1/+1
|
* bump version to 2.7a2v2.7a2Benjamin Peterson2010-01-091-2/+2
|
* Refactor some longobject internals: PyLong_AsDouble and _PyLong_AsScaledDoubleMark Dickinson2010-01-021-7/+7
| | | | | | | | (the latter renamed to _PyLong_Frexp) now use the same core code. The exponent produced by _PyLong_Frexp now has type Py_ssize_t instead of the previously used int, and no longer needs scaling by PyLong_SHIFT. This frees the math module from having to know anything about the PyLong implementation. This closes issue #5576.
* #7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new ↵Georg Brandl2009-12-281-2/+4
| | | | exceptions a docstring.
* Issue #7518: Move substitute definitions of C99 math functions fromMark Dickinson2009-12-211-19/+3
| | | | pymath.c to Modules/_math.c.
* Issue #7528: Backport PyLong_AsLongAndOverflow from py3k to trunk.Mark Dickinson2009-12-211-0/+1
| | | | Thanks Case Van Horsen for the patch.
* initialize to NULLBenjamin Peterson2009-12-131-1/+1
|
* Replace the size check for PyMem_MALLOC and PyMem_REALLOC with an almostMark Dickinson2009-12-101-2/+2
| | | | | | | | equivalent[*] check that doesn't produce compiler warnings about a 'x < 0' check on an unsigned type. [*] it's equivalent for inputs of type size_t or Py_ssize_t, or any smaller unsigned or signed integer type.
* Fix for issue 7452: HAVE_GCC_ASM_FOR_X87 gets set when doing a universal ↵Ronald Oussoren2009-12-081-0/+5
| | | | | | | build on an i386 based machine, but should only be active when compiling the x86 part of the universal binary.
* post release version bumpBenjamin Peterson2009-12-051-1/+1
|
* bump version to 2.7a1v2.7a1Benjamin Peterson2009-12-051-2/+2
|
* Fix for issue #7416: SIZEOF_UINTPTR_T can be invalid when configuring aRonald Oussoren2009-12-011-0/+6
| | | | | | | | | | multi-architecture build (in particular when the architectures don't share a common pointer size). Fixed the same issue for SIZEOF_PTHREAD_T. (No update to the NEWS file because this is a bugfix for an as yet unreleased feature)
* Include ieeefp.h (when available) in pyport.h instead of individually inMark Dickinson2009-11-281-0/+4
| | | | | | Objects/floatobject.c and Objects/complexobject.c. This should silence compiler warnings about implicit declaration of the 'finite' function on Solaris.
* Enable short float repr!Mark Dickinson2009-11-181-8/+0
|
* Issue #7117, continued: Change round implementation to use the ↵Mark Dickinson2009-11-181-0/+7
| | | | | | | | correctly-rounded string <-> float conversions; this makes sure that the result of the round operation is correctly rounded, and hence displays nicely using the new float repr.
* Issue #7228: Add '%lld' and '%llu' support to PyFormat_FromString,Mark Dickinson2009-11-151-0/+16
| | | | PyFormat_FromStringV and PyErr_Format.
* Issue #7117: Backport missing pystrtod.h declarations from py3k.Mark Dickinson2009-10-261-0/+5
|
* Finished removing _PyOS_double_to_string, as mentioned in issue 7117.Eric Smith2009-10-261-7/+0
|
* Issue #7117: temporarily disable the short float repr while theMark Dickinson2009-10-241-0/+7
| | | | | pieces are being assembled. To re-enable, define the preprocessor symbol PY_SHORT_FLOAT_REPR
* Issue #7117 (backport py3k float repr) continued:Mark Dickinson2009-10-243-0/+85
| | | | | | | | | - add double endianness detection to configure script - add configure-time check to see whether we can use inline assembly to get and set x87 control word in configure script - add functions to get and set x87 control word in Python/pymath.c - add pyport.h logic to determine whether it's safe to use the short float repr or not
* Issue #7117: Prepare for backport of py3k float repr.Mark Dickinson2009-10-242-0/+16
| | | | | | | Add the Python/dtoa.c file containing the main algorithms; add corresponding include file and include in Python.h; include license information for Python/dtoa.c; add dtoa.c and dtoa.h to Makefile.
* http://bugs.python.org/issue6836Kristján Valur Jónsson2009-09-282-3/+10
| | | | The debug memory api now keeps track of which external API (PyMem_* or PyObject_*) was used to allocate each block and treats any API violation as an error. Added separate _PyMem_DebugMalloc functions for the Py_Mem API instead of having it use the _PyObject_DebugMalloc functions.
* Issue #6713: Improve performance of str(n) and repr(n) for integers nMark Dickinson2009-09-161-0/+4
| | | | | (up to 3.1 times faster in tests), by special-casing base 10 in _PyLong_Format. (Backport of r74851 from py3k.)
* Fix issue #1590864, multiple threads and fork() can cause deadlocks, byThomas Wouters2009-09-161-0/+8
| | | | | | | | | | | | | | | | | | | | | | acquiring the import lock around fork() calls. This prevents other threads from having that lock while the fork happens, and is the recommended way of dealing with such issues. There are two other locks we care about, the GIL and the Thread Local Storage lock. The GIL is obviously held when calling Python functions like os.fork(), and the TLS lock is explicitly reallocated instead, while also deleting now-orphaned TLS data. This only fixes calls to os.fork(), not extension modules or embedding programs calling C's fork() directly. Solving that requires a new set of API functions, and possibly a rewrite of the Python/thread_*.c mess. Add a warning explaining the problem to the documentation in the mean time. This also changes behaviour a little on AIX. Before, AIX (but only AIX) was getting the import lock reallocated, seemingly to avoid this very same problem. This is not the right approach, because the import lock is a re-entrant one, and reallocating would do the wrong thing when forking while holding the import lock. Will backport to 2.6, minus the tiny AIX behaviour change.
* Issue #6848: Fix curses module build failure on OS X 10.6.Mark Dickinson2009-09-061-1/+6
|
* Issue #6347: Add inttypes.h to the pyport.h #includes; fixes a buildMark Dickinson2009-06-301-0/+6
| | | | failure on HP-UX 11.00.