summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* Issue #4835: make PyLong_FromSocket_t() and PyLong_AsSocket_t() privateAntoine Pitrou2010-08-281-9/+0
| | | | | to the socket module, and fix the width of socket descriptors to be correctly detected under 64-bit Windows.
* Issue #1868: Eliminate subtle timing issues in thread-local objects byAntoine Pitrou2010-08-281-0/+8
| | | | getting rid of the cached copy of thread-local attribute dictionary.
* #5127: Even on narrow unicode builds, the C functions that access the UnicodeAmaury Forgeot d'Arc2010-08-181-58/+22
| | | | | | | | | | Database (Py_UNICODE_TOLOWER, Py_UNICODE_ISDECIMAL, and others) now accept and return characters from the full Unicode range (Py_UCS4). The differences from Python code are few: - unicodedata.numeric(), unicodedata.decimal() and unicodedata.digit() now return the correct value for large code points - repr() may consider more characters as printable.
* Issue #9425: Create PyModule_GetFilenameObject() functionVictor Stinner2010-08-171-0/+1
| | | | | | ... to get the filename as a unicode object, instead of a byte string. Function needed to support unencodable filenames. Deprecate PyModule_GetFilename() in favor on the new function.
* Remove unused functions _PyImport_FindModule and _PyImport_IsScriptVictor Stinner2010-08-171-3/+0
|
* Issue #9612: The set object is now 64-bit clean under Windows.Antoine Pitrou2010-08-171-1/+5
|
* Issue #9425: Create Py_UNICODE_strncmp() functionVictor Stinner2010-08-161-6/+21
| | | | | The code is based on strncmp() of the libiberty library, function in the public domain.
* Issue #9599: Create PySys_FormatStdout() and PySys_FormatStderr()Victor Stinner2010-08-161-2/+4
| | | | | Write a message formatted by PyUnicode_FromFormatV() to sys.stdout and sys.stderr.
* Create _Py_fopen() for PyUnicodeObject pathVictor Stinner2010-08-141-1/+2
| | | | | | Call _wfopen() on Windows, or fopen() otherwise. Return the new file object on success, or NULL if the file cannot be open or (if PyErr_Occurred()) on unicode error.
* Issue #9425: Create private _Py_stat() functionVictor Stinner2010-08-141-0/+5
| | | | Use stat() or _wstat() depending on the OS.
* Issue #9542: Create PyUnicode_FSDecoder() functionVictor Stinner2010-08-131-3/+9
| | | | | | | | | | | | It's a ParseTuple converter: decode bytes objects to unicode using PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is. * Don't specify surrogateescape error handler in the comments nor the documentation, but PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_EncodeFSDefault() because these functions use strict error handler for the mbcs encoding (on Windows). * Remove PyUnicode_FSConverter() comment in unicodeobject.c to avoid inconsistency with unicodeobject.h.
* Create _Py_wchar2char() function, reverse of _Py_char2wchar()Victor Stinner2010-08-131-0/+3
| | | | | * Use _Py_wchar2char() in _wstat() and _Py_wfopen() * Document _Py_char2wchar()
* Reimplement addbuilddir() in C inside getpath.c, so as to execute itAntoine Pitrou2010-08-131-1/+2
| | | | | at interpreter startup before importing any non-builtin modules. Should fix #9589.
* De-duplicate contents of pytime.hAntoine Pitrou2010-08-131-35/+0
|
* Issue #9425: Create PyErr_WarnFormat() functionVictor Stinner2010-08-131-0/+1
| | | | | | | Similar to PyErr_WarnEx() but use PyUnicode_FromFormatV() to format the warning message. Strip also some trailing spaces.
* Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99Alexander Belopolsky2010-08-111-0/+10
| | | | | va_copy, but available on all python platforms. Untabified a few unrelated files.
* Issue #9425: create Py_UNICODE_strrchr() functionVictor Stinner2010-08-101-0/+4
|
* correct commentBenjamin Peterson2010-08-091-1/+1
|
* Issue #477863: Print a warning at shutdown if gc.garbage is not empty.Antoine Pitrou2010-08-081-0/+1
|
* Issue #9079: Added _PyTime_gettimeofday(_PyTime_timeval *tp) to C APIAlexander Belopolsky2010-08-052-0/+71
| | | | | | exposed in Python.h. This function is similar to POSIX gettimeofday(struct timeval *tp), but available on platforms without gettimeofday().
* Issue #9337: Make float.__str__ identical to float.__repr__.Mark Dickinson2010-08-041-6/+0
| | | | (And similarly for complex numbers.)
* Post-release updates.Georg Brandl2010-07-311-1/+1
|
* Bump versions and review NEWS file.Georg Brandl2010-07-311-2/+2
|
* revert unintended changesBenjamin Peterson2010-07-202-2/+0
|
* move test_trace.py so as not to conflict with future tests for the trace moduleBenjamin Peterson2010-07-202-0/+2
|
* Issue #9036: Throughout the code base, Py_CHARMASK is used on 8-bit wideStefan Krah2010-07-191-6/+1
| | | | | | | | | | | | | signed/unsigned chars or on integers directly derived from those. In all cases, it could be replaced by a simple cast to (unsigned char). Reasons for the change: a) Make the comment more explicit. b) If char is unsigned, the cast is optimized away. c) If char is unsigned, gcc emits spurious "array subscript has type 'char'" warnings.
* make struct sequences subclass tuple; kill lots of codeBenjamin Peterson2010-07-071-8/+3
| | | | This fixes #8413.
* Issue #9089: Remove references to intobject.c and intobject.h from comments.Mark Dickinson2010-06-271-1/+1
|
* #9078: fix some Unicode C API descriptions, in comments and docs.Georg Brandl2010-06-271-6/+6
|
* Add specification for the Py_IS* macros in pyctype.h.Stefan Krah2010-06-241-0/+3
|
* Issue #6543: Write the traceback in the terminal encoding instead of utf-8.Victor Stinner2010-06-171-6/+6
| | | | | | Fix the encoding of the modules filename. Reindent also traceback.h, just because I hate tabs :-)
* Fix naming inconsistency.Mark Dickinson2010-06-071-2/+2
|
* Issue #8817: Expose round-to-nearest variant of divmod in _PyLong_Divmod_NearMark Dickinson2010-05-261-0/+8
| | | | for use by the datetime module; also refactor long_round to use this function.
* Issue #8188: Introduce a new scheme for computing hashes of numbersMark Dickinson2010-05-231-0/+14
| | | | | | (instances of int, float, complex, decimal.Decimal and fractions.Fraction) that makes it easy to maintain the invariant that hash(x) == hash(y) whenever x and y have equal value.
* Merged revisions 81398 via svnmerge fromAntoine Pitrou2010-05-211-0/+1
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81398 | antoine.pitrou | 2010-05-21 19:12:38 +0200 (ven., 21 mai 2010) | 6 lines Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allows embedders of the interpreter to set sys.argv without also modifying sys.path. This helps fix `CVE-2008-5983 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_. ........
* Issue #8589: Decode PYTHONWARNINGS environment variable with the file systemVictor Stinner2010-05-191-0/+1
| | | | | encoding and surrogateespace error handler instead of the locale encoding to be consistent with os.environ. Add PySys_AddWarnOptionUnicode() function.
* rephraseBenjamin Peterson2010-05-151-2/+2
|
* Issue #8715: Create PyUnicode_EncodeFSDefault() function: Encode a UnicodeVictor Stinner2010-05-151-0/+10
| | | | | | object to Py_FileSystemDefaultEncoding with the "surrogateescape" error handler, return a bytes object. If Py_FileSystemDefaultEncoding is not set, fall back to UTF-8.
* Issue #8711: Document PyUnicode_DecodeFSDefault*() functionsVictor Stinner2010-05-141-8/+12
| | | | | | | | | | * Add paragraph titles to c-api/unicode.rst. * Fix PyUnicode_DecodeFSDefault*() comment: it now uses the "surrogateescape" error handler (and not "replace") * Remove "The function is intended to be used for paths and file names only during bootstrapping process where the codecs are not set up." from PyUnicode_FSConverter() comment: it is used after the bootstrapping and for other purposes than file names
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-0915-1443/+1443
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* alias PyUnicode_CompareWithASCIIBenjamin Peterson2010-05-071-0/+2
|
* Make (most of) Python's tests pass under Thread Sanitizer.Jeffrey Yasskin2010-05-034-2/+685
| | | | | | | | | | | | | | | | | | http://code.google.com/p/data-race-test/wiki/ThreadSanitizer is a dynamic data race detector that runs on top of valgrind. With this patch, the binaries at http://code.google.com/p/data-race-test/wiki/ThreadSanitizer#Binaries pass many but not all of the Python tests. All of regrtest still passes outside of tsan. I've implemented part of the C1x atomic types so that we can explicitly mark variables that are used across threads, and get defined behavior as compilers advance. I've added tsan's client header and implementation to the codebase in dynamic_annotations.{h,c} (docs at http://code.google.com/p/data-race-test/wiki/DynamicAnnotations). Unfortunately, I haven't been able to get helgrind and drd to give sensible error messages, even when I use their client annotations, so I'm not supporting them.
* prevent the dict constructor from accepting non-string keyword args #8419Benjamin Peterson2010-04-242-0/+2
| | | | | This adds PyArg_ValidateKeywordArguments, which checks that keyword arguments are all strings, using an optimized method if possible.
* Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore,Victor Stinner2010-04-221-2/+2
| | | | you have to convert your bytearray filenames to bytes
* Merged revisions 80178 via svnmerge fromRonald Oussoren2010-04-181-1/+10
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80178 | ronald.oussoren | 2010-04-18 15:47:49 +0200 (Sun, 18 Apr 2010) | 2 lines Fix for issue #7072 ........
* Move _Py_char2wchar from python.c to main.c.Ronald Oussoren2010-04-181-1/+1
| | | | | | | This fixes issue #8441: python.c is not included in the framework while main.c is and without this patch you get a link error when building Python.framework on OSX.
* Fix the --with-cxx-main build.Collin Winter2010-04-171-0/+6
|
* PEP 3147Barry Warsaw2010-04-171-0/+3
|
* Issue #7316: the acquire() method of lock objects in the :mod:`threading`Antoine Pitrou2010-04-141-0/+35
| | | | | | module now takes an optional timeout argument in seconds. Timeout support relies on the system threading library, so as to avoid a semi-busy wait loop.
* #7301: decode $PYTHONWARNINGS in the same way as argv, test non-ascii valuesPhilip Jenvey2010-04-141-0/+3
|