Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Some style nits. Also clarify in the docstrings what __sizeof__ does. | Georg Brandl | 2008-06-01 | 1 | -2/+2 |
| | |||||
* | Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes. | Robert Schuppenies | 2008-06-01 | 1 | -0/+41 |
| | |||||
* | Typo: encoding -> codeset. | Martin v. Löwis | 2008-06-01 | 1 | -1/+1 |
| | |||||
* | Move sys_stream and sys_isatty out of the have-langinfo block. | Martin v. Löwis | 2008-06-01 | 1 | -1/+1 |
| | |||||
* | New environment variable PYTHONIOENCODING. | Martin v. Löwis | 2008-06-01 | 2 | -49/+74 |
| | |||||
* | Refactor and clean up str.format() code (and helpers) in advance of ↵ | Eric Smith | 2008-05-30 | 2 | -9/+8 |
| | | | | optimizations. | ||||
* | Issue 2784: fix leaks in exception exit. | Raymond Hettinger | 2008-05-30 | 1 | -2/+2 |
| | |||||
* | Fix issue2588: Do not execute str[size-1] = '\0' when a 0 size is | Gregory P. Smith | 2008-05-26 | 1 | -1/+2 |
| | | | | passed in. (The assert won't prevent this in non-debug builds). | ||||
* | Fix issue2589: there was a potential integer overflow leading to | Gregory P. Smith | 2008-05-26 | 1 | -4/+15 |
| | | | | | memory corruption on esoteric platforms and incorrect behavior on normal platforms. | ||||
* | turn PyErr_WarnPy3k into a macro | Benjamin Peterson | 2008-05-26 | 1 | -9/+0 |
| | |||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 21 | -364/+364 |
| | |||||
* | First step of the C API rename: | Christian Heimes | 2008-05-26 | 2 | -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öwis | 2008-05-20 | 1 | -0/+3 |
| | |||||
* | revert 63425 over Guido's Febuary message about this, that I missed | Benjamin Peterson | 2008-05-17 | 1 | -27/+15 |
| | |||||
* | fix spelling | Benjamin Peterson | 2008-05-17 | 1 | -1/+1 |
| | |||||
* | add Py3k warnings to oct and hex. backport hex behavior (because it's not ↵ | Benjamin Peterson | 2008-05-17 | 1 | -15/+27 |
| | | | | different) | ||||
* | Fix a refleak in the _warnings module. | Georg Brandl | 2008-05-13 | 1 | -1/+3 |
| | |||||
* | #2196 hasattr now allows SystemExit and KeyboardInterrupt to propagate | Benjamin Peterson | 2008-05-12 | 1 | -3/+7 |
| | |||||
* | Addresses issue 2802: 'n' formatting for integers. | Eric Smith | 2008-05-11 | 1 | -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 Brandl | 2008-05-11 | 1 | -2/+2 |
| | |||||
* | #1792: Improve performance of marshal.dumps() on large objects by increasing | Andrew M. Kuchling | 2008-05-11 | 1 | -1/+4 |
| | | | | the size of the buffer more quickly. | ||||
* | Fix sys.flags to properly expose bytes_warning. | Brett Cannon | 2008-05-08 | 1 | -2/+2 |
| | | | | Closes issue #2790. | ||||
* | Implemented PEP 370 | Christian Heimes | 2008-05-06 | 2 | -5/+6 |
| | |||||
* | Fix logic error in Python/_warnings.c and add a test to verify | Benjamin Peterson | 2008-05-06 | 1 | -0/+2 |
| | |||||
* | Fix a bug in the handling of the stacklevel argument in warnings.warn() where | Brett Cannon | 2008-05-06 | 1 | -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 function | Brett Cannon | 2008-05-05 | 1 | -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 Peterson | 2008-05-03 | 1 | -32/+32 |
| | |||||
* | Fix the C implementation of 'warnings' to infer the filename of the module that | Brett Cannon | 2008-05-03 | 1 | -0/+13 |
| | | | | | | | raised an exception properly when __file__ is not set, __name__ == '__main__', and sys.argv[0] is a false value. Closes issue2743. | ||||
* | Fix some indentation errors. | Brett Cannon | 2008-05-03 | 1 | -9/+10 |
| | |||||
* | Fix a backwards-compatibility mistake where a new optional argument for | Brett Cannon | 2008-05-02 | 1 | -3/+0 |
| | | | | | | | warnings.showwarning() was being used. This broke pre-existing replacements for the function since they didn't support the extra argument. Closes issue 2705. | ||||
* | #2719: backport next() from 3k. | Georg Brandl | 2008-04-30 | 1 | -0/+42 |
| | |||||
* | Issue 2526, float.__format__ 'n' specifier does not support thousands grouping. | Eric Smith | 2008-04-30 | 1 | -128/+229 |
| | | | | | Implemented grouping, with tests. Cleaned up PyOS_ascii_formatd by breaking reformatting into smaller functions. | ||||
* | Fix a bug introduced by the warnings rewrite where tracebacks were being | Brett Cannon | 2008-04-28 | 1 | -2/+0 |
| | | | | | | improperly indented. Closes issue #2699. | ||||
* | A little reformating of Py3k warnings | Benjamin Peterson | 2008-04-27 | 3 | -15/+15 |
| | |||||
* | Use PyErr_WarnPy3k throughout | Benjamin Peterson | 2008-04-27 | 3 | -31/+17 |
| | |||||
* | Added PyErr_WarnPy3k function. (issue 2671) I will be converting current ↵ | Benjamin Peterson | 2008-04-27 | 1 | -0/+9 |
| | | | | Py3k warnings to the use of this function soon. | ||||
* | I finally got the time to update and merge Mark's and my trunk-math branch. ↵ | Christian Heimes | 2008-04-18 | 2 | -25/+232 |
| | | | | | | 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 :) | ||||
* | Fix indentation in sysmodule.c | Benjamin Peterson | 2008-04-18 | 1 | -4/+4 |
| | |||||
* | Correct a refleak found by "regrtest.py -R:: test_structmembers" | Amaury Forgeot d'Arc | 2008-04-14 | 1 | -5/+6 |
| | | | | | | Some other minor updates in _warnings.c: - make a function static - rename a shadowing local variable | ||||
* | Improve -X error message. | Georg Brandl | 2008-04-13 | 1 | -1/+1 |
| | |||||
* | #2627 Let it be known what pgen generates | Benjamin Peterson | 2008-04-13 | 1 | -0/+2 |
| | |||||
* | Use PyString_InternFromString instead of PyString_FromString for static vars | Christian Heimes | 2008-04-13 | 1 | -3/+3 |
| | |||||
* | Fix a bug in PySys_HasWarnOption() where it was not properly checking the | Brett Cannon | 2008-04-13 | 1 | -1/+1 |
| | | | | length of the list storing the warning options. | ||||
* | Re-implement the 'warnings' module in C. This allows for usage of the | Brett Cannon | 2008-04-12 | 5 | -157/+917 |
| | | | | | | | | | '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. | ||||
* | Applied patch #2617 from Frank Wierzbicki wit some extras from me | Christian Heimes | 2008-04-12 | 1 | -1/+12 |
| | | | | -J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future. | ||||
* | Make AST nodes pickleable. | Georg Brandl | 2008-03-30 | 1 | -2/+27 |
| | |||||
* | Fix error message -- "expects either 0 or 0 arguments" | Georg Brandl | 2008-03-30 | 1 | -2/+4 |
| | |||||
* | Make _fields attr for no fields consistent with _attributes attr. | Georg Brandl | 2008-03-30 | 1 | -8/+3 |
| | |||||
* | #2505: allow easier creation of AST nodes. | Georg Brandl | 2008-03-30 | 1 | -22/+113 |
| | |||||
* | Patch #2511: Give the "excepthandler" AST item proper attributes by making ↵ | Georg Brandl | 2008-03-30 | 4 | -94/+122 |
| | | | | it a Sum. |