Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #9979: Create function PyUnicode_AsWideCharString(). | Victor Stinner | 2010-09-29 | 1 | -2/+17 |
| | |||||
* | Issue #9090: When a socket with a timeout fails with EWOULDBLOCK or EAGAIN, | Antoine Pitrou | 2010-09-28 | 1 | -0/+11 |
| | | | | | | 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). | ||||
* | issue 9910 | Kristján Valur Jónsson | 2010-09-27 | 1 | -0/+1 |
| | | | | Add a Py_SetPath api to override magic path computations when starting up python. | ||||
* | add column offset to all syntax errors | Benjamin Peterson | 2010-09-20 | 1 | -0/+2 |
| | |||||
* | add PyErr_SyntaxLocationEx, to support adding a column offset | Benjamin Peterson | 2010-09-20 | 1 | -0/+1 |
| | |||||
* | Remove pointers to a FAQ entry that no longer exists. Incorporate some text ↵ | Daniel Stutzbach | 2010-09-14 | 1 | -7/+8 |
| | | | | from the old FAQ into the docs | ||||
* | Issue #9828: Destroy the GIL in Py_Finalize(), so that it gets properly | Antoine Pitrou | 2010-09-13 | 1 | -0/+1 |
| | | | | | re-created on a subsequent call to Py_Initialize(). The problem (a crash) wouldn't appear in 3.1 or 2.7 where the GIL's structure is more trivial. | ||||
* | #9210: remove --with-wctype-functions configure option. | Amaury Forgeot d'Arc | 2010-09-12 | 1 | -36/+1 |
| | | | | | | | | The internal unicode database is now always used. (after 5 years: see http://mail.python.org/pipermail/python-dev/2004-December/050193.html ) | ||||
* | Issue #9318: Use Py_LL for old compiler. | Hirokazu Yamamoto | 2010-09-11 | 1 | -2/+2 |
| | |||||
* | Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error on | Victor Stinner | 2010-09-11 | 2 | -3/+13 |
| | | | | | | a non-ASCII byte in the format string. Document also the encoding. | ||||
* | Issue #9632: Remove sys.setfilesystemencoding() function: use PYTHONFSENCODING | Victor Stinner | 2010-09-10 | 1 | -1/+0 |
| | | | | | | environment variable to set the filesystem encoding at Python startup. sys.setfilesystemencoding() creates inconsistencies because it is unable to reencode all filenames in all objects. | ||||
* | #4617: Previously it was illegal to delete a name from the local | Amaury Forgeot d'Arc | 2010-09-10 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | namespace if it occurs as a free variable in a nested block. This limitation of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF). This sample was valid in 2.6, but fails to compile in 3.x without this change:: >>> def f(): ... def print_error(): ... print(e) ... try: ... something ... except Exception as e: ... print_error() ... # implicit "del e" here This sample has always been invalid in Python, and now works:: >>> def outer(x): ... def inner(): ... return x ... inner() ... del x There is no need to bump the PYC magic number: the new opcode is used for code that did not compile before. | ||||
* | Post-release update. | Georg Brandl | 2010-09-05 | 1 | -1/+1 |
| | |||||
* | Bump to 3.2a2. | Georg Brandl | 2010-09-05 | 1 | -2/+2 |
| | |||||
* | Issue #9225: Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced | Antoine Pitrou | 2010-09-04 | 1 | -2/+2 |
| | | | | | by the new (and simpler) DUP_TOP_TWO. Performance isn't changed, but our bytecode is a bit simplified. Patch by Demur Rumed. | ||||
* | Rename PyUnicode_strdup() to PyUnicode_AsUnicodeCopy() | Victor Stinner | 2010-09-03 | 1 | -1/+1 |
| | |||||
* | Create PyUnicode_strdup() function | Victor Stinner | 2010-09-01 | 1 | -1/+10 |
| | |||||
* | Create Py_UNICODE_strcat() function | Victor Stinner | 2010-09-01 | 1 | -0/+3 |
| | |||||
* | Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding() | Antoine Pitrou | 2010-09-01 | 1 | -12/+0 |
| | | | | | are now removed, since their effect was inexistent in 3.x (the default encoding is hardcoded to utf-8 and cannot be changed). | ||||
* | Issue #3101: Helper functions _add_one_to_C() and _add_one_to_F() become | Antoine Pitrou | 2010-09-01 | 1 | -0/+7 |
| | | | | _Py_add_one_to_C() and _Py_add_one_to_F(), respectively. | ||||
* | Issue 5553: Improved Py_LOCAL_INLINE to actually inline under compilers ↵ | Daniel Stutzbach | 2010-08-31 | 1 | -2/+0 |
| | | | | other than MSC | ||||
* | Issue #4835: make PyLong_FromSocket_t() and PyLong_AsSocket_t() private | Antoine Pitrou | 2010-08-28 | 1 | -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 by | Antoine Pitrou | 2010-08-28 | 1 | -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 Unicode | Amaury Forgeot d'Arc | 2010-08-18 | 1 | -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() function | Victor Stinner | 2010-08-17 | 1 | -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_IsScript | Victor Stinner | 2010-08-17 | 1 | -3/+0 |
| | |||||
* | Issue #9612: The set object is now 64-bit clean under Windows. | Antoine Pitrou | 2010-08-17 | 1 | -1/+5 |
| | |||||
* | Issue #9425: Create Py_UNICODE_strncmp() function | Victor Stinner | 2010-08-16 | 1 | -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 Stinner | 2010-08-16 | 1 | -2/+4 |
| | | | | | Write a message formatted by PyUnicode_FromFormatV() to sys.stdout and sys.stderr. | ||||
* | Create _Py_fopen() for PyUnicodeObject path | Victor Stinner | 2010-08-14 | 1 | -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() function | Victor Stinner | 2010-08-14 | 1 | -0/+5 |
| | | | | Use stat() or _wstat() depending on the OS. | ||||
* | Issue #9542: Create PyUnicode_FSDecoder() function | Victor Stinner | 2010-08-13 | 1 | -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 Stinner | 2010-08-13 | 1 | -0/+3 |
| | | | | | * Use _Py_wchar2char() in _wstat() and _Py_wfopen() * Document _Py_char2wchar() | ||||
* | Reimplement addbuilddir() in C inside getpath.c, so as to execute it | Antoine Pitrou | 2010-08-13 | 1 | -1/+2 |
| | | | | | at interpreter startup before importing any non-builtin modules. Should fix #9589. | ||||
* | De-duplicate contents of pytime.h | Antoine Pitrou | 2010-08-13 | 1 | -35/+0 |
| | |||||
* | Issue #9425: Create PyErr_WarnFormat() function | Victor Stinner | 2010-08-13 | 1 | -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 C99 | Alexander Belopolsky | 2010-08-11 | 1 | -0/+10 |
| | | | | | va_copy, but available on all python platforms. Untabified a few unrelated files. | ||||
* | Issue #9425: create Py_UNICODE_strrchr() function | Victor Stinner | 2010-08-10 | 1 | -0/+4 |
| | |||||
* | correct comment | Benjamin Peterson | 2010-08-09 | 1 | -1/+1 |
| | |||||
* | Issue #477863: Print a warning at shutdown if gc.garbage is not empty. | Antoine Pitrou | 2010-08-08 | 1 | -0/+1 |
| | |||||
* | Issue #9079: Added _PyTime_gettimeofday(_PyTime_timeval *tp) to C API | Alexander Belopolsky | 2010-08-05 | 2 | -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 Dickinson | 2010-08-04 | 1 | -6/+0 |
| | | | | (And similarly for complex numbers.) | ||||
* | Post-release updates. | Georg Brandl | 2010-07-31 | 1 | -1/+1 |
| | |||||
* | Bump versions and review NEWS file. | Georg Brandl | 2010-07-31 | 1 | -2/+2 |
| | |||||
* | revert unintended changes | Benjamin Peterson | 2010-07-20 | 2 | -2/+0 |
| | |||||
* | move test_trace.py so as not to conflict with future tests for the trace module | Benjamin Peterson | 2010-07-20 | 2 | -0/+2 |
| | |||||
* | Issue #9036: Throughout the code base, Py_CHARMASK is used on 8-bit wide | Stefan Krah | 2010-07-19 | 1 | -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 code | Benjamin Peterson | 2010-07-07 | 1 | -8/+3 |
| | | | | This fixes #8413. | ||||
* | Issue #9089: Remove references to intobject.c and intobject.h from comments. | Mark Dickinson | 2010-06-27 | 1 | -1/+1 |
| | |||||
* | #9078: fix some Unicode C API descriptions, in comments and docs. | Georg Brandl | 2010-06-27 | 1 | -6/+6 |
| |