- 07 Nov, 2017 20 commits
-
-
Simon Willison authored
It looks like this was copied from one of the previous tests, which did use it.
-
Justus Schwabedal authored
-
Suren Nihalani authored
-
Barry Warsaw authored
-
Julien Palard authored
-
Antoine Pitrou authored
* bpo-31970: Reduce performance overhead of asyncio debug mode.
-
Jelle Zijlstra authored
* fix doc for multiprocessing.connection.Client The authenticate argument does not exist on either Client or Listener: - https://github.com/python/cpython/blob/master/Lib/multiprocessing/connection.py#L483 (master) - https://github.com/python/cpython/blob/3.6/Lib/multiprocessing/connection.py#L478 (3.6) - https://github.com/python/cpython/blob/3.5/Lib/multiprocessing/connection.py#L478 (3.5) - https://github.com/python/cpython/blob/3.4/Lib/multiprocessing/connection.py#L487 (3.4) The documentation also claimed that these functions will call `current_process().auth_key`, for which I could find no evidence in the code. I rewrote the documentation to reflect the actual behavior. Also made some small changes to vary sentence structure.
-
Antoine Pitrou authored
-
Serhiy Storchaka authored
By accident the size of the empty dict keys object matched the size of values array.
-
Berker Peksag authored
-
Serhiy Storchaka authored
Few bytes at the begin and at the end of the reallocated blocks, as well as the header and the trailer, now are erased before calling realloc() in debug build. This will help to detect using or double freeing the reallocated block.
-
Zackery Spytz authored
-
Antoine Pitrou authored
-
Marat Sharafutdinov authored
-
Serhiy Storchaka authored
-
Mariatta authored
-
Barry Warsaw authored
-
Anders Lorentsen authored
-
Oren Milman authored
bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (#3958)
-
Oren Milman authored
bpo-31770: Prevent a crash and refleaks when calling sqlite3.Cursor.__init__() more than once (#3968)
-
- 06 Nov, 2017 3 commits
-
-
Nir Soffer authored
blocksize was hardcoded to 8192, preventing efficient upload when using file-like body. Add blocksize argument to __init__, so users can configure the blocksize to fit their needs. I tested this uploading data from /dev/zero to a web server dropping the received data, to test the overhead of the HTTPConnection.send() with a file-like object. Here is an example 10g upload with the default buffer size (8192): $ time ~/src/cpython/release/python upload-httplib.py 10 https://localhost:8000/ Uploaded 10.00g in 17.53 seconds (584.00m/s) real 0m17.574s user 0m8.887s sys 0m5.971s Same with 512k blocksize: $ time ~/src/cpython/release/python upload-httplib.py 10 https://localhost:8000/ Uploaded 10.00g in 6.60 seconds (1551.15m/s) real 0m6.641s user 0m3.426s sys 0m2.162s In real world usage the difference will be smaller, depending on the local and remote storage and the network. See https://github.com/nirs/http-bench for more info.
-
Steve Dower authored
-
Berker Peksag authored
-
- 05 Nov, 2017 3 commits
-
-
luzpaz authored
-
Serhiy Storchaka authored
MemoryError raised when normalizing a RecursionError raised during exception normalization now not always causes a fatal error.
-
Nick Coghlan authored
While technically a purely internal change, bpo-31845 was a fairly significant externally visible bug caused by these changes (environment variable based configuration was being ignored due to a change in the relative order of reading the environment and reading command line settings, and the test suite was only testing the command line options) Hence this note to essentially say "If you see odd startup problems in 3.7 that you've never seen in previous releases, it's probably our fault, so let us know, and we'll fix it".
-
- 04 Nov, 2017 9 commits
-
-
Steve Dower authored
-
Steve Dower authored
-
davy wybiral authored
-
Berker Peksag authored
-
Serhiy Storchaka authored
This speeds up it to 20-40%.
-
Phobosmir authored
-
Antoine Pitrou authored
* bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor * Fix docstring
-
Chillar Anand authored
-
Serhiy Storchaka authored
* Using ifconfig on NetBSD and OpenBSD. * Using arp on Linux, FreeBSD, NetBSD and OpenBSD. Based on patch by Takayuki Shimizukawa.
-
- 03 Nov, 2017 5 commits
-
-
Barry Warsaw authored
bpo-31936
-
Jack O'Connor authored
All Blake2 params have to be encoded in little-endian byte order. For the two multi-byte integer params, leaf_length and node_offset, that means that assigning a native-endian integer to them appears to work on little-endian platforms, but gives the wrong result on big-endian. The current libb2 API doesn't make that very clear, and @sneves is working on new API functions in the GH issue above. In the meantime, we can work around the problem by explicitly assigning little-endian values to the parameter block. See https://github.com/BLAKE2/libb2/issues/12.
-
Antoine Pitrou authored
Bug report and patch by Jeroen Demeyer.
-
Serhiy Storchaka authored
-
Antoine Pitrou authored
* bpo-31310: multiprocessing's semaphore tracker should be launched again if crashed * Avoid mucking with process state in test. Add a warning if the semaphore process died, as semaphores may then be leaked. * Add NEWS entry
-