summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33702: Add some missing links in production lists and do a little polish ↵Andrés Delfino2018-07-073-25/+25
| | | | (GH-7259)
* bpo-33804: Document that the argument for io.TextIOBase.read() is optional ↵Andrés Delfino2018-07-071-1/+1
| | | | (GH-7510)
* Fix moduleauthor/sectionauthor directives in Enum (GH-8117)Andrés Delfino2018-07-071-4/+4
|
* Add missing closing parentheses (GH-8144)Andrés Delfino2018-07-071-1/+1
|
* Make various internal _testbuffer symbols static. (GH-8160)Benjamin Peterson2018-07-071-4/+4
|
* Fix typo in TypeVar docstring (#8142)João D. Ferreira2018-07-071-1/+1
| | | "can be used do declare" → "can be used to declare"
* bpo-34065: Improve the markup of logging.basicConfig() arguments (GH-8153)Dong-hee Na2018-07-072-8/+8
|
* Hide some symbols from _xxsubinterpreters. (GH-8151)Benjamin Peterson2018-07-071-2/+2
|
* Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)Benjamin Peterson2018-07-071-2/+2
|
* closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130)Benjamin Peterson2018-07-073-7/+24
| | | | | | | | | | * Always return bytes from _HackedGetData.get_data(). Ensure the imp.load_source shim always returns bytes by reopening the file in binary mode if needed. Hash-based pycs have to receive the source code in bytes. It's tempting to change imp.get_suffixes() to always return 'rb' as a mode, but that breaks some stdlib tests and likely 3rdparty code, too.
* bpo-23493: json: Change sort_keys in Python encoder same to C (GH-8131)INADA Naoki2018-07-061-1/+1
| | | Stop using key=lambda. This behavior is same to C version encoder.
* bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119)Yury Selivanov2018-07-062-0/+9
|
* Clarify that example in comment is about fromkeys() (GH-8141)Raymond Hettinger2018-07-061-1/+1
|
* bpo-34054: multiprocessing uses time.monotonic() (GH-8118)Victor Stinner2018-07-065-13/+15
| | | | | The multiprocessing module now uses the monotonic clock time.monotonic() instead of the system clock time.time() to implement timeouts.
* fix two typos in Objects/odictobject.c comments (GH-8040)Robert Krzyzanowski2018-07-061-2/+2
|
* bpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039)Tal Einat2018-07-066-78/+265
| | | | * converted bytes methods: expandtabs, ljust, rjust, center, zfill * updated char_convertor to properly set the C default value
* Doc: Remove superfluous markup. (GH-8112)Julien Palard2018-07-061-1/+1
| | | The line is speaking of a list of commands, not the list command.
* Fix GCC warning in Python/hamt.c (GH-7618)Zackery Spytz2018-07-061-1/+1
|
* bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior ↵Ammar Askar2018-07-063-24/+60
| | | | | | | | | (GH-7891) Most of the change involves fixing up the test suite, which previously made the assumption that there wouldn't be a new line if the input didn't end in one. Contributed by Ammar Askar.
* Make TaskStepMethWrapper_Type and TaskWakeupMethWrapper_Type static. (GH-8127)Benjamin Peterson2018-07-061-2/+2
|
* bpo-34043: Optimize tarfile uncompress performance (GH-8089)INADA Naoki2018-07-062-18/+13
| | | | | | | | | | | tarfile._Stream has two buffer for compressed and uncompressed data. Those buffers are not aligned so unnecessary bytes slicing happens for every reading chunks. This commit bypass compressed buffering. In this benchmark [1], user time become 250ms from 300ms. [1]: https://bugs.python.org/msg320763
* versionadded -> versionchanged for all 'X parameter was added' for ↵Sergey Fedoseev2018-07-063-7/+7
| | | | | | uniformity. (GH8114) Per the recommendation in our Developer's Guide: https://devguide.python.org/documenting/#paragraph-level-markup
* Add more detail to the Counter.fromkeys() comment block (GH-8124)Raymond Hettinger2018-07-051-2/+7
|
* classify abs() argument type (GH-8103)Windson yang2018-07-051-1/+2
|
* Fix typo in dataclasses documentation (GH-8102)Artjom2018-07-051-1/+1
|
* bpo-34044: subprocess.Popen copies startupinfo (GH-8090)Victor Stinner2018-07-053-0/+47
| | | | | | | subprocess.Popen now copies the startupinfo argument to leave it unchanged: it will modify the copy, so that the same STARTUPINFO object can be used multiple times. Add subprocess.STARTUPINFO.copy() method.
* Fix fuzz testing for marshal.loads(). (GH-8106)Serhiy Storchaka2018-07-051-4/+5
|
* bpo-33720: Improve tests for the stack overflow in marshal.loads(). (GH-7336)Serhiy Storchaka2018-07-051-6/+17
|
* Removed unused import from tzinfo_examples.py. (GH-7994)Sergey Fedoseev2018-07-051-1/+1
|
* Update Stackless Python wiki URL (GH-8072)Julien Palard2018-07-051-1/+1
| | | It was moved from bitbucket to GitHub.
* Minor code refactoring. Compute len() one fewer times on one code path. ↵Raymond Hettinger2018-07-041-4/+4
| | | | (GH-8094)
* DOC: In `reduce`, refer to `accumulate` (GH-7930)Gerrit Holl2018-07-041-0/+2
|
* bpo-30516: Fix documentation issue with -timedelta in datetime (GH-7348)Farhaan Bukhsh2018-07-041-5/+6
| | | | | This commit fixes the -timedelta overfllow issue not documented properly. Signed-off-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
* bpo-32942: Fix environment dependent test_script_helper (GH-8034)Lorenz Mende2018-07-041-16/+31
| | | | Result of function interpreter_requires_environment() depends on os.environ. This was not covered by the tests, leading to fail when PYTHONHOME was set.
* bpo-34040, multiprocessing: Fix test_forkserver_sigkill() (GH-8081)Victor Stinner2018-07-041-2/+6
| | | | | | | | Fix test_forkserver_sigkill() of test_multiprocessing_forkserver: give more time to the first child process to complete, double the sleep in the parent process. Reduce also the child process sleep from 1000 ms to 500 ms, to not change the total duration of the test.
* bpo-34010: Fix tarfile read performance regression (GH-8020)hajoscher2018-07-042-9/+13
| | | | During buffered read, use a list followed by join instead of extending a bytes object. This is how it was done before but changed in commit b506dc32c1a.
* Make GenericAlias_Type and Generic_Type static. (GH-8076)Benjamin Peterson2018-07-041-2/+2
|
* Don't export pending_threadfunc from _testcapi. (GH-8075)Benjamin Peterson2018-07-041-1/+2
|
* bpo-33418: Add tp_clear for function object (GH-8058)INADA Naoki2018-07-042-13/+23
| | | | | Without tp_clear, GC can't break cyclic reference. It will cause memory leak when cyclic reference is created intentionally.
* bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918)Zackery Spytz2018-07-033-2/+20
| | | | PyErr_Print() will not return when the exception is a SystemExit, so decref the __main__ module object in that case.
* bpo-34018: Doc'd that type names of SQLite converters are case-insensitive. ↵Sergey Fedoseev2018-07-031-2/+2
| | | | (GH-8042)
* bpo-34019: Fix wrong arguments for Opera Browser (#8047)Bumsik Kim2018-07-033-12/+13
| | | | | The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module. * Correct the arguments passed to the Opera Browser when opening a new URL.
* bpo-33735: Fix test_multiprocessing random failure (GH-8059)Victor Stinner2018-07-031-3/+3
| | | | | | | | | | | | When hunting memory leaks using -R 3:3, test_imap_unordered() of test_multiprocessing leaks randomly a few memory blocks. It is a false alarm: when testing using -R 3:20 for example, no leak is detected. Modify test_imap_unordered() to be closer to test_imap(): * Only test 10 numbers instead of 1000: it's a pool of 4 processes, so 10 is enough to test at least one number per process * Use chunksize=100 instead of chunksize=53 to mimick test_imap()
* bpo-34006: Revert line length limit for Windows help docs (GH-8051)Zachary Ware2018-07-022-0/+6
| | | | The line-length limit is not needed because the pages appear in a separate app rather than on a browser tab. It can also interact badly with the DPI setting.
* bpo-33978: Close existing handlers before logging (re-)configuration. (GH-8008)Xtreak2018-07-023-4/+88
|
* bpo-30660: Doc: Optimize PNG files by optipng (GH-8032)INADA Naoki2018-07-017-0/+0
| | | | Using OptiPNG 0.7.7. Used command is: `find . -name '*.png' | xargs optipng -o7`
* bpo-31938: Convert selectmodule.c to Argument Clinic (GH-4265)Tal Einat2018-06-303-575/+1710
|
* Doc: Remove unused image file (GH-8027)INADA Naoki2018-06-301-0/+0
|
* bpo-25862: Fix several bugs in the _io module. (GH-8026)Serhiy Storchaka2018-06-302-8/+17
| | | | | | | | | | | They can be exposed when some C API calls fail due to lack of memory. * Failed Py_BuildValue() could cause an assertion error in the following TextIOWrapper.tell(). * input_chunk could be decrefed twice in TextIOWrapper.seek() after failed Py_BuildValue(). * initvalue could leak in StringIO.__getstate__() after failed PyDict_Copy().
* bpo-32568: make select.epoll() and its docs consistent (#7840)Tal Einat2018-06-304-14/+34
| | | | | | | | | | | | | * `flags` is indeed deprecated, but there is a validation on its value for backwards compatibility reasons. This adds mention of this in the docs. * The docs say that `sizehint` is deprecated and ignored, but it is still used when `epoll_create1()` is unavailable. This adds mention of this in the docs. * `sizehint=-1` is acceptable again, and is replaced with `FD_SETSIZE-1`. This is needed to have a default value available at the Python level, since `FD_SETSIZE` is not exposed to Python. (see: bpo-31938) * Reject `sizehint=0` since it is invalid to pass on to `epoll_create()`. The relevant tests have also been updated.