- 12 Nis, 2019 1 kayıt (commit)
-
-
Victor Stinner yazdı
Fix test_sys.test_getallocatedblocks() when tracemalloc is enabled. If the name of Python memory allocators cannot get read, consider that pymalloc is disabled. Fix the following error: ./python -X tracemalloc -m test test_sys -v -m test_getallocatedblocks ERROR: test_getallocatedblocks (test.test_sys.SysModuleTest) ------------------------------------------------------------ Traceback (most recent call last): File "Lib/test/test_sys.py", line 770, in test_getallocatedblocks alloc_name = _testcapi.pymem_getallocatorsname() RuntimeError: cannot get allocators name
-
- 12 Mar, 2019 1 kayıt (commit)
-
-
Inada Naoki yazdı
Sizeof new empty dict becomes 72 bytes from 240 bytes (amd64). It is same size to empty dict created by dict.clear().
-
- 10 Kas, 2018 1 kayıt (commit)
-
-
- 19 Eyl, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Revert "bpo-34589: Add -X coerce_c_locale command line option (GH-9378)" This reverts commit dbdee007. * Revert "bpo-34589: C locale coercion off by default (GH-9073)" This reverts commit 7a0791b6. * Revert "bpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371)" This reverts commit 188ebfa4.
-
- 18 Eyl, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
Add a new -X coerce_c_locale command line option to control C locale coercion (PEP 538).
-
- 29 Agu, 2018 2 kayıt (commit)
-
-
Victor Stinner yazdı
_PyCoreConfig_Read() is now responsible to choose the filesystem encoding and error handler. Using Py_Main(), the encoding is now chosen even before calling Py_Initialize(). _PyCoreConfig.filesystem_encoding is now the reference, instead of Py_FileSystemDefaultEncoding, for the Python filesystem encoding. Changes: * Add filesystem_encoding and filesystem_errors to _PyCoreConfig * _PyCoreConfig_Read() now reads the locale encoding for the file system encoding. * PyUnicode_EncodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize() now use the interpreter configuration rather than Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors global configuration variables. * Add _Py_SetFileSystemEncoding() and _Py_ClearFileSystemEncoding() private functions to only modify Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors in coreconfig.c. * _Py_CoerceLegacyLocale() now takes an int rather than _PyCoreConfig for the warning.
-
Victor Stinner yazdı
Standard streams like sys.stdout now use the "surrogateescape" error handler, instead of "strict", on the POSIX locale (when the C locale is not coerced and the UTF-8 Mode is disabled). Add tests on sys.stdout.errors with LC_ALL=POSIX.
-
- 28 Agu, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
Python now gets the locale encoding with C code to initialize the encoding of standard streams like sys.stdout. Moreover, the encoding is now initialized to the Python codec name to get a normalized encoding name and to ensure that the codec is loaded. The change avoids importing _bootlocale and _locale modules at startup by default. When the PYTHONIOENCODING environment variable only contains an encoding, the error handler is now is now set explicitly to "strict". Rename also get_default_standard_stream_error_handler() to get_stdio_errors(). Reduce the buffer to format the "cpXXX" string (Windows locale encoding).
-
- 25 Nis, 2018 1 kayıt (commit)
-
-
Pablo Galindo yazdı
External importers were being added in both phases of the import system initialisation. They're only supposed to be added in the second phase, after the import machinery has been appropriately configured.
-
- 13 Ara, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Add -X utf8 command line option, PYTHONUTF8 environment variable and a new sys.flags.utf8_mode flag. * If the LC_CTYPE locale is "C" at startup: enable automatically the UTF-8 mode. * Add _winapi.GetACP(). encodings._alias_mbcs() now calls _winapi.GetACP() to get the ANSI code page * locale.getpreferredencoding() now returns 'UTF-8' in the UTF-8 mode. As a side effect, open() now uses the UTF-8 encoding by default in this mode. * Py_DecodeLocale() and Py_EncodeLocale() now use the UTF-8 encoding in the UTF-8 Mode. * Update subprocess._args_from_interpreter_flags() to handle -X utf8 * Skip some tests relying on the current locale if the UTF-8 mode is enabled. * Add test_utf8mode.py. * _Py_DecodeUTF8_surrogateescape() gets a new optional parameter to return also the length (number of wide characters). * pymain_get_global_config() and pymain_set_global_config() now always copy flag values, rather than only copying if the new value is greater than the old value.
-
- 30 Kas, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
* bpo-32101: Add sys.flags.dev_mode flag Rename also the "Developer mode" to the "Development mode". * bpo-32101: Add PYTHONDEVMODE environment variable Mention it in the development chapiter.
-
- 29 Kas, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Fix _PyMem_SetupAllocators("debug"): always restore allocators to the defaults, rather than only caling _PyMem_SetupDebugHooks(). * Add _PyMem_SetDefaultAllocator() helper to set the "default" allocator. * Add _PyMem_GetAllocatorsName(): get the name of the allocators * main() now uses debug hooks on memory allocators if Py_DEBUG is defined, rather than calling directly malloc() * Document default memory allocators in C API documentation * _Py_InitializeCore() now fails with a fatal user error if PYTHONMALLOC value is an unknown memory allocator, instead of failing with a fatal internal error. * Add new tests on the PYTHONMALLOC environment variable * Add support.with_pymalloc() * Add the _testcapi.WITH_PYMALLOC constant and expose it as support.with_pymalloc(). * sysconfig.get_config_var('WITH_PYMALLOC') doesn't work on Windows, so replace it with support.with_pymalloc(). * pythoninfo: add _testcapi collector for pymem
-
- 15 Kas, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
* Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks. * Setting sys.tracebacklimit to None now causes using the default limit. * Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using the limit LONG_MAX rather than the default limit. * Fixed integer overflows in the case of more than 2**31 traceback items on Windows. * Fixed output errors handling.
-
- 07 Kas, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
By accident the size of the empty dict keys object matched the size of values array.
-
- 22 Eki, 2017 1 kayıt (commit)
-
-
Mark Shannon yazdı
Move exception state information from frame objects to coroutine (generator/thread) object where it belongs.
-
- 08 Eyl, 2017 1 kayıt (commit)
-
-
Nick Coghlan yazdı
f_trace_lines: enable/disable line trace events f_trace_opcodes: enable/disable opcode trace events These are intended primarily for testing of the interpreter itself, as they make it much easier to emulate signals arriving at unfortunate times.
-
- 07 Eyl, 2017 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
* Remove Setup.config * Always define WITH_THREAD for compatibility.
-
- 11 Haz, 2017 1 kayıt (commit)
-
-
Nick Coghlan yazdı
- new PYTHONCOERCECLOCALE config setting - coerces legacy C locale to C.UTF-8, C.utf8 or UTF-8 by default - always uses C.UTF-8 on Android - uses `surrogateescape` on stdin and stdout in the coercion target locales - configure option to disable locale coercion at build time - configure option to disable C locale warning at build time
-
- 20 Nis, 2017 1 kayıt (commit)
-
-
Dong-hee Na yazdı
-
- 27 Mar, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
Make also minor PEP8 coding style fixes on modified imports.
-
- 23 Mar, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
* bpo-6532: Make the thread id an unsigned integer. From C API side the type of results of PyThread_start_new_thread() and PyThread_get_thread_ident(), the id parameter of PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState changed from "long" to "unsigned long". * Restore a check in thread_get_ident().
-
- 16 Ara, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
collections.namedtuple() now supports tuples with more than 255 elements.
-
- 02 Ara, 2016 1 kayıt (commit)
-
-
Victor Stinner yazdı
Issue #28740: Add sys.getandroidapilevel(): return the build time API version of Android as an integer. Function only available on Android.
-
- 10 Eyl, 2016 1 kayıt (commit)
-
-
Victor Stinner yazdı
Issue #28056 and issue #26058.
-
- 09 Eyl, 2016 1 kayıt (commit)
-
-
Yury Selivanov yazdı
-
- 08 Eyl, 2016 4 kayıt (commit)
-
-
Eric Snow yazdı
-
Victor Stinner yazdı
Issue #26058: Add a new private version to the builtin dict type, incremented at each dictionary creation and at each dictionary change. Implementation of the PEP 509.
-
Steve Dower yazdı
-
Victor Stinner yazdı
Issue #27350: `dict` implementation is changed like PyPy. It is more compact and preserves insertion order. _PyDict_Dummy() function has been removed. Disable test_gdb: python-gdb.py is not updated yet to the new structure of compact dictionaries (issue #28023). Patch written by INADA Naoki.
-
- 07 Eyl, 2016 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 05 Eyl, 2016 1 kayıt (commit)
-
-
Eric Snow yazdı
-
- 03 Tem, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 17 Nis, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 10 Nis, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
error handler for stdin and stdout.
-
- 20 Ara, 2015 2 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Added tests for dict views iterators.
-
Serhiy Storchaka yazdı
-
- 19 Ara, 2015 2 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
-
- 12 Eki, 2015 1 kayıt (commit)
-
-
Victor Stinner yazdı
Issue #25274: sys.setrecursionlimit() now raises a RecursionError if the new recursion limit is too low depending at the current recursion depth. Modify also the "lower-water mark" formula to make it monotonic. This mark is used to decide when the overflowed flag of the thread state is reset.
-
- 01 Eki, 2015 1 kayıt (commit)
-
-
Victor Stinner yazdı
sys.gettrace() when the test is executed, not when the module is loaded. sys.settrace() may be after after the test is loaded.
-