summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue 3221 by emitting a RuntimeWarning instead of raising SystemError ↵Nick Coghlan2008-07-131-3/+22
| | | | when the parent module can't be found during an absolute import (likely due to non-PEP 361 aware code which sets a module level __package__ attribute)
* #3342: In tracebacks, printed source lines were not indented since r62555.Amaury Forgeot d'Arc2008-07-112-7/+22
| | | | #3343: Py_DisplaySourceLine should be a private function. Rename it to _Py_DisplaySourceLine.
* Added garbage collector overhead and optional default return value toRobert Schuppenies2008-07-101-13/+46
| | | | sys.getsizeof.
* Fixed Issue3122 and extended sys.getsizeof tests for built-in types.Robert Schuppenies2008-07-101-11/+10
|
* - Issue #2862: Make int and float freelist management consistent with otherGregory P. Smith2008-07-061-20/+0
| | | | | freelists. Changes their CompactFreeList apis into ClearFreeList apis and calls them via gc.collect().
* Fix tabs.Georg Brandl2008-07-051-12/+12
|
* Update comment on prediction macros.Raymond Hettinger2008-07-051-11/+13
|
* Add a comment about incref'ing w.Georg Brandl2008-07-011-0/+2
|
* #3242: fix a crash in "print", if sys.stdout is set to a custom object,Amaury Forgeot d'Arc2008-07-011-0/+2
| | | | | | whose write() method installs another sys.stdout. Will backport.
* #3219 repeated keyword arguments aren't allowed in function calls anymoreBenjamin Peterson2008-07-011-0/+10
|
* warnings.warn_explicit() did not have the proper TypeErrors in place to preventBrett Cannon2008-06-271-5/+13
| | | | | | | | bus errors or SystemError being raised. As a side effect of fixing this, a bad DECREF that could be triggered when 'message' and 'category' were both None was fixed. Closes issue 3211. Thanks JP Calderone for the bug report.
* Revert 64424, 64438, and 64439.Raymond Hettinger2008-06-241-18/+1
|
* Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in ↵Eric Smith2008-06-241-1/+1
| | | | anticipation of fixing issue 3140.
* Make bin() implementation parallel oct() and hex() so that int/long ↵Raymond Hettinger2008-06-201-1/+18
| | | | subclasses can override or so that other classes can support.
* Issue 3116: fix quadratic behavior in marshal.dumps().Raymond Hettinger2008-06-161-1/+1
|
* #1683 prevent forking from interfering in threading storageBenjamin Peterson2008-06-131-0/+31
| | | | This should prevent some test_multiprocessing failures
* Merge in release25-maint r60793:Gregory P. Smith2008-06-114-12/+119
| | | | | | 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.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-0921-360/+360
| | | | | | | 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.
* warn about parameter tuple unpackingBenjamin Peterson2008-06-081-0/+3
|
* Warn about assigning to Py3k keywords (True and False)Benjamin Peterson2008-06-081-33/+27
|
* add an ast_warn helper function to make adding those Py3k warnings easierBenjamin Peterson2008-06-081-7/+15
|
* change Py3k backquote warning to a SyntaxWarning and add a testBenjamin Peterson2008-06-081-1/+1
|
* MacOS X: Enable 4-way universal buildsRonald Oussoren2008-06-051-0/+4
| | | | | | | | | | | | | | | | | | 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.
* Some style nits. Also clarify in the docstrings what __sizeof__ does.Georg Brandl2008-06-011-2/+2
|
* Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies2008-06-011-0/+41
|
* Typo: encoding -> codeset.Martin v. Löwis2008-06-011-1/+1
|
* Move sys_stream and sys_isatty out of the have-langinfo block.Martin v. Löwis2008-06-011-1/+1
|
* New environment variable PYTHONIOENCODING.Martin v. Löwis2008-06-012-49/+74
|
* Refactor and clean up str.format() code (and helpers) in advance of ↵Eric Smith2008-05-302-9/+8
| | | | optimizations.
* Issue 2784: fix leaks in exception exit.Raymond Hettinger2008-05-301-2/+2
|
* Fix issue2588: Do not execute str[size-1] = '\0' when a 0 size isGregory P. Smith2008-05-261-1/+2
| | | | passed in. (The assert won't prevent this in non-debug builds).
* Fix issue2589: there was a potential integer overflow leading toGregory P. Smith2008-05-261-4/+15
| | | | | memory corruption on esoteric platforms and incorrect behavior on normal platforms.
* turn PyErr_WarnPy3k into a macroBenjamin Peterson2008-05-261-9/+0
|
* Renamed PyString to PyBytesChristian Heimes2008-05-2621-364/+364
|
* First step of the C API rename:Christian Heimes2008-05-262-6/+6
| | | | | | renamed Include/bytesobject.h to Include/bytearrayobject.h renamed Include/stringobject.h to Include/bytesobject.h added Include/stringobject.h with aliases
* Patch #2488: Add sys.maxsize.Martin v. Löwis2008-05-201-0/+3
|
* revert 63425 over Guido's Febuary message about this, that I missedBenjamin Peterson2008-05-171-27/+15
|
* fix spellingBenjamin Peterson2008-05-171-1/+1
|
* add Py3k warnings to oct and hex. backport hex behavior (because it's not ↵Benjamin Peterson2008-05-171-15/+27
| | | | different)
* Fix a refleak in the _warnings module.Georg Brandl2008-05-131-1/+3
|
* #2196 hasattr now allows SystemExit and KeyboardInterrupt to propagateBenjamin Peterson2008-05-121-3/+7
|
* Addresses issue 2802: 'n' formatting for integers.Eric Smith2008-05-111-45/+4
| | | | | | | | | | | | | | 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.
* #2816: clarify error messages for EOF while scanning strings.Georg Brandl2008-05-111-2/+2
|
* #1792: Improve performance of marshal.dumps() on large objects by increasingAndrew M. Kuchling2008-05-111-1/+4
| | | | the size of the buffer more quickly.
* Fix sys.flags to properly expose bytes_warning.Brett Cannon2008-05-081-2/+2
| | | | Closes issue #2790.
* Implemented PEP 370Christian Heimes2008-05-062-5/+6
|
* Fix logic error in Python/_warnings.c and add a test to verifyBenjamin Peterson2008-05-061-0/+2
|
* Fix a bug in the handling of the stacklevel argument in warnings.warn() whereBrett Cannon2008-05-061-3/+1
| | | | the stack was being unwound by two levels instead of one each time.
* Add a DeprecationWarning for when warnings.showwarning() is set to a functionBrett Cannon2008-05-051-13/+43
| | | | that lacks support for the new 'line' argument.
* The compiling struct is now passed around to all AST helpers (see issue 2720)Benjamin Peterson2008-05-031-32/+32
|