Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix compliation on NetBSD | Gregory P. Smith | 2010-10-13 | 1 | -1/+1 |
| | |||||
* | Issue #3873: Speed up unpickling from file objects which have a peek() | Antoine Pitrou | 2010-10-12 | 1 | -24/+93 |
| | | | | method. | ||||
* | Issue #10075: Add a session_stats() method to SSLContext objects. | Antoine Pitrou | 2010-10-12 | 1 | -0/+41 |
| | |||||
* | Upgrade to Unicode 6.0.0. | Martin v. Löwis | 2010-10-11 | 2 | -18656/+20399 |
| | | | | | | | | makeunicodedata.py: download all data files from unicode.org, switch to extracting Unihan data from zip file. Read linebreakprops and derivednormalizationprops even for old versions, even though they are not used in delta records. test:unicode.py: U+11000 is now assigned, use U+14000 instead. | ||||
* | Issue #10055: Make json C89-compliant in UCS4 mode. | Antoine Pitrou | 2010-10-09 | 1 | -1/+1 |
| | |||||
* | copy_absolute() keeps the relative path on _Py_wgetcwd() failure | Victor Stinner | 2010-10-07 | 1 | -2/+5 |
| | | | | | .. instead of raising a fatal error. Even if the current directory was deleted, use relative paths may still work (eg. run Python with "../python"). | ||||
* | copy_absolute() raises a fatal error on _Py_wgetcwd() failure | Victor Stinner | 2010-10-07 | 1 | -1/+2 |
| | |||||
* | Create fileutils.c/.h | Victor Stinner | 2010-10-07 | 2 | -285/+4 |
| | | | | | | | * _Py_fopen() and _Py_stat() come from Python/import.c * (_Py)_wrealpath() comes from Python/sysmodule.c * _Py_char2wchar(), _Py_wchar2char() and _Py_wfopen() come from Modules/main.c * (_Py)_wstat(), (_Py)_wgetcwd(), _Py_wreadlink() come from Modules/getpath.c | ||||
* | _wrealpath() and _Py_wreadlink() support surrogates (PEP 383) | Victor Stinner | 2010-10-07 | 1 | -3/+6 |
| | | | | Use _Py_wchar2char() to support surrogate characters in the input path. | ||||
* | PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject* | Victor Stinner | 2010-10-07 | 5 | -6/+6 |
| | | | | | All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the prototype for the new function PyUnicode_AsWideCharString(). | ||||
* | time: fix gcc warning | Victor Stinner | 2010-10-07 | 1 | -27/+28 |
| | | | | | * Create format_arg variable to use the right types * Strip trailing spaces | ||||
* | Rewrite RunMainFromImporter() | Victor Stinner | 2010-10-06 | 1 | -25/+35 |
| | | | | | | | | | * fix argv0 reference counter if PyList_SetItem() fails * don't use complex if conditions, but a simple indentation and "goto error" * simplify error handling (remove Py_XDECREF(importer) from the error label) * don't set sys_path to NULL (it's useless, sys_path is a borrowed reference and sys_path is not a static variable) * try to write only one instruction per line for better readability | ||||
* | Issue #8670: Rename testcapi unicode test methods | Victor Stinner | 2010-10-02 | 1 | -4/+4 |
| | | | | | * test_aswidechar() => unicode_aswidechar() * test_aswidecharstring() => unicode_aswidecharstring() | ||||
* | Oops, revert unwanted _testcapi changes of r85174 | Victor Stinner | 2010-10-02 | 1 | -4/+4 |
| | |||||
* | Issue #8670: ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t | Victor Stinner | 2010-10-02 | 2 | -6/+7 |
| | |||||
* | Issue #8870: PyUnicode_AsWideCharString() doesn't count the trailing nul ↵ | Victor Stinner | 2010-10-02 | 1 | -9/+63 |
| | | | | | | character And write unit tests for PyUnicode_AsWideChar() and PyUnicode_AsWideCharString(). | ||||
* | Fix #10003. Add SIGBREAK to the set of valid signals on Windows. | Brian Curtin | 2010-10-01 | 1 | -0/+5 |
| | | | | This fixes a regression noticed by bzr, introduced by issue #9324. | ||||
* | Issue #6608: time.asctime is now checking struct tm fields its input | Alexander Belopolsky | 2010-10-01 | 1 | -62/+76 |
| | | | | before passing it to the system asctime. Patch by MunSic Jeong. | ||||
* | Issue #9599: Further accuracy tweaks to loghelper. For an integer n that's ↵ | Mark Dickinson | 2010-09-29 | 1 | -14/+22 |
| | | | | small enough to be converted to a float without overflow, log(n) is now computed as log(float(n)), and similarly for log10. | ||||
* | Issue #9979: Use PyUnicode_AsWideCharString() in _ctypes module | Victor Stinner | 2010-09-29 | 2 | -24/+5 |
| | | | | | | | | * Convert unicode to wide character string before creating the PyCapsule object * Catch integer overflow * Avoid useless memset() * Prepare the support of surrogates | ||||
* | Issue #9979: Use PyUnicode_AsWideCharString() in time.strftime() | Victor Stinner | 2010-09-29 | 1 | -21/+20 |
| | | | | | Allocate memory with PyMem_Alloc() instead of the PyBytes API. Prepare the surrogates support. | ||||
* | Issue #9979: Use PyUnicode_AsWideCharString() for _locale.strcoll() | Victor Stinner | 2010-09-29 | 1 | -17/+4 |
| | | | | It simplifies the code and prepare the surrogates support. | ||||
* | Fix compilation under Windows | Antoine Pitrou | 2010-09-28 | 1 | -0/+3 |
| | |||||
* | Issue #9090: When a socket with a timeout fails with EWOULDBLOCK or EAGAIN, | Antoine Pitrou | 2010-09-28 | 1 | -15/+88 |
| | | | | | | retry the select() loop instead of bailing out. This is because select() can incorrectly report a socket as ready for reading (for example, if it received some data with an invalid checksum). | ||||
* | Fix for issue #9568. | Ronald Oussoren | 2010-09-28 | 1 | -1/+1 |
| | |||||
* | Issue #9599: Tweak loghelper algorithm to return slightly improved results ↵ | Mark Dickinson | 2010-09-28 | 1 | -6/+8 |
| | | | | for powers of 2. | ||||
* | Issue #9950: Fix socket.sendall() crash or misbehaviour when a signal is | Antoine Pitrou | 2010-09-27 | 1 | -23/+25 |
| | | | | | | received. Now sendall() properly calls signal handlers if necessary, and retries sending if these returned successfully, including on sockets with a timeout. | ||||
* | issue 9910 | Kristján Valur Jónsson | 2010-09-27 | 1 | -0/+20 |
| | | | | Add a Py_SetPath api to override magic path computations when starting up python. | ||||
* | Fix a typo. full->final | Brian Curtin | 2010-09-24 | 1 | -1/+1 |
| | |||||
* | #9808. Implement os.getlogin for Windows, completed by Jon Anglin. | Brian Curtin | 2010-09-23 | 1 | -2/+15 |
| | | | | | | | The test is semi-dumb, it just makes sure something comes back since we don't have a solid source to validate the returned login. We can't be 100% sure that the USERNAME env var will always match what os.getlogin() returns, so we don't make any specific assertion there. | ||||
* | Issue #9928: Properly initialize the types exported by the bz2 module. | Antoine Pitrou | 2010-09-23 | 1 | -3/+6 |
| | |||||
* | Issue 9916: Add some missing errno symbols. | Barry Warsaw | 2010-09-22 | 1 | -0/+30 |
| | |||||
* | Issue #9908: Fix os.stat() on bytes paths under Windows 7. | Antoine Pitrou | 2010-09-21 | 1 | -17/+31 |
| | |||||
* | Issue #2643: msync() is not called anymore when deallocating an open mmap | Antoine Pitrou | 2010-09-21 | 1 | -1/+0 |
| | | | | object, only munmap(). | ||||
* | Remove unused code in posixmodule.c | Amaury Forgeot d'Arc | 2010-09-17 | 1 | -68/+0 |
| | |||||
* | Issue #9854: The default read() implementation in io.RawIOBase now | Antoine Pitrou | 2010-09-14 | 1 | -2/+2 |
| | | | | handles non-blocking readinto() returning None correctly. | ||||
* | Remove C++-style comments | Antoine Pitrou | 2010-09-14 | 1 | -2/+2 |
| | |||||
* | Do not print additional shutdown message when gc.DEBUG_SAVEALL is set | Antoine Pitrou | 2010-09-14 | 1 | -1/+2 |
| | |||||
* | - Issue #9817: Add expat COPYING file; add expat, libffi and expat licenses | Matthias Klose | 2010-09-12 | 1 | -0/+21 |
| | | | | to Doc/license.rst. | ||||
* | Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility | Hirokazu Yamamoto | 2010-09-12 | 1 | -0/+1 |
| | | | | with Python2.7. | ||||
* | Isse #8589: Decode PYTHONWARNINGS from utf-8 on Mac OS X | Victor Stinner | 2010-09-12 | 1 | -2/+6 |
| | | | | Instead of the locale encoding. | ||||
* | Remove compatibility code for Python < 2.1, < 2.2 and < 2.4. | Georg Brandl | 2010-09-11 | 1 | -42/+0 |
| | |||||
* | Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error on | Victor Stinner | 2010-09-11 | 1 | -0/+12 |
| | | | | | | a non-ASCII byte in the format string. Document also the encoding. | ||||
* | Issue #9579, #9580: Fix os.confstr() for value longer than 255 bytes and encode | Victor Stinner | 2010-09-10 | 1 | -20/+22 |
| | | | | | the value with filesystem encoding and surrogateescape (instead of utf-8 in strict mode). | ||||
* | Issue #8589: surrogateescape error handler is not available at startup | Victor Stinner | 2010-09-10 | 1 | -6/+11 |
| | | | | | Py_Main() uses _Py_wchar2char() + PyUnicode_FromWideChar() instead of PyUnicode_DecodeFSDefault(), because the PyCodec machinery is not ready yet. | ||||
* | Issue #9402: pyexpat uses Py_DECREF() instead of PyObject_DEL() | Victor Stinner | 2010-09-10 | 1 | -15/+8 |
| | | | | Fix a crash if Python is compiled in pydebug mode. | ||||
* | Issue #941346: Improve the build process under AIX and allow Python to | Antoine Pitrou | 2010-09-10 | 1 | -7/+11 |
| | | | | be built as a shared library. Patch by Sébastien Sablé. | ||||
* | Untabify file. | Amaury Forgeot d'Arc | 2010-09-10 | 1 | -3/+3 |
| | |||||
* | Issue #9410: Various optimizations to the pickle module, leading to | Antoine Pitrou | 2010-09-09 | 1 | -519/+1830 |
| | | | | | speedups up to 4x (depending on the benchmark). Mostly ported from Unladen Swallow; initial patch by Alexandre Vassalotti. | ||||
* | #6394: Add os.getppid() support for Windows. | Amaury Forgeot d'Arc | 2010-09-07 | 1 | -2/+52 |
| |