summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #10055: Make json C89-compliant in UCS4 mode.Antoine Pitrou2010-10-091-1/+1
|
* copy_absolute() keeps the relative path on _Py_wgetcwd() failureVictor Stinner2010-10-071-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() failureVictor Stinner2010-10-071-1/+2
|
* Create fileutils.c/.hVictor Stinner2010-10-072-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 Stinner2010-10-071-3/+6
| | | | Use _Py_wchar2char() to support surrogate characters in the input path.
* PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*Victor Stinner2010-10-075-6/+6
| | | | | All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the prototype for the new function PyUnicode_AsWideCharString().
* time: fix gcc warningVictor Stinner2010-10-071-27/+28
| | | | | * Create format_arg variable to use the right types * Strip trailing spaces
* Rewrite RunMainFromImporter()Victor Stinner2010-10-061-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 methodsVictor Stinner2010-10-021-4/+4
| | | | | * test_aswidechar() => unicode_aswidechar() * test_aswidecharstring() => unicode_aswidecharstring()
* Oops, revert unwanted _testcapi changes of r85174Victor Stinner2010-10-021-4/+4
|
* Issue #8670: ctypes.c_wchar supports non-BMP characters with 32 bits wchar_tVictor Stinner2010-10-022-6/+7
|
* Issue #8870: PyUnicode_AsWideCharString() doesn't count the trailing nul ↵Victor Stinner2010-10-021-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 Curtin2010-10-011-0/+5
| | | | This fixes a regression noticed by bzr, introduced by issue #9324.
* Issue #6608: time.asctime is now checking struct tm fields its inputAlexander Belopolsky2010-10-011-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 Dickinson2010-09-291-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 moduleVictor Stinner2010-09-292-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 Stinner2010-09-291-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 Stinner2010-09-291-17/+4
| | | | It simplifies the code and prepare the surrogates support.
* Fix compilation under WindowsAntoine Pitrou2010-09-281-0/+3
|
* Issue #9090: When a socket with a timeout fails with EWOULDBLOCK or EAGAIN,Antoine Pitrou2010-09-281-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 Oussoren2010-09-281-1/+1
|
* Issue #9599: Tweak loghelper algorithm to return slightly improved results ↵Mark Dickinson2010-09-281-6/+8
| | | | for powers of 2.
* Issue #9950: Fix socket.sendall() crash or misbehaviour when a signal isAntoine Pitrou2010-09-271-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 9910Kristján Valur Jónsson2010-09-271-0/+20
| | | | Add a Py_SetPath api to override magic path computations when starting up python.
* Fix a typo. full->finalBrian Curtin2010-09-241-1/+1
|
* #9808. Implement os.getlogin for Windows, completed by Jon Anglin.Brian Curtin2010-09-231-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 Pitrou2010-09-231-3/+6
|
* Issue 9916: Add some missing errno symbols.Barry Warsaw2010-09-221-0/+30
|
* Issue #9908: Fix os.stat() on bytes paths under Windows 7.Antoine Pitrou2010-09-211-17/+31
|
* Issue #2643: msync() is not called anymore when deallocating an open mmapAntoine Pitrou2010-09-211-1/+0
| | | | object, only munmap().
* Remove unused code in posixmodule.cAmaury Forgeot d'Arc2010-09-171-68/+0
|
* Issue #9854: The default read() implementation in io.RawIOBase nowAntoine Pitrou2010-09-141-2/+2
| | | | handles non-blocking readinto() returning None correctly.
* Remove C++-style commentsAntoine Pitrou2010-09-141-2/+2
|
* Do not print additional shutdown message when gc.DEBUG_SAVEALL is setAntoine Pitrou2010-09-141-1/+2
|
* - Issue #9817: Add expat COPYING file; add expat, libffi and expat licensesMatthias Klose2010-09-121-0/+21
| | | | to Doc/license.rst.
* Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibilityHirokazu Yamamoto2010-09-121-0/+1
| | | | with Python2.7.
* Isse #8589: Decode PYTHONWARNINGS from utf-8 on Mac OS XVictor Stinner2010-09-121-2/+6
| | | | Instead of the locale encoding.
* Remove compatibility code for Python < 2.1, < 2.2 and < 2.4.Georg Brandl2010-09-111-42/+0
|
* Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error onVictor Stinner2010-09-111-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 encodeVictor Stinner2010-09-101-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 startupVictor Stinner2010-09-101-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 Stinner2010-09-101-15/+8
| | | | Fix a crash if Python is compiled in pydebug mode.
* Issue #941346: Improve the build process under AIX and allow Python toAntoine Pitrou2010-09-101-7/+11
| | | | be built as a shared library. Patch by Sébastien Sablé.
* Untabify file.Amaury Forgeot d'Arc2010-09-101-3/+3
|
* Issue #9410: Various optimizations to the pickle module, leading toAntoine Pitrou2010-09-091-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'Arc2010-09-071-2/+52
|
* Issue #9758: When fcntl.ioctl() was called with mutable_flag set to True,Antoine Pitrou2010-09-071-1/+1
| | | | | and the passed buffer was exactly 1024 bytes long, the buffer wouldn't be updated back after the system call. Original patch by Brian Brazil.
* More docstring updatesAmaury Forgeot d'Arc2010-09-061-4/+5
|
* Issue #5506: BytesIO objects now have a getbuffer() method exporting aAntoine Pitrou2010-09-063-0/+145
| | | | | view of their contents without duplicating them. The view is both readable and writable.
* Implement #7566 - os.path.sameopenfile for Windows.Brian Curtin2010-09-061-0/+28
| | | | | | This uses the GetFileInformationByHandle function to return a tuple of values to identify a file, then ntpath.sameopenfile compares file tuples, which is exposed as os.path.sameopenfile.