summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* Issue #5437: A preallocated MemoryError instance should not hold tracebackAntoine Pitrou2010-10-281-1/+0
| | | | data (including local variables caught in the stack trace) alive infinitely.
* Issue #8761: Mangle PyUnicode_CompareWithASCIIString function name forVictor Stinner2010-10-241-2/+2
| | | | narrow/wide unicode build.
* Add a new warning gategory, ResourceWarning, as discussed on python-dev. It ↵Georg Brandl2010-10-241-0/+1
| | | | | | | | is silent by default, except when configured --with-pydebug. Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
* follow up to #9778: define and use an unsigned hash typeBenjamin Peterson2010-10-231-1/+3
|
* Issue #10089: Add support for arbitrary -X options on the command-line.Antoine Pitrou2010-10-211-0/+3
| | | | They can be retrieved through a new attribute `sys._xoptions`.
* #4499: silence compiler warning on AIX.R. David Murray2010-10-181-0/+2
| | | | Patch from ActiveState.
* make hashes always the size of pointers; introduce Py_hash_t #9778Benjamin Peterson2010-10-178-27/+24
|
* _PyImport_FixupExtension() and _PyImport_FindExtension() uses FS encodingVictor Stinner2010-10-171-2/+4
| | | | | | | * Rename _PyImport_FindExtension() to _PyImport_FindExtensionUnicode(): the filename becomes a Unicode object instead of byte string * Rename _PyImport_FixupExtension() to _PyImport_FixupExtensionUnicode(): the filename becomes a Unicode object instead of byte string
* Add an optional size argument to _Py_char2wchar()Victor Stinner2010-10-161-1/+2
| | | | | | _Py_char2wchar() callers usually need the result size in characters. Since it's trivial to compute it in _Py_char2wchar() (O(1) whereas wcslen() is O(n)), add an option to get it.
* Use locale encoding if Py_FileSystemDefaultEncoding is not setVictor Stinner2010-10-152-11/+7
| | | | | | | | * PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_DecodeFSDefault() use the locale encoding instead of UTF-8 if Py_FileSystemDefaultEncoding is NULL * redecode_filenames() functions and _Py_code_object_list (issue #9630) are no more needed: remove them
* Mark _Py_char2wchar() input argument as constantVictor Stinner2010-10-151-1/+1
|
* Post-release bumps.Georg Brandl2010-10-121-1/+1
|
* Bump to 3.2a3.Georg Brandl2010-10-101-2/+2
|
* Issue #9738: Document PyErr_SetString() and PyErr_SetFromErrnoWithFilename()Victor Stinner2010-10-091-2/+7
| | | | encodings
* _Py_wrealpath() requires the size of the output bufferVictor Stinner2010-10-071-1/+2
|
* _Py_stat() and _Py_fopen(): avoid PyUnicode_AsWideCharString() on WindowsVictor Stinner2010-10-071-2/+2
| | | | | On Windows, Py_UNICODE is wchar_t, so we can avoid the expensive Py_UNICODE* => wchar_t* conversion.
* Fix fileutils for WindowsVictor Stinner2010-10-071-1/+1
| | | | | | * Don't define _Py_wstat() on Windows, Windows has its own _wstat() function with a different API (the stat buffer has another type) * Include windows.h
* Create fileutils.c/.hVictor Stinner2010-10-072-11/+56
| | | | | | | * _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
* PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*Victor Stinner2010-10-071-1/+1
| | | | | All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the prototype for the new function PyUnicode_AsWideCharString().
* Issue #9630: Redecode filenames when setting the filesystem encodingVictor Stinner2010-09-291-0/+7
| | | | | | | | | | | | | | Redecode the filenames of: - all modules: __file__ and __path__ attributes - all code objects: co_filename attribute - sys.path - sys.meta_path - sys.executable - sys.path_importer_cache (keys) Keep weak references to all code objects until initfsencoding() is called, to be able to redecode co_filename attribute of all code objects.
* Issue #9979: Create function PyUnicode_AsWideCharString().Victor Stinner2010-09-291-2/+17
|
* Issue #9090: When a socket with a timeout fails with EWOULDBLOCK or EAGAIN,Antoine Pitrou2010-09-281-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 9910Kristján Valur Jónsson2010-09-271-0/+1
| | | | Add a Py_SetPath api to override magic path computations when starting up python.
* add column offset to all syntax errorsBenjamin Peterson2010-09-201-0/+2
|
* add PyErr_SyntaxLocationEx, to support adding a column offsetBenjamin Peterson2010-09-201-0/+1
|
* Remove pointers to a FAQ entry that no longer exists. Incorporate some text ↵Daniel Stutzbach2010-09-141-7/+8
| | | | from the old FAQ into the docs
* Issue #9828: Destroy the GIL in Py_Finalize(), so that it gets properlyAntoine Pitrou2010-09-131-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'Arc2010-09-121-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 Yamamoto2010-09-111-2/+2
|
* Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error onVictor Stinner2010-09-112-3/+13
| | | | | | a non-ASCII byte in the format string. Document also the encoding.
* Issue #9632: Remove sys.setfilesystemencoding() function: use PYTHONFSENCODINGVictor Stinner2010-09-101-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 localAmaury Forgeot d'Arc2010-09-101-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 Brandl2010-09-051-1/+1
|
* Bump to 3.2a2.Georg Brandl2010-09-051-2/+2
|
* Issue #9225: Remove the ROT_FOUR and DUP_TOPX opcode, the latter replacedAntoine Pitrou2010-09-041-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 Stinner2010-09-031-1/+1
|
* Create PyUnicode_strdup() functionVictor Stinner2010-09-011-1/+10
|
* Create Py_UNICODE_strcat() functionVictor Stinner2010-09-011-0/+3
|
* Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()Antoine Pitrou2010-09-011-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() becomeAntoine Pitrou2010-09-011-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 Stutzbach2010-08-311-2/+0
| | | | other than MSC
* 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.