summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* Issue #2620: Overflow checking when allocating or reallocating memoryGregory P. Smith2008-07-221-11/+22
| | | | | | | | was not always being done properly in some python types and extension modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been updated to perform better checks and places in the code that would previously leak memory on the error path when such an allocation failed have been fixed.
* Post release cleanupBarry Warsaw2008-07-181-1/+1
|
* Bumping to 2.6b2v2.6b2Barry Warsaw2008-07-181-2/+2
|
* Issue 2235: __hash__ is once again inherited by default, but inheritance can ↵Nick Coghlan2008-07-151-0/+1
| | | | be blocked explicitly so that collections.Hashable remains meaningful
* Issue #3274: Use a less common identifier for the temporary variableAlexandre Vassalotti2008-07-131-2/+2
| | | | in Py_CLEAR().
* #3342: In tracebacks, printed source lines were not indented since r62555.Amaury Forgeot d'Arc2008-07-111-1/+1
| | | | #3343: Py_DisplaySourceLine should be a private function. Rename it to _Py_DisplaySourceLine.
* - Issue #2862: Make int and float freelist management consistent with otherGregory P. Smith2008-07-062-2/+2
| | | | | freelists. Changes their CompactFreeList apis into ClearFreeList apis and calls them via gc.collect().
* Revert 64424, 64438, and 64439.Raymond Hettinger2008-06-241-3/+0
|
* Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in ↵Eric Smith2008-06-241-2/+2
| | | | anticipation of fixing issue 3140.
* Make bin() implementation parallel oct() and hex() so that int/long ↵Raymond Hettinger2008-06-201-0/+3
| | | | subclasses can override or so that other classes can support.
* Post release changesBarry Warsaw2008-06-191-1/+1
|
* Bumping to 2.6b1v2.6b1Barry Warsaw2008-06-191-3/+3
|
* Restore support for Microsoft VC6 compiler.Amaury Forgeot d'Arc2008-06-131-1/+1
| | | | | | | Some functions in the msvcrt module are skipped, and socket.ioctl is enabled only when using a more recent Platform SDK. (and yes, there are still companies that use a 10-years old compiler)
* #1683 prevent forking from interfering in threading storageBenjamin Peterson2008-06-131-0/+3
| | | | This should prevent some test_multiprocessing failures
* Correct an incorrect comment about our #include of stddef.h.Gregory P. Smith2008-06-111-1/+1
| | | | (see Doug Evans' comment on python-dev 2008-06-10)
* Merge in release25-maint r60793:Gregory P. Smith2008-06-112-4/+19
| | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code.
* swap stringobject.h and bytesobject.h contents to make sense. PyString inGregory P. Smith2008-06-112-233/+233
| | | | stringobject and PyBytes defines in bytesobject.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-097-55/+51
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Remove locking part of new buffer protocol.Travis E. Oliphant2008-06-061-11/+0
|
* Fix preprocessor statement.Thomas Heller2008-06-051-1/+2
|
* MacOS X: Enable 4-way universal buildsRonald Oussoren2008-06-053-2/+89
| | | | | | | | | | | | | | | | | | This patch adds a new configure argument on OSX: --with-universal-archs=[32-bit|64-bit|all] When used with the --enable-universalsdk option this controls which CPU architectures are includes in the framework. The default is 32-bit, meaning i386 and ppc. The most useful alternative is 'all', which includes all 4 CPU architectures supported by MacOS X (i386, ppc, x86_64 and ppc64). This includes limited support for the Carbon bindings in 64-bit mode as well, limited because (a) I haven't done extensive testing and (b) a large portion of the Carbon API's aren't available in 64-bit mode anyway. I've also duplicated a feature of Apple's build of python: setting the environment variable 'ARCHFLAGS' controls the '-arch' flags used for building extensions using distutils.
* Make the _H #define's match the header file names. Fix comments toGregory P. Smith2008-06-012-8/+8
| | | | mention the correct type names.
* New environment variable PYTHONIOENCODING.Martin v. Löwis2008-06-011-0/+2
|
* Refactor and clean up str.format() code (and helpers) in advance of ↵Eric Smith2008-05-307-24/+30
| | | | optimizations.
* #2989: add PyType_Modified().Georg Brandl2008-05-281-0/+1
|
* wrap lineBenjamin Peterson2008-05-261-1/+2
|
* turn PyErr_WarnPy3k into a macroBenjamin Peterson2008-05-261-1/+2
|
* Renamed PyString to PyBytesChristian Heimes2008-05-267-50/+51
|
* First step of the C API rename:Christian Heimes2008-05-265-236/+273
| | | | | | renamed Include/bytesobject.h to Include/bytearrayobject.h renamed Include/stringobject.h to Include/bytesobject.h added Include/stringobject.h with aliases
* Patch #1722225: Support QNX 6.Martin v. Löwis2008-05-231-0/+7
|
* Addresses issue 2802: 'n' formatting for integers.Eric Smith2008-05-111-1/+11
| | | | | | | | | | | | | | Adds 'n' as a format specifier for integers, to mirror the same specifier which is already available for floats. 'n' is the same as 'd', but inserts the current locale-specific thousands grouping. I added this as a stringlib function, but it's only used by str type, not unicode. This is because of an implementation detail in unicode.format(), which does its own str->unicode conversion. But the unicode version will be needed in 3.0, and it may be needed by other code eventually in 2.6 (maybe decimal?), so I left it as a stringlib implementation. As long as the unicode version isn't instantiated, there's no overhead for this.
* Post tag updates.Barry Warsaw2008-05-081-1/+1
|
* Bump to 2.6a3v2.6a3Barry Warsaw2008-05-081-2/+2
|
* Implemented PEP 370Christian Heimes2008-05-061-0/+1
|
* Added PyErr_WarnPy3k function. (issue 2671) I will be converting current ↵Benjamin Peterson2008-04-271-0/+1
| | | | Py3k warnings to the use of this function soon.
* Remove Py_Refcnt, Py_Type, Py_Size, as they were added onlyMartin v. Löwis2008-04-241-5/+0
| | | | for backwards compatibility, yet 2.5 did not have them at all.
* Stupid me. Py_RETURN_NAN should actually return something ...Christian Heimes2008-04-181-1/+1
|
* I finally got the time to update and merge Mark's and my trunk-math branch. ↵Christian Heimes2008-04-185-126/+196
| | | | | | The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math. The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
* #2627 Let it be known what pgen generatesBenjamin Peterson2008-04-131-0/+2
|
* Fix compiler warning Include/warnings.h:19:28: warning: no newline at end of ↵Christian Heimes2008-04-131-1/+2
| | | | file
* Re-implement the 'warnings' module in C. This allows for usage of theBrett Cannon2008-04-125-10/+22
| | | | | | | | | 'warnings' code in places where it was previously not possible (e.g., the parser). It could also potentially lead to a speed-up in interpreter start-up if the C version of the code (_warnings) is imported over the use of the Python version in key places. Closes issue #1631171.
* Make file objects as thread safe as the underlying libc FILE* implementation.Gregory P. Smith2008-04-061-0/+4
| | | | | | | | | | | close() will now raise an IOError if any operations on the file object are currently in progress in other threads. Most code was written by Antoine Pitrou (pitrou). Additional testing, documentation and test suite cleanup done by me (gregory.p.smith). Fixes issue 815646 and 595601 (as well as many other bugs and references to this problem dating back to the dawn of Python).
* Post tag version tweakBarry Warsaw2008-04-031-1/+1
|
* Updating for 2.6a2v2.6a2Barry Warsaw2008-04-031-2/+4
|
* Patch #2511: Give the "excepthandler" AST item proper attributes by making ↵Georg Brandl2008-03-301-5/+12
| | | | it a Sum.
* Properly check for consistency with the third argument ofGeorg Brandl2008-03-291-1/+1
| | | | compile() when compiling an AST node.
* NIL => NULLBenjamin Peterson2008-03-281-1/+1
|
* Patch #1810 by Thomas Lee, reviewed by myself:Georg Brandl2008-03-281-0/+2
| | | | | allow compiling Python AST objects into code objects in compile().
* Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings.Neal Norwitz2008-03-282-8/+8
| | | | | | Rather than sprinkle casts throughout the code, change Py_CHARMASK to always cast it's result to an unsigned char. This should ensure we do the right thing when accessing an array with the result.
* Fix warnings about using char as an array subscript. This is not portableNeal Norwitz2008-03-271-7/+7
| | | | since char is signed on some platforms and unsigned on others.