summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
...
* Silence warning on Windows.Eric Smith2009-04-281-1/+1
|
* Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to ↵Eric Smith2009-04-272-15/+223
| | | | py3k. Should fix Windows buildbot errors.
* Fix typo in function nameMark Dickinson2009-04-261-3/+3
|
* Backport r71967 changes from py3k to trunk.Mark Dickinson2009-04-261-30/+57
| | | | (Internal plumbing changes for float parsing.)
* Issue #5835, deprecate PyOS_ascii_formatd.Eric Smith2009-04-251-45/+109
| | | | | | If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great. Will port to py3k with a different strategy.
* Issue #5816:Mark Dickinson2009-04-241-2/+3
| | | | | | | | - simplify parsing and printing of complex numbers - make complex(repr(z)) round-tripping work for complex numbers involving nans, infs, or negative zeros - don't accept some of the stranger complex strings that were previously allowed---e.g., complex('1..1j')
* Backport of some of the work in r71665 to trunk. This reworks much ofEric Smith2009-04-221-57/+130
| | | | | | | | | | | | | | | | | | | | | int, long, and float __format__(), and it keeps their implementation in sync with py3k. Also added PyOS_double_to_string. This is the "fallback" version that's also available in trunk, and should be kept in sync with that code. I'll add an issue to document PyOS_double_to_string in the C API. There are many internal cleanups. Externally visible changes include: - Implement PEP 378, Format Specifier for Thousands Separator, for floats, ints, and longs. - Issue #5515: 'n' formatting for ints, longs, and floats handles leading zero formatting poorly. - Issue #5772: For float.__format__, don't add a trailing ".0" if we're using no type code and we have an exponent.
* Issue #1869: Fix a couple of minor round() issues.Mark Dickinson2009-04-181-4/+1
|
* Backport r71704 (add configure check for C99 round function) to trunk.Mark Dickinson2009-04-181-0/+13
|
* copysign shouldn't be declared as static in pymath.cMark Dickinson2009-04-181-1/+1
|
* #5580: no need to use parentheses when converterr() argument is actually a ↵Georg Brandl2009-04-051-1/+1
| | | | type description.
* - Issue #3845: In PyRun_SimpleFileExFlags avoid invalid memory access withMatthias Klose2009-04-041-2/+3
| | | | short file names.
* Issue #2396: backport the memoryview object.Antoine Pitrou2009-04-021-1/+1
|
* PyErr_NormalizeException may not set an error, so convert the PyErr_SetObjectGeorg Brandl2009-04-021-1/+9
| | | | call on hitting the recursion limit into just assigning it to the arguments provided.
* Fix two issues introduced by issue #71031 by changing the signature ofBrett Cannon2009-04-021-1/+1
| | | | PyImport_AppendInittab() to take a const char *.
* PyImport_AppendInittab() took a char * as a first argument even though thatBrett Cannon2009-04-021-1/+1
| | | | | | | string was stored beyond the life of the call. Changed the signature to be const char * to help make this point. Closes issue #1419652.
* fix error handlingBenjamin Peterson2009-04-021-4/+7
|
* In PyErr_GivenExceptionMatches, temporarily bump the recursionGeorg Brandl2009-04-021-1/+7
| | | | | limit, so that in the most common case PyObject_IsSubclass will not raise a recursion error we have to ignore anyway.
* _warnings was importing itself to get an attribute. That's bad if warnings getsBrett Cannon2009-04-011-16/+30
| | | | | | called in a thread that was spawned by an import itself. Last part to close #1665206.
* Issue 5619: Pass MS CRT debug flags into subprocessesJesse Noller2009-03-311-0/+2
|
* Add check for PyDict_Update() error.Jeremy Hylton2009-03-311-1/+2
|
* Global statements from one function leaked into parallel functions.Jeremy Hylton2009-03-311-22/+101
| | | | | | | | | | | | | Re http://bugs.python.org/issue4315 The symbol table used the same name dictionaries to recursively analyze each of its child blocks, even though the dictionaries are modified during analysis. The fix is to create new temporary dictionaries via the analyze_child_block(). The only information that needs to propagate back up is the names of the free variables. Add more comments and break out a helper function. This code doesn't get any easier to understand when you only look at it once a year.
* Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.Mark Dickinson2009-03-203-39/+112
| | | | Backport of r70459.
* fix strange errors when setting attributes on tracebacks #4034Benjamin Peterson2009-03-181-14/+8
|
* Make marshalling errors a little more informative as to what went wrongNick Coghlan2009-03-151-13/+13
|
* Require implementations for warnings.showwarning() support the 'line' argument.Brett Cannon2009-03-111-49/+17
| | | | | | Was a DeprecationWarning for not supporting it since Python 2.6. Closes issue #3652.
* Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} withJeffrey Yasskin2009-02-284-106/+164
| | | | | | POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing a POP_TOP on each conditional and sometimes allows the peephole optimizer to skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
* Issue 5176: special-case string formatting in BINARY_MODULO implementation. ↵Collin Winter2009-02-201-1/+4
| | | | This shows a modest (1-3%) speed-up in templating systems, for example.
* Issue #4575: fix Py_IS_INFINITY macro to work correctly on x87 FPUs.Mark Dickinson2009-02-091-0/+13
| | | | It now forces its argument to double before testing for infinity.
* Silence 'arg may be used uninitialized in this function' warning from gcc.Mark Dickinson2009-02-081-1/+1
|
* Implement issue #4285, convert sys.version_info to a namedEric Smith2009-02-061-20/+79
| | | | tuple. Patch by Ross Light.
* Issue 1242657: list(obj) can swallow KeyboardInterrupt.Raymond Hettinger2009-02-021-0/+2
|
* more flags which only work for function blocksBenjamin Peterson2009-01-311-6/+4
|
* add explanatory commentBenjamin Peterson2009-01-311-0/+2
|
* On Windows, use the Python 'Activation Context' when loading extensionsMark Hammond2009-01-271-1/+9
| | | | to avoid problems loading the CRT from a private assembly. Via bug 4566.
* fix building the core with --disable-unicodeBenjamin Peterson2009-01-252-4/+20
| | | | | I changed some bytearray methods to use strings instead of unicode like bytes_repr Also, bytearray.fromhex() can take strings as well as unicode
* allow unicode keyword arguments for the ** syntax #4978Benjamin Peterson2009-01-201-12/+33
|
* #4077: No need to append \n when calling Py_FatalErrorAmaury Forgeot d'Arc2009-01-172-2/+2
| | | | + fix a declaration to make it match the one in pythonrun.h
* Issue #4893: Use NT threading on CE.Martin v. Löwis2009-01-122-7/+26
|
* Issue #4915: Port sysmodule to Windows CE.Martin v. Löwis2009-01-121-3/+12
|
* Issue #4279: Fix build of parsermodule under Cygwin.Martin v. Löwis2009-01-111-0/+1
|
* Issue 4906: Preserve windows error state across PyThread_get_key_valueKristján Valur Jónsson2009-01-101-1/+10
|
* Issue 4293: Make Py_AddPendingCall() thread safeKristján Valur Jónsson2009-01-091-22/+146
|
* Issue 3677: Fix import from UNC paths on Windows.Kristján Valur Jónsson2009-01-091-15/+19
|
* Issue 3582. Improved thread support and TLS for WindowsKristján Valur Jónsson2009-01-091-65/+91
|
* Issue #1180193: When importing a module from a .pyc (or .pyo) file withAntoine Pitrou2009-01-061-0/+45
| | | | | | | an existing .py counterpart, override the co_filename attributes of all code objects if the original filename is obsolete (which can happen if the file has been renamed, moved, or if it is accessed through different paths). Patch by Ziga Seilnacht and Jean-Paul Calderone.
* Issue #4817: Remove unused function PyOS_GetLastModificationTime.Martin v. Löwis2009-01-032-28/+0
|
* fix compilation on non-Windows platformsBenjamin Peterson2009-01-021-0/+2
|
* Issue #4075: Use OutputDebugStringW in Py_FatalError.Martin v. Löwis2009-01-021-3/+17
|
* welcome to 2009, Python!Benjamin Peterson2009-01-011-1/+1
|