- 07 Jul, 2018 13 commits
-
-
Marcin Niemira authored
-
Benjamin Peterson authored
-
Andrew Kuchling authored
The 'output formatting' section of the tutorial talks a lot about manual formatting with things like .rjust() and .zfill(), with only a passing reference to 3.6's new f-strings. This doesn't drop all of the old material, but it does rearrange the topics into a more modern order: f-strings first, discussing formatting specifiers a bit; then calling .format(); finally manual formatting with .ljust().
-
Andrés Delfino authored
-
Andrés Delfino authored
-
Andrés Delfino authored
-
Andrés Delfino authored
-
Benjamin Peterson authored
-
João D. Ferreira authored
"can be used do declare" → "can be used to declare"
-
Dong-hee Na authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
* 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.
-
- 06 Jul, 2018 12 commits
-
-
INADA Naoki authored
Stop using key=lambda. This behavior is same to C version encoder.
-
Yury Selivanov authored
-
Raymond Hettinger authored
-
Victor Stinner authored
The multiprocessing module now uses the monotonic clock time.monotonic() instead of the system clock time.time() to implement timeouts.
-
Robert Krzyzanowski authored
-
Tal Einat authored
* converted bytes methods: expandtabs, ljust, rjust, center, zfill * updated char_convertor to properly set the C default value
-
Julien Palard authored
The line is speaking of a list of commands, not the list command.
-
Zackery Spytz authored
-
Ammar Askar authored
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.
-
Benjamin Peterson authored
-
INADA Naoki authored
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
-
Sergey Fedoseev authored
Per the recommendation in our Developer's Guide: https://devguide.python.org/documenting/#paragraph-level-markup
-
- 05 Jul, 2018 8 commits
-
-
Raymond Hettinger authored
-
Windson yang authored
-
Artjom authored
-
Victor Stinner authored
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.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Sergey Fedoseev authored
-
Julien Palard authored
It was moved from bitbucket to GitHub.
-
- 04 Jul, 2018 7 commits
-
-
Raymond Hettinger authored
-
Gerrit Holl authored
-
Farhaan Bukhsh authored
This commit fixes the -timedelta overfllow issue not documented properly. Signed-off-by:
Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
-
Lorenz Mende authored
Result of function interpreter_requires_environment() depends on os.environ. This was not covered by the tests, leading to fail when PYTHONHOME was set.
-
Victor Stinner authored
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.
-
Benjamin Peterson authored
-