- 13 Ara, 2017 10 kayıt (commit)
-
-
Victor Stinner yazdı
Changes: * Split _PySys_SetArgvWithError() into subfunctions for Py_Main(): * Create the Python list object * Set sys.argv to the list * Compute argv0 * Prepend argv0 to sys.path * Add _PyPathConfig_ComputeArgv0() * Remove _PySys_SetArgvWithError() * Py_Main() now splits the code to compute sys.argv/path0 and the code to update the sys module: add pymain_compute_argv() subfunction.
-
Yury Selivanov yazdı
asyncio.get_event_loop(), and, subsequently asyncio._get_running_loop() are one of the most frequently executed functions in asyncio. They also can't be sped up by third-party event loops like uvloop. When implemented in C they become 4x faster.
-
Victor Stinner yazdı
bpo-29240, bpo-32030: * Rename pymain_set_argv() to pymain_set_sys_argv() * pymain_set_sys_argv() now creates of copy of argv and modify the copy, rather than modifying pymain->argv * Call pymain_set_sys_argv() earlier: before pymain_run_python(), but after pymain_get_importer(). * Add _PySys_SetArgvWithError() to handle errors
-
Victor Stinner yazdı
Collect more info from builtins, resource, test.test_socket and test.support modules. Co-Authored-By: Christian Heimes <christian@python.org>
-
Andrew Svetlov yazdı
-
jimmy yazdı
-
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.
-
Sebastian Rittau yazdı
-
Antoine Pitrou yazdı
* Test atexit shutdown mechanism in a subprocess
-
Antoine Pitrou yazdı
-
- 12 Ara, 2017 10 kayıt (commit)
-
-
Victor Stinner yazdı
Fix the warning: Python/import.c: warning: comparison between signed and unsigned integer expressions if ((i + n + 1) <= PY_SSIZE_T_MAX / sizeof(struct _inittab)) {
-
Victor Stinner yazdı
test_asycio: remove also aio_path which was used when asyncio was developed outside the stdlib.
-
Victor Stinner yazdı
Rather than supporting dev mode directly in the warnings module, this instead adjusts the initialisation code to add an extra 'default' entry to sys.warnoptions when dev mode is enabled. This ensures that dev mode behaves *exactly* as if `-Wdefault` had been passed on the command line, including in the way it interacts with `sys.warnoptions`, and with other command line flags like `-bb`. Fix also bpo-20361: have -b & -bb options take precedence over any other warnings options. Patch written by Nick Coghlan, with minor modifications of Victor Stinner.
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
It is failed with an advanced optimizer.
-
Serhiy Storchaka yazdı
-
Nitish Chandra yazdı
-
Licht Takeuchi yazdı
This allows to distinguish an empty row from a row consisting of a single empty field.
-
Chris yazdı
-
Terry Jan Reedy yazdı
-
- 11 Ara, 2017 8 kayıt (commit)
-
-
Łukasz Langa yazdı
-
Andrew Svetlov yazdı
* Replace 'yield from' to 'await' in asyncio docs * Fix docstrings
-
Yury Selivanov yazdı
-
Yury Selivanov yazdı
-
Yury Selivanov yazdı
-
Sanyam Khurana yazdı
Original patch written by Martin Panter, enhanced by Sanyam Khurana.
-
Victor Stinner yazdı
Fix faulthandler_suppress_crash_report() used to prevent core dump files when testing crashes. getrlimit() returns zero on success.
-
Yury Selivanov yazdı
-
- 10 Ara, 2017 5 kayıt (commit)
-
-
Yury Selivanov yazdı
-
Yury Selivanov yazdı
Starting with 10.13.2 the test hangs forever.
-
Pablo Galindo yazdı
-
Terry Jan Reedy yazdı
-
Sanyam Khurana yazdı
The error messages in `object.__new__` and `object.__init__` now aim to point the user more directly at the name of the class being instantiated in cases where they *haven't* been overridden (on the assumption that the actual problem is a missing `__new__` or `__init__` definition in the class body). When they *have* been overridden, the errors still report themselves as coming from object, on the assumption that the problem is with the call up to the base class in the method implementation, rather than with the way the constructor is being called.
-
- 09 Ara, 2017 6 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
Benjamin Peterson yazdı
-
Benjamin Peterson yazdı
Reference siphash takes the keys as a bytes, so it makes sense to byte swap when reifying the keys as 64-bit integers. However, Python's siphash takes host integers in to start with.
-
Benjamin Peterson yazdı
Python now supports checking bytecode cache up-to-dateness with a hash of the source contents rather than volatile source metadata. See the PEP for details. While a fairly straightforward idea, quite a lot of code had to be modified due to the pervasiveness of pyc implementation details in the codebase. Changes in this commit include: - The core changes to importlib to understand how to read, validate, and regenerate hash-based pycs. - Support for generating hash-based pycs in py_compile and compileall. - Modifications to our siphash implementation to support passing a custom key. We then expose it to importlib through _imp. - Updates to all places in the interpreter, standard library, and tests that manually generate or parse pyc files to grok the new format. - Support in the interpreter command line code for long options like --check-hash-based-pycs. - Tests and documentation for all of the above.
-
Andrew Svetlov yazdı
* Add test for 'with (yield from lock)' * Deprecate with statement for asyncio locks * Document the deprecation
-
Vinay Sajip yazdı
bpo-32212: Updated logging documentation to make parameter names more consistent with source. (GH-4765)
-
- 08 Ara, 2017 1 kayıt (commit)
-
-
Andrew Svetlov yazdı
* Convert asyncio/tasks.py to async/await * Convert asyncio/queues.py to async/await * Convert asyncio/test_utils.py to async/await * Convert asyncio/base_subprocess.py to async/await * Convert asyncio/subprocess.py to async/await * Convert asyncio/streams.py to async/await * Fix comments * Convert asyncio/locks.py to async/await * Convert asyncio.sleep to async def * Add a comment * Add missing news * Convert stubs from AbstrctEventLoop to async functions * Convert subprocess_shell/subprocess_exec * Convert connect_read_pipe/connect_write_pip to async/await syntax * Convert create_datagram_endpoint * Convert create_unix_server/create_unix_connection * Get rid of old style coroutines in unix_events.py * Convert selector_events.py to async/await * Convert wait_closed and create_connection * Drop redundant line * Convert base_events.py * Code cleanup * Drop redundant comments * Fix indentation * Add explicit tests for compatibility between old and new coroutines * Convert windows event loop to use async/await * Fix double awaiting of async function * Convert asyncio/locks.py * Improve docstring * Convert tests to async/await * Convert more tests * Convert more tests * Convert more tests * Convert tests * Improve test
-