Bradley Laney
6b490b5db4
bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091)
...
Contributed by Bradley Laney.
2018-07-10 12:46:44 +03:00
INADA Naoki
5ac9e6eee5
bpo-33597: Reduce PyGC_Head size (GH-7043)
2018-07-10 17:19:53 +09:00
Dong-hee Na
445f1b35ce
bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184)
2018-07-10 16:26:36 +09:00
Benjamin Peterson
7762e4d387
prefix internal sqlite symbols with _pysqlite_ (GH-8215)
2018-07-09 21:20:23 -07:00
Benjamin Peterson
d6d4432724
delete some unused pysqlite forward declarations (GH-8211)
2018-07-09 20:41:26 -07:00
Mariatta
3ed919290e
Move Code_of_Conduct.rst to the root level. (GH-8209)
...
Follow up from https://github.com/python/peps/pull/712#issuecomment-403591108 :
"people using the repo without using GitHub still ought to be reminded of the COC" - GvR
2018-07-09 14:29:57 -07:00
Berker Peksag
2708578736
bpo-11572: Make minor improvements to copy module (GH-8208)
...
* When doing getattr lookups with a default of "None", it now
uses an "is" comparison against None which is more correct
* Removed outdated code
Patch by Brandon Rhodes.
2018-07-09 23:14:54 +03:00
Berker Peksag
9863de0355
bpo-24459: Document missing env variables in python.man (GH-4142)
...
Initial patch by Joshua Jay Herman.
2018-07-09 22:17:54 +03:00
Serhiy Storchaka
f60bf0e168
bpo-22689: Copy the result of getenv() in sys_breakpointhook(). (GH-8194)
2018-07-09 21:46:51 +03:00
Sergey Fedoseev
b796e7dcdc
Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)
...
Fixed also testing the "always" warning filter.
2018-07-09 18:25:55 +03:00
Daniel Porteous
c287545d62
bpo-34067: Include a more easily understood example for nullcontext (GH-8158)
...
Include a more easily understood example for nullcontext
2018-07-09 23:49:29 +10:00
Serhiy Storchaka
3f4d90d4d7
bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. (GH-8159)
...
This will prevent emitting a resource warning when the execution was
interrupted by Ctrl-C between calling open() and entering a 'with' block
in "with open()".
2018-07-09 22:40:14 +10:00
Serhiy Storchaka
cf7303ed2a
bpo-33305: Improve SyntaxError for invalid numerical literals. (GH-6517)
2018-07-09 15:09:35 +03:00
Serhiy Storchaka
2a9b8babf0
bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684)
2018-07-09 11:47:45 +03:00
Andrés Delfino
f85af035c5
Fix margin in sentinel and mock_open (GH-8188)
2018-07-08 17:28:51 -07:00
Marcin Niemira
bc9aa813a3
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)
2018-07-08 15:02:58 +03:00
Serhiy Storchaka
25b804a9c2
bpo-31014: Fix the webbrowser module. (GH-7267)
...
webbrowser._synthesize() called webbrowser.register() with
outdated signature.
Co-Authored-By: John Still <john@jmsdvl.com>
2018-07-08 10:22:32 +03:00
Sergey Fedoseev
0830858aee
bpo-34041: Allow creating deterministic functions in Connection.create_function() (GH-8086)
2018-07-08 10:09:20 +03:00
Andrés Delfino
8d41278045
bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)
...
Make the change where discussing the CPython implementation of lists and dicts.
2018-07-07 19:25:47 -04:00
Marcin Niemira
9c5ba09748
closes bpo-34050: Fix link in SSL docs (GH-8173)
2018-07-07 15:24:20 -07:00
Benjamin Peterson
9b50a7f29b
Make PySimpleQueueType static. (GH-8175)
2018-07-07 15:21:15 -07:00
Andrew Kuchling
ced350b195
bpo-28626: rearrange discussion of output formatting to encourage f-strings ( #6036 )
...
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().
2018-07-07 17:36:23 -04:00
Andrés Delfino
caccca78e4
bpo-33702: Add some missing links in production lists and do a little polish (GH-7259)
2018-07-07 23:24:46 +03:00
Andrés Delfino
b6bb77c2b8
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
2018-07-07 23:17:16 +03:00
Andrés Delfino
2d748389dc
Fix moduleauthor/sectionauthor directives in Enum (GH-8117)
2018-07-07 22:01:25 +03:00
Andrés Delfino
03dd0e794e
Add missing closing parentheses (GH-8144)
2018-07-07 22:00:46 +03:00
Benjamin Peterson
6cfe45a5c3
Make various internal _testbuffer symbols static. (GH-8160)
2018-07-07 11:18:38 -07:00
João D. Ferreira
86bfed372b
Fix typo in TypeVar docstring ( #8142 )
...
"can be used do declare" → "can be used to declare"
2018-07-07 16:41:20 +01:00
Dong-hee Na
2800dcf656
bpo-34065: Improve the markup of logging.basicConfig() arguments (GH-8153)
2018-07-07 15:36:40 +03:00
Benjamin Peterson
4629c0d531
Hide some symbols from _xxsubinterpreters. (GH-8151)
2018-07-06 23:28:35 -07:00
Benjamin Peterson
cb4bae72c9
Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)
2018-07-06 21:05:51 -07:00
Benjamin Peterson
b0274f2cdd
closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130)
...
* 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.
2018-07-06 20:41:06 -07:00
INADA Naoki
e25399b40c
bpo-23493: json: Change sort_keys in Python encoder same to C (GH-8131)
...
Stop using key=lambda. This behavior is same to C version encoder.
2018-07-07 08:55:03 +09:00
Yury Selivanov
0b75228700
bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119)
2018-07-06 12:20:07 -04:00
Raymond Hettinger
dc9bc54899
Clarify that example in comment is about fromkeys() (GH-8141)
2018-07-06 08:52:26 -07:00
Victor Stinner
c2368cbc83
bpo-34054: multiprocessing uses time.monotonic() (GH-8118)
...
The multiprocessing module now uses the monotonic clock
time.monotonic() instead of the system clock time.time() to implement
timeouts.
2018-07-06 13:51:52 +02:00
Robert Krzyzanowski
6f19fc6d56
fix two typos in Objects/odictobject.c comments (GH-8040)
2018-07-06 13:54:26 +03:00
Tal Einat
c929df3b96
bpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039)
...
* converted bytes methods: expandtabs, ljust, rjust, center, zfill
* updated char_convertor to properly set the C default value
2018-07-06 13:17:38 +03:00
Julien Palard
7943c5e8b5
Doc: Remove superfluous markup. (GH-8112)
...
The line is speaking of a list of commands, not the list command.
2018-07-06 11:15:13 +02:00
Zackery Spytz
d8c3e820b4
Fix GCC warning in Python/hamt.c (GH-7618)
2018-07-06 17:50:38 +09:00
Ammar Askar
c4ef4896ea
bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (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.
2018-07-06 10:19:08 +03:00
Benjamin Peterson
3c8aae9ffe
Make TaskStepMethWrapper_Type and TaskWakeupMethWrapper_Type static. (GH-8127)
2018-07-05 22:39:34 -07:00
INADA Naoki
8d130913cb
bpo-34043: Optimize tarfile uncompress performance (GH-8089)
...
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
2018-07-06 14:06:00 +09:00
Sergey Fedoseev
f12028809b
versionadded -> versionchanged for all 'X parameter was added' for uniformity. (GH8114)
...
Per the recommendation in our Developer's Guide:
https://devguide.python.org/documenting/#paragraph-level-markup
2018-07-05 17:01:16 -07:00
Raymond Hettinger
0c4d20bcaa
Add more detail to the Counter.fromkeys() comment block (GH-8124)
2018-07-05 16:36:24 -07:00
Windson yang
3ae2e33a61
classify abs() argument type (GH-8103)
2018-07-05 16:09:53 -07:00
Artjom
e55ca3fdcb
Fix typo in dataclasses documentation (GH-8102)
2018-07-05 19:09:13 -04:00
Victor Stinner
483422f57e
bpo-34044: subprocess.Popen copies startupinfo (GH-8090)
...
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.
2018-07-05 22:54:17 +02:00
Serhiy Storchaka
09bb918a61
Fix fuzz testing for marshal.loads(). (GH-8106)
2018-07-05 12:19:19 +03:00
Serhiy Storchaka
fc05e68d8f
bpo-33720: Improve tests for the stack overflow in marshal.loads(). (GH-7336)
2018-07-05 11:17:20 +03:00