| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | | |
autological-constant-out-of-range-compare warnings with clang.
|
| | |
| | |
| | |
| | |
| | |
| | | |
tracemalloc in objects destructor
Replace atexit handler with an harcoded C function _PyTraceMalloc_Fini().
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
module loaders.
Due to the fact that the call signatures for extension modules and
built-in modules does not allow for the specifying of what module to
initialize and that on Windows all extension modules are built-in
modules, work to clean up built-in and extension module initialization
will have to wait until Python 3.5. Because of this the semantics of
exec_module() would be incorrect, so removing the methods for now is
the best option; load_module() is still used as a fallback by
importlib and so this won't affect semantics.
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | | |
character strings to float.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
written in C.
As a part of this, a few doctests have been added to the builtins module
(on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all
platforms) on float, and test_builtins now runs doctests in builtins.
|
| | |
| | |
| | |
| | | |
computes the stack effect of bytecode instructions.
|
| | |
| | |
| | |
| | | |
95eea8624d05 (issue #16596).
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.
The latter mechanism remains in place for third party non-text
encodings.
|
| | |
| | |
| | |
| | | |
de Gaye.
|
| | |
| | |
| | |
| | | |
The bitshift and xor op for 32bit builds has changed the order of hash values.
|
| | |
| | |
| | |
| | | |
Python now uses SipHash24 on all major platforms.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Some compilers (ex: Visual Studio) decode -2147483648 as a unsigned integer
instead of an signed integer.
|
| | |
| | |
| | |
| | | |
INT32_MIN and INT32_MAX constants are unknown on Windows.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
compiler warnings on Windows 64-bit. Use Py_SAFE_DOWNCAST() where the final
downcast is needed.
The bytecode doesn't support integer parameters larger than 32-bit yet.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.
Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
|
| | |
| | |
| | |
| | | |
portable
|
| | |
| | |
| | |
| | | |
Fix compiler warnings on Windows 64-bit
|
| | |
| | |
| | |
| | | |
char, n is in range [0; 255] (a tuple cannot have a negative length)
|
| | |
| | |
| | |
| | | |
CryptGenRandom()
|
|\ \ \
| |/ /
| | |
| | | |
PATH_MAX is not declared on IRIX nor Windows.
|
| | |
| | |
| | |
| | | |
PATH_MAX is not declared on IRIX nor Windows.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
the size of the fullpath buffer, not PATH_MAX. fullpath is declared using
MAXPATHLEN or MAX_PATH depending on the OS, and PATH_MAX is not declared on
IRIX.
|
| | |
| | |
| | |
| | |
| | | |
the fullpath buffer, not PATH_MAX. fullpath is declared using MAXPATHLEN or
MAX_PATH depending on the OS, and PATH_MAX is not declared on IRIX.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
the size of the env_home buffer, not PATH_MAX+1. env_home is declared using
MAXPATHLEN+1, and PATH_MAX is not declared on IRIX.
|
| | |
| | |
| | |
| | |
| | | |
the env_home buffer, not PATH_MAX+1. env_home is declared using MAXPATHLEN+1,
and PATH_MAX is not declared on IRIX.
|
| | | |
|
| | |
| | |
| | |
| | | |
failure
|
| | | |
|
| | |
| | |
| | |
| | | |
the exception when PyList_Append() fails
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- output type errors now redirect users to the type-neutral
convenience functions in the codecs module
- stateless errors that occur during encoding and decoding
will now be automatically wrapped in exceptions that give
the name of the codec involved
|
| | |
| | |
| | |
| | | |
PyUnicode_Substring() failure (ex: MemoryError)
|
| | |
| | |
| | |
| | | |
Patch written by Andrei Dorian Duma.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
shutdown to call objects destructors. So "unclosed file" resource warnings are
now corretly emitted for daemon threads.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
are used.
Move also _Py_IDENTIFIER() defintions to the top in modified files to remove
identifiers duplicated in the same file.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Use aslo PyUnicode_FromFormat() to format the line so only one call to
PyFile_WriteObject() is needed. tb_displayline() of Python/traceback.c has
similar implementation.
|
| | |
| | |
| | |
| | | |
The comment is meaningless since changeset 4e985a96a612.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
_PyUnicode_CompareWithId() is faster than PyUnicode_CompareWithASCIIString()
when both strings are equal and interned.
Add also _PyId_builtins identifier for "builtins" common string.
|
| | |
| | |
| | |
| | | |
Replace _PyUnicode_AsString()+strcmp() with PyUnicode_CompareWithASCIIString().
|
| | |
| | |
| | |
| | | |
string "flush" to call the flush method
|
| | |
| | |
| | |
| | | |
"metaclass" string
|