Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short. | Christian Heimes | 2008-02-23 | 1 | -0/+5 |
| | |||||
* | Issue #2051 and patch from Alexander Belopolsky: | Christian Heimes | 2008-02-23 | 2 | -15/+16 |
| | | | | Permission for pyc and pyo files are inherited from the py file. | ||||
* | Removed duplicate Py_CHARMASK define. It's already defined in Python.h. | Eric Smith | 2008-02-23 | 1 | -8/+0 |
| | |||||
* | Patch #1759: Backport of PEP 3129 class decorators | Christian Heimes | 2008-02-23 | 5 | -1202/+1260 |
| | | | | with some help from Georg | ||||
* | Added bin() builtin. I'm going to check in the tests in a seperate checkin, ↵ | Eric Smith | 2008-02-22 | 1 | -0/+13 |
| | | | | because the builtin doesn't need to be ported to py3k, but the tests are missing in py3k and need to be merged there. | ||||
* | Trim leading zeros from a floating point exponent, per C99. See issue 1600. ↵ | Eric Smith | 2008-02-20 | 1 | -27/+127 |
| | | | | As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description). | ||||
* | Perform correct handling of stack overflow for windows: Catch the correct ↵ | Kristján Valur Jónsson | 2008-02-18 | 1 | -2/+8 |
| | | | | exception code and reset the overflow condition when handled. | ||||
* | Backport of PEP 3101, Advanced String Formatting, from py3k. | Eric Smith | 2008-02-17 | 3 | -0/+47 |
| | | | | | | | | | | | | | | | Highlights: - Adding PyObject_Format. - Adding string.Format class. - Adding __format__ for str, unicode, int, long, float, datetime. - Adding builtin format. - Adding ''.format and u''.format. - str/unicode fixups for formatters. The files in Objects/stringlib that implement PEP 3101 (stringdefs.h, unicodedefs.h, formatter.h, string_format.h) are identical in trunk and py3k. Any changes from here on should be made to trunk, and changes will propogate to py3k). | ||||
* | Deallocate content of the dict free list on interpreter shutdown | Christian Heimes | 2008-02-08 | 1 | -0/+1 |
| | |||||
* | Remove unnecessary curly braces around an int literal. | Brett Cannon | 2008-02-07 | 1 | -2/+2 |
| | |||||
* | Cast a struct to a void pointer so as to do a type-safe pointer comparison | Brett Cannon | 2008-02-07 | 1 | -3/+3 |
| | | | | (mistmatch found by clang). | ||||
* | Change r60575 broke test_compile: | Amaury Forgeot d'Arc | 2008-02-05 | 1 | -0/+3 |
| | | | | there is no need to emit co_lnotab item when both offsets are zeros. | ||||
* | #1750076: Debugger did not step on every iteration of a while statement. | Amaury Forgeot d'Arc | 2008-02-04 | 1 | -14/+15 |
| | | | | | | | | | | | | The mapping between bytecode offsets and source lines (lnotab) did not contain an entry for the beginning of the loop. Now it does, and the lnotab can be a bit larger: in particular, several statements on the same line generate several entries. However, this does not bother the settrace function, which will trigger only one 'line' event. The lnotab seems to be exactly the same as with python2.4. | ||||
* | Patch #1953 | Christian Heimes | 2008-02-04 | 1 | -13/+34 |
| | | | | | I implemented the function sys._compact_freelists() and C API functions PyInt_/PyFloat_CompactFreeList() to compact the pre-allocated blocks of ints and floats. They allow the user to reduce the memory usage of a Python process that deals with lots of numbers. The patch also renames sys._cleartypecache to sys._clear_type_cache | ||||
* | Fix refleak | Neal Norwitz | 2008-02-01 | 1 | -0/+1 |
| | |||||
* | Move __builtins__.trunc() to math.trunc() per | Jeffrey Yasskin | 2008-02-01 | 1 | -15/+0 |
| | | | | | http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965. | ||||
* | Issue #1678380. Fix a bug that identifies 0j and -0j when they appear | Mark Dickinson | 2008-01-31 | 1 | -12/+47 |
| | | | | | in the same code unit. The fix is essentially the same as the fix for a previous bug identifying 0. and -0. | ||||
* | The previous change was causing a segfault after multiple calls to ↵ | Christian Heimes | 2008-01-30 | 1 | -3/+3 |
| | | | | Py_Initialize() and Py_Finalize(). | ||||
* | Fixed some references leaks in sys. | Christian Heimes | 2008-01-30 | 2 | -21/+19 |
| | |||||
* | Removed unused var | Christian Heimes | 2008-01-30 | 1 | -1/+1 |
| | |||||
* | CallMethod is faster with a NULL third-argument than with an empty format ↵ | Raymond Hettinger | 2008-01-29 | 1 | -1/+1 |
| | | | | string. | ||||
* | Removed unnecessary conditional (spotted by Neal Norwitz). | Raymond Hettinger | 2008-01-28 | 1 | -1/+1 |
| | |||||
* | Let marshal built-up sets and frozensets one element at a time (without ↵ | Raymond Hettinger | 2008-01-28 | 1 | -12/+8 |
| | | | | creating an intermediate tuple). | ||||
* | static PyObject* variables should use PyString_InternFromString() instead of ↵ | Christian Heimes | 2008-01-28 | 1 | -2/+2 |
| | | | | PyObject_FromString() to store a python string in a function level static var. | ||||
* | Added clear cache methods to clear the internal type lookup cache for ref ↵ | Christian Heimes | 2008-01-27 | 2 | -0/+16 |
| | | | | leak test runs. | ||||
* | Reduce buffer size since we do not need 1k | Neal Norwitz | 2008-01-27 | 1 | -1/+1 |
| | |||||
* | Revert PySet_Add() changes. | Raymond Hettinger | 2008-01-26 | 1 | -8/+12 |
| | |||||
* | Let marshal build-up sets and frozensets one element at a time. | Raymond Hettinger | 2008-01-26 | 1 | -12/+8 |
| | | | | Saves the unnecessary creation of a tuple as intermediate container. | ||||
* | #1920: when considering a block starting by "while 0", the compiler ↵ | Amaury Forgeot d'Arc | 2008-01-24 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | optimized the whole construct away, even when an 'else' clause is present:: while 0: print("no") else: print("yes") did not generate any code at all. Now the compiler emits the 'else' block, like it already does for 'if' statements. Will backport. | ||||
* | Fix two crashers. | Guido van Rossum | 2008-01-23 | 2 | -2/+11 |
| | |||||
* | Applied #1069410 | Christian Heimes | 2008-01-23 | 1 | -0/+9 |
| | | | | The "can't load dll" message box on Windows is suppressed while an extension is loaded by calling SetErrorMode in dynload_win.c. The error is still reported properly. | ||||
* | Patch #1720595: add T_BOOL to the range of structmember types. | Georg Brandl | 2008-01-21 | 1 | -0/+15 |
| | | | | Patch by Angelo Mottola, reviewed by MvL, tests by me. | ||||
* | Provide a sanity check during PyThreadState_DeleteCurrent() and | Gregory P. Smith | 2008-01-21 | 1 | -0/+10 |
| | | | | | | | | | | | | | | PyThreadState_Delete() to avoid an infinite loop when the tstate list is messed up and has somehow becomes circular and does not contain the current thread. I don't know how this happens but it does, *very* rarely. On more than one hardware platform. I have not been able to reproduce it manually. Attaching to a process where its happening: it has always been in an infinite loop over a single element tstate list that is not the tstate we're looking to delete. It has been in t_bootstrap()'s call to PyThreadState_DeleteCurrent() as a pthread is exiting. | ||||
* | Fixed a wrong assumption in configure.in and Include/pyport.h. The is finite ↵ | Christian Heimes | 2008-01-20 | 1 | -0/+3 |
| | | | | function is not called isfinite() but finite(). Sorry, my fault. :) | ||||
* | #1648: add sys.gettrace() and sys.getprofile(). | Georg Brandl | 2008-01-20 | 1 | -0/+42 |
| | |||||
* | Fix #1679: "0x" was taken as a valid integer literal. | Georg Brandl | 2008-01-19 | 1 | -15/+28 |
| | | | | | Fixes the tokenizer, tokenize.py and int() to reject this. Patches by Malte Helmert. | ||||
* | #1782: don't leak in error case in PyModule_AddXxxConstant. Patch by Hrvoje ↵ | Georg Brandl | 2008-01-19 | 1 | -2/+14 |
| | | | | Nikšić. | ||||
* | Added bytes and b'' as aliases for str and '' | Christian Heimes | 2008-01-18 | 2 | -0/+4 |
| | |||||
* | Coverity issue CID #169 | Christian Heimes | 2008-01-18 | 1 | -1/+2 |
| | | | | | | local_ptr_assign_local: Assigning address of stack variable "namebuf" to pointer "filename" out_of_scope: Variable "namebuf" goes out of scope use_invalid: Used "filename" pointing to out-of-scope variable "namebuf" | ||||
* | Typo fixes | Andrew M. Kuchling | 2008-01-15 | 1 | -2/+2 |
| | |||||
* | Applied patch #1816: sys.flags patch | Christian Heimes | 2008-01-14 | 1 | -3/+94 |
| | |||||
* | Fixed #1776. __import__() no longer imports modules by file name | Christian Heimes | 2008-01-09 | 1 | -0/+10 |
| | |||||
* | Make Python compile with --disable-unicode. | Georg Brandl | 2008-01-07 | 1 | -0/+2 |
| | |||||
* | patch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG. | Georg Brandl | 2008-01-07 | 2 | -2/+2 |
| | |||||
* | Patch #602345 by Neal Norwitz and me: add -B option and ↵ | Georg Brandl | 2008-01-07 | 3 | -2/+11 |
| | | | | PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode. | ||||
* | #1755: typo. | Georg Brandl | 2008-01-07 | 1 | -1/+1 |
| | |||||
* | Fix C++-style comment. | Georg Brandl | 2008-01-05 | 1 | -3/+3 |
| | |||||
* | Continue rolling back pep-3141 changes that changed behavior from 2.5. This | Jeffrey Yasskin | 2008-01-05 | 1 | -17/+25 |
| | | | | | | | | | | | | round included: * Revert round to its 2.6 behavior (half away from 0). * Because round, floor, and ceil always return float again, it's no longer necessary to have them delegate to __xxx___, so I've ripped that out of their implementations and the Real ABC. This also helps in implementing types that work in both 2.6 and 3.0: you return int from the __xxx__ methods, and let it get enabled by the version upgrade. * Make pow(-1, .5) raise a ValueError again. | ||||
* | Patch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000 | Guido van Rossum | 2008-01-05 | 1 | -22/+52 |
| | | | | and adds errors for -0x. | ||||
* | Moved include "Python.h" in front of other imports to silence a warning. | Christian Heimes | 2008-01-04 | 1 | -1/+2 |
| |