Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Issue #6603: Fix --with-tsc build failures on x86-64 that resulted | Mark Dickinson | 2009-10-31 | 1 | -1/+19 | |
| | | | | | | from a gcc inline assembler peculiarity. (gcc's "A" constraint apparently means 'rax or rdx' in 64-bit mode, not edx:eax or rdx:rax as one might expect.) | |||||
* | Deprecate PyOS_ascii_strtod and PyOS_ascii_atof, and document the ↵ | Mark Dickinson | 2009-10-31 | 1 | -2/+12 | |
| | | | | replacement function PyOS_string_to_double. | |||||
* | do a backport of r75928 | Benjamin Peterson | 2009-10-29 | 1 | -9/+12 | |
| | | | | | The added test does not fail without the patch, but we still fix the issue of surrogates being used in wide builds where they should not be. | |||||
* | Removed PyOS_ascii_atof from marshal.c, as mentioned in issue 7117. Also ↵ | Eric Smith | 2009-10-27 | 1 | -11/+9 | |
| | | | | brings it more in line with py3k. | |||||
* | Removed PyOS_ascii_atof from ast.c, as mentioned in issue 7117. | Eric Smith | 2009-10-27 | 1 | -6/+6 | |
| | ||||||
* | Finished removing _PyOS_double_to_string, as mentioned in issue 7117. | Eric Smith | 2009-10-26 | 1 | -135/+0 | |
| | ||||||
* | Issue #7117 (backport py3k float repr) continued: | Mark Dickinson | 2009-10-26 | 1 | -93/+699 | |
| | | | | Backport pystrtod.c from py3k. | |||||
* | Warn against replacing PyNumber_Add with PyNumber_InPlaceAdd in sum | Mark Dickinson | 2009-10-26 | 1 | -0/+9 | |
| | ||||||
* | Issue #7117 (backport py3k float repr) continued: | Mark Dickinson | 2009-10-24 | 1 | -0/+10 | |
| | | | | | Add sys.float_repr_style attribute ('short' if short float repr is in used; 'legacy' otherwise). | |||||
* | Remove temporary define from r75653 | Mark Dickinson | 2009-10-24 | 1 | -2/+0 | |
| | ||||||
* | Issue #7117 (backport py3k float repr) continued: | Mark Dickinson | 2009-10-24 | 1 | -0/+18 | |
| | | | | | | | | | - 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 | |||||
* | Temporary define to avoid build failure | Mark Dickinson | 2009-10-24 | 1 | -0/+2 | |
| | ||||||
* | Issue #7117: Prepare for backport of py3k float repr. | Mark Dickinson | 2009-10-24 | 1 | -0/+2609 | |
| | | | | | | | 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. | |||||
* | #7035: improve docs of the various <method>_errors() functions, and give ↵ | Georg Brandl | 2009-10-22 | 1 | -5/+17 | |
| | | | | them docstrings. | |||||
* | Issue #1722344: threading._shutdown() is now called in Py_Finalize(), which | Antoine Pitrou | 2009-10-20 | 1 | -0/+30 | |
| | | | | | fixes the problem of some exceptions being thrown at shutdown when the interpreter is killed. Patch by Adam Olsen. | |||||
* | Removed calls to PyFloat_AsReprString. | Eric Smith | 2009-10-19 | 1 | -42/+63 | |
| | | | | | | | | | This is in anticipation of possibly implementing issue 7117 (short float repr). This removes the last calls to PyFloat_AsString, PyFloat_AsReprString, and PyFloat_AsStringEx, which are unsafe. Also, switch to defines for error values to bring this code more in line with the py3k branch. | |||||
* | Allow core Python build to succeed under WITHOUT_COMPLEX. The module build ↵ | Mark Dickinson | 2009-10-15 | 2 | -4/+9 | |
| | | | | stage still fails. | |||||
* | Issue #1754094: Improve the stack depth calculation in the compiler. | Neil Schemenauer | 2009-10-14 | 1 | -12/+21 | |
| | | | | | There should be no other effect than a small decrease in memory use. Patch by Christopher Tur Lesniewski-Laas. | |||||
* | #7050 fix a SystemError when using tuple unpacking and augmented assignment | Benjamin Peterson | 2009-10-03 | 1 | -0/+13 | |
| | ||||||
* | Issue #7019: Unmarshalling of bad long data could produce unnormalized | Mark Dickinson | 2009-09-29 | 1 | -3/+13 | |
| | | | | PyLongs. Raise ValueError instead. | |||||
* | Fix issue #1590864, multiple threads and fork() can cause deadlocks, by | Thomas Wouters | 2009-09-16 | 1 | -19/+12 | |
| | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | revert unintended changes | Benjamin Peterson | 2009-09-09 | 1 | -86/+8 | |
| | ||||||
* | tabbify | Benjamin Peterson | 2009-09-09 | 1 | -8/+86 | |
| | ||||||
* | revert r74699 since it loses useful error information | Benjamin Peterson | 2009-09-07 | 1 | -2/+13 | |
| | ||||||
* | PyObject_GetIter can set an error for its self just fine | Benjamin Peterson | 2009-09-06 | 1 | -13/+2 | |
| | ||||||
* | better col_offsets for "for" statements with tuple unpacking #6704 | Benjamin Peterson | 2009-08-15 | 1 | -11/+12 | |
| | | | | Patch from Frank Wierzbicki. | |||||
* | - Issue #6624: yArg_ParseTuple with "s" format when parsing argument with | Sean Reifscheider | 2009-08-01 | 1 | -1/+1 | |
| | | | | NUL: Bogus TypeError detail string. | |||||
* | Better name a variable: 'buf' seems to imply a mutable buffer. | Amaury Forgeot d'Arc | 2009-07-25 | 1 | -7/+7 | |
| | ||||||
* | the Slice in x[::] has to have step as None to help the interpreter | Benjamin Peterson | 2009-07-20 | 1 | -1/+15 | |
| | ||||||
* | Issue #6415: Fixed warnings.warn sagfault on bad formatted string. | Hirokazu Yamamoto | 2009-07-17 | 1 | -0/+2 | |
| | ||||||
* | Update issue 6070 patch to match the patch that was actually tested | R. David Murray | 2009-07-07 | 1 | -1/+3 | |
| | | | | on Windows. | |||||
* | Issue 6070: when creating a compiled file, after copying the mode bits, on | R. David Murray | 2009-07-07 | 1 | -1/+3 | |
| | | | | | posix zap the execute bit in case it was set on the .py file, since the compiled files are not directly executable on posix. Patch by Marco N. | |||||
* | when print() gets unicode arguments, sep and end should be unicode by ↵ | Benjamin Peterson | 2009-07-02 | 1 | -18/+74 | |
| | | | | default #4618 | |||||
* | small optimization: avoid popping the current block until we have to | Benjamin Peterson | 2009-07-01 | 1 | -5/+5 | |
| | ||||||
* | Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython ↵ | Georg Brandl | 2009-06-29 | 1 | -6/+9 | |
| | | | | sprint. | |||||
* | Update docstrings for sys.getdlopenflags() and sys.setdlopenflags(). | Alexandre Vassalotti | 2009-06-29 | 1 | -10/+12 | |
| | ||||||
* | use stack macros | Benjamin Peterson | 2009-06-28 | 1 | -2/+2 | |
| | ||||||
* | add two generic macros for peeking and setting in the stack | Benjamin Peterson | 2009-06-28 | 1 | -0/+2 | |
| | ||||||
* | fix grammar | Benjamin Peterson | 2009-06-23 | 1 | -1/+1 | |
| | ||||||
* | remove tmpname support since it's no longer used | Benjamin Peterson | 2009-06-21 | 2 | -28/+0 | |
| | ||||||
* | don't need to add the name 'lambda' as assigned | Benjamin Peterson | 2009-06-21 | 1 | -2/+1 | |
| | ||||||
* | remove unused 'encoding' member from the compiler struct | Benjamin Peterson | 2009-06-17 | 1 | -4/+0 | |
| | ||||||
* | update ast version | Benjamin Peterson | 2009-06-13 | 1 | -2/+2 | |
| | ||||||
* | when no module is given in a 'from' relative import, make ImportFrom.module NULL | Benjamin Peterson | 2009-06-13 | 3 | -20/+20 | |
| | ||||||
* | give a better error message when deleting () | Benjamin Peterson | 2009-06-13 | 1 | -4/+7 | |
| | ||||||
* | set Print.values to NULL if there are no values | Benjamin Peterson | 2009-06-13 | 1 | -9/+12 | |
| | ||||||
* | allow importing from a module named None if it has an 'as' clause | Benjamin Peterson | 2009-06-13 | 1 | -4/+6 | |
| | ||||||
* | prevent import statements from assigning to None | Benjamin Peterson | 2009-06-13 | 1 | -11/+26 | |
| | ||||||
* | keep the slice.step field as NULL if no step expression is given | Benjamin Peterson | 2009-06-13 | 1 | -8/+1 | |
| | ||||||
* | Add const qualifier to PyErr_SetFromErrnoWithFilename and to | Alexandre Vassalotti | 2009-06-12 | 1 | -2/+2 | |
| | | | | PyErr_SetFromErrnoWithUnicodeFilename. |