Chih-Hsuan Yen
09b2bece78
bpo-29442: Replace optparse with argparse in setup.py (GH-139)
8 years ago
INADA Naoki
d5c875bbf1
bpo-33597: Add What's New for PyGC_Head (GH-8236)
8 years ago
Tom Faulkner
da5e9476bb
Dataclasses: Fix example on 30.6.8, add method should receive a list rather than an integer. (GH-8038)
Change example function to append rather than add lists.
8 years ago
Lysandros Nikolaou
9cffdbffc3
Fix documentation for input and output tutorial (GH-8231)
The ValueError message ends with a period.
8 years ago
Nick Coghlan
5fe7c98a54
bpo-34009: Expand on platform support changes (GH-8022)
Many users won't realise the implications the OpenSSL 1.0.2
minimum version requirement has when it comes to Ubuntu
14.04 and Debian 8, so expand on that in the platform support
section.
Also explicitly note the non-ASCII-based locale requirement for
full Unicode text handling support on non-Windows systems.
8 years ago
Raymond Hettinger
66953f0ec6
Factor-out two substantially identical code blocks. (GH-8219)
8 years ago
Bradley Laney
6b490b5db4
bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091)
Contributed by Bradley Laney.
8 years ago
INADA Naoki
5ac9e6eee5
bpo-33597: Reduce PyGC_Head size (GH-7043)
8 years ago
Dong-hee Na
445f1b35ce
bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184)
8 years ago
Benjamin Peterson
7762e4d387
prefix internal sqlite symbols with _pysqlite_ (GH-8215)
8 years ago
Benjamin Peterson
d6d4432724
delete some unused pysqlite forward declarations (GH-8211)
8 years ago
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
8 years ago
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.
8 years ago
Berker Peksag
9863de0355
bpo-24459: Document missing env variables in python.man (GH-4142)
Initial patch by Joshua Jay Herman.
8 years ago
Serhiy Storchaka
f60bf0e168
bpo-22689: Copy the result of getenv() in sys_breakpointhook(). (GH-8194)
8 years ago
Sergey Fedoseev
b796e7dcdc
Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)
Fixed also testing the "always" warning filter.
8 years ago
Daniel Porteous
c287545d62
bpo-34067: Include a more easily understood example for nullcontext (GH-8158)
Include a more easily understood example for nullcontext
8 years ago
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()".
8 years ago
Serhiy Storchaka
cf7303ed2a
bpo-33305: Improve SyntaxError for invalid numerical literals. (GH-6517)
8 years ago
Serhiy Storchaka
2a9b8babf0
bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684)
8 years ago
Andrés Delfino
f85af035c5
Fix margin in sentinel and mock_open (GH-8188)
8 years ago
Marcin Niemira
bc9aa813a3
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)
8 years ago
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>
8 years ago
Sergey Fedoseev
0830858aee
bpo-34041: Allow creating deterministic functions in Connection.create_function() (GH-8086)
8 years ago
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.
8 years ago
Marcin Niemira
9c5ba09748
closes bpo-34050: Fix link in SSL docs (GH-8173)
8 years ago
Benjamin Peterson
9b50a7f29b
Make PySimpleQueueType static. (GH-8175)
8 years ago
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().
8 years ago
Andrés Delfino
caccca78e4
bpo-33702: Add some missing links in production lists and do a little polish (GH-7259)
8 years ago
Andrés Delfino
b6bb77c2b8
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
8 years ago
Andrés Delfino
2d748389dc
Fix moduleauthor/sectionauthor directives in Enum (GH-8117)
8 years ago
Andrés Delfino
03dd0e794e
Add missing closing parentheses (GH-8144)
8 years ago
Benjamin Peterson
6cfe45a5c3
Make various internal _testbuffer symbols static. (GH-8160)
8 years ago
João D. Ferreira
86bfed372b
Fix typo in TypeVar docstring ( #8142 )
"can be used do declare" → "can be used to declare"
8 years ago
Dong-hee Na
2800dcf656
bpo-34065: Improve the markup of logging.basicConfig() arguments (GH-8153)
8 years ago
Benjamin Peterson
4629c0d531
Hide some symbols from _xxsubinterpreters. (GH-8151)
8 years ago
Benjamin Peterson
cb4bae72c9
Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)
8 years ago
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.
8 years ago
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.
8 years ago
Yury Selivanov
0b75228700
bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119)
8 years ago
Raymond Hettinger
dc9bc54899
Clarify that example in comment is about fromkeys() (GH-8141)
8 years ago
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.
8 years ago
Robert Krzyzanowski
6f19fc6d56
fix two typos in Objects/odictobject.c comments (GH-8040)
8 years ago
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
8 years ago
Julien Palard
7943c5e8b5
Doc: Remove superfluous markup. (GH-8112)
The line is speaking of a list of commands, not the list command.
8 years ago
Zackery Spytz
d8c3e820b4
Fix GCC warning in Python/hamt.c (GH-7618)
8 years ago
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.
8 years ago
Benjamin Peterson
3c8aae9ffe
Make TaskStepMethWrapper_Type and TaskWakeupMethWrapper_Type static. (GH-8127)
8 years ago
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
8 years ago
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
8 years ago