- 12 Dec, 2017 5 commits
-
-
Serhiy Storchaka authored
-
Nitish Chandra authored
-
Licht Takeuchi authored
This allows to distinguish an empty row from a row consisting of a single empty field.
-
Chris authored
-
Terry Jan Reedy authored
-
- 11 Dec, 2017 8 commits
-
-
Łukasz Langa authored
-
Andrew Svetlov authored
* Replace 'yield from' to 'await' in asyncio docs * Fix docstrings
-
Yury Selivanov authored
-
Yury Selivanov authored
-
Yury Selivanov authored
-
Sanyam Khurana authored
Original patch written by Martin Panter, enhanced by Sanyam Khurana.
-
Victor Stinner authored
Fix faulthandler_suppress_crash_report() used to prevent core dump files when testing crashes. getrlimit() returns zero on success.
-
Yury Selivanov authored
-
- 10 Dec, 2017 5 commits
-
-
Yury Selivanov authored
-
Yury Selivanov authored
Starting with 10.13.2 the test hangs forever.
-
Pablo Galindo authored
-
Terry Jan Reedy authored
-
Sanyam Khurana authored
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 Dec, 2017 6 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
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 authored
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 authored
* Add test for 'with (yield from lock)' * Deprecate with statement for asyncio locks * Document the deprecation
-
Vinay Sajip authored
bpo-32212: Updated logging documentation to make parameter names more consistent with source. (GH-4765)
-
- 08 Dec, 2017 3 commits
-
-
Andrew Svetlov authored
* 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
-
Nitish Chandra authored
Per rfc7903 this is the standard MIME type for this file format, and appears as such in the IANA MIME registry.
-
Neil Schemenauer authored
-
- 07 Dec, 2017 4 commits
-
-
Victor Stinner authored
Explicitly cast digits (Py_ssize_t) to double to fix the following false-alarm warning from Coverity: "fsize_z = digits * log_base_BASE[base] + 1;" CID 1424951: Incorrect expression (UNINTENDED_INTEGER_DIVISION) Dividing integer expressions "9223372036854775783UL" and "4UL", and then converting the integer quotient to type "double". Any remainder, or fractional part of the quotient, is ignored.
-
Garrett Berg authored
* fix issue32208: update threading.Semaphore docs and add unit test to validate correct behavior * add test for blocking * Update threading.rst * semaphore: remove documentation validation tests and move 'return value' test to BaseSemaphore
-
xdegaye authored
-
Pablo Galindo authored
-
- 06 Dec, 2017 9 commits
-
-
Steve Dower authored
-
Eric V. Smith authored
-
Rob Boehne authored
-
Stefan Krah authored
-
Victor Stinner authored
PyImport_ExtendInittab() now uses PyMem_RawRealloc() rather than PyMem_Realloc(). PyImport_ExtendInittab() can be called before Py_Initialize() whereas only the PyMem_Raw allocator is supposed to be used before Py_Initialize(). Add _PyImport_Fini2() to release the memory allocated by PyImport_ExtendInittab() at exit. PyImport_ExtendInittab() now forces the usage of the default raw allocator, to be able to release memory in _PyImport_Fini2(). Don't export these functions anymore to be C API, only to Py_BUILD_CORE: * _PyExc_Fini() * _PyImport_Fini() * _PyGC_DumpShutdownStats() * _PyGC_Fini() * _PyType_Fini() * _Py_HashRandomization_Fini()
-
Sanyam Khurana authored
-
Victor Stinner authored
* Py_Main() now starts by reading Py_xxx configuration variables to only work on its own private structure, and then later writes back the configuration into these variables. * Replace Py_GETENV() with pymain_get_env_var() which ignores empty variables. * Add _PyCoreConfig.dump_refs * Add _PyCoreConfig.malloc_stats * _PyObject_DebugMallocStats() is now responsible to check if debug hooks are installed. The function returns 1 if stats were written, or 0 if the hooks are disabled. Mark _PyMem_PymallocEnabled() as static.
-
Victor Stinner authored
Remove also the initstr variable, unused since the commit e69f0df4 pushed in 2012: "bpo-13959: Re-implement imp.find_module() in Lib/imp.py"
-
Ned Deily authored
-