]>
granicus.if.org Git - python/log
Dong-hee Na [Sat, 28 Apr 2018 20:08:22 +0000 (05:08 +0900)]
bpo-33378: Add Korean to the language switcher. (GH-6627)
Tom Christie [Fri, 27 Apr 2018 22:35:13 +0000 (23:35 +0100)]
Change "non-local state" to "content-local state". (GH-6617)
The wording here seems wrong, as per https://bugs.python.org/msg315792
Zsolt Dollenstein [Fri, 27 Apr 2018 15:58:56 +0000 (08:58 -0700)]
bpo-33363: raise SyntaxError for async for/with outside async functions (#6616)
Victor Stinner [Fri, 27 Apr 2018 12:30:01 +0000 (14:30 +0200)]
bpo-33041: Fix downcast warning on Windows (#6595)
Cast pointer difference from ssize_t to int: a frame is very unlikely
larger than 2 GB.
Pablo Galindo [Fri, 27 Apr 2018 12:23:13 +0000 (13:23 +0100)]
bpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)
Fix test_embed.test_pre_initialization_sys_options() when building with --enable-shared
Brian Curtin [Thu, 26 Apr 2018 23:48:26 +0000 (19:48 -0400)]
Clarify the inspect.getmembers predicate parameter (#6615)
Previously, the predicate parameter was mentioned, but what it was to be
called with was not documented and required either trial-and-error or
looking into the source to find that it is called with the `value`, or
second item, of the full members list. This change addresses what the
predicate will receive, as well as does some light formatting to make
this clear.
Cheryl Sabella [Wed, 25 Apr 2018 23:51:54 +0000 (16:51 -0700)]
bpo-27485: Rename and deprecate undocumented functions in urllib.parse (GH-2205)
Serhiy Storchaka [Wed, 25 Apr 2018 19:04:06 +0000 (22:04 +0300)]
bpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566)
Added tests to ensure that all defined opcodes are supported.
Serhiy Storchaka [Wed, 25 Apr 2018 17:58:40 +0000 (20:58 +0300)]
bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)
Andrés Delfino [Wed, 25 Apr 2018 17:53:58 +0000 (14:53 -0300)]
bpo-33280: Reorganize external Tcl/Tk references. (GH-6473)
Neeraj Badlani [Wed, 25 Apr 2018 17:52:13 +0000 (10:52 -0700)]
Mention both relevant PEPs in function annotations tutorial (GH-6304)
Patch by Neeraj Badlani.
Pablo Galindo [Wed, 25 Apr 2018 17:48:27 +0000 (18:48 +0100)]
Fix rendering issues in the documentation for the os module (#6525)
Pablo Galindo [Wed, 25 Apr 2018 02:22:28 +0000 (03:22 +0100)]
bpo-33128 Fix duplicated call to importlib._install_external_importers (GH-6273)
External importers were being added in both phases of the import
system initialisation.
They're only supposed to be added in the second phase, after the
import machinery has been appropriately configured.
Łukasz Langa [Mon, 23 Apr 2018 21:18:55 +0000 (14:18 -0700)]
acks += chrBrd (#6584)
Chris Bradbury [Mon, 23 Apr 2018 20:56:39 +0000 (21:56 +0100)]
bpo-33251: Update documentation to reflect change. (GH-6446) (#6583)
Chris Bradbury [Mon, 23 Apr 2018 19:16:17 +0000 (20:16 +0100)]
bpo-33251: Prevent ConfigParser.items returning items present in vars. (#6446)
* bpo-33251: ConfigParser.items no longer returns items present in vars.
Documentation for `ConfigParser.items()` states:
'Items present in vars no longer appear in the result.'
This fix aligns behaviour to that specified in the documentation.
Antoine Pitrou [Mon, 23 Apr 2018 18:53:33 +0000 (20:53 +0200)]
bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575)
Starting with glibc 2.27.9000-xxx, sigaddset() can return EINVAL for some
reserved signal numbers between 1 and NSIG. The `range(1, NSIG)` idiom
is commonly used to select all signals for blocking with `pthread_sigmask`.
So we ignore the sigaddset() return value until we expose sigfillset()
to provide a better idiom.
Łukasz Langa [Mon, 23 Apr 2018 08:07:11 +0000 (01:07 -0700)]
bpo-33338: [tokenize] Minor code cleanup (#6573)
This change contains minor things that make diffing between Lib/tokenize.py and
Lib/lib2to3/pgen2/tokenize.py cleaner.
Berker Peksag [Sun, 22 Apr 2018 23:48:11 +0000 (02:48 +0300)]
bpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)
Andrés Delfino [Sat, 21 Apr 2018 12:17:26 +0000 (09:17 -0300)]
bpo-33297: Mention Pillow to work with more image formats. (#6505)
Also update PIL doc references to Pillow.
Brett Cannon [Fri, 20 Apr 2018 23:32:46 +0000 (16:32 -0700)]
Clarify that __path__ can't be just any value (GH-6554)
Brett Cannon [Fri, 20 Apr 2018 21:15:40 +0000 (14:15 -0700)]
bpo-25427: Remove pyvenv (GH-5962)
Ville Skyttä [Fri, 20 Apr 2018 20:08:45 +0000 (23:08 +0300)]
Spelling fixes to docs, docstrings, and comments (GH-6374)
Paul Moore [Fri, 20 Apr 2018 20:06:51 +0000 (21:06 +0100)]
bpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)
Upgrade ensurepip to bundle pip 10.0.1
Gregory P. Smith [Fri, 20 Apr 2018 18:32:08 +0000 (11:32 -0700)]
bpo-33312: update Tools/gdb/libpython.py to match. (GH-6548)
xdegaye [Fri, 20 Apr 2018 15:03:49 +0000 (17:03 +0200)]
bpo-32232: by default, Setup modules are no longer built with -DPy_BUILD_CORE (GH-6489)
Setup modules are no longer built with -DPy_BUILD_CORE by default,
as using that flag may now require including additional internal-only header files.
Instead, only the modules that specifically need it use that setting.
Serhiy Storchaka [Fri, 20 Apr 2018 13:01:25 +0000 (16:01 +0300)]
bpo-33298: Wrap only constants with _PyCode_ConstantKey() in the compiler. (GH-6512)
Gregory P. Smith [Fri, 20 Apr 2018 05:41:19 +0000 (22:41 -0700)]
bpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537)
Fix clang ubsan (undefined behavior sanitizer) warnings in dictobject.c by
adjusting how the internal struct _dictkeysobject shared keys structure is
declared.
This remains ABI compatible. We get rid of the union at the end of the
struct being used for conveinence to avoid typecasting in favor of char[]
variable length array at the end of a struct. This is known to clang to be
used for variable sized objects and will not cause an undefined behavior
problem. Similarly, char arrays do not have strict aliasing undefined
behavior when cast.
PEP-007 does not currently list variable length arrays (VLAs) as allowed
in our subset of C99. If this turns out to be a problem, the fix to this is
to change the char `dk_indices[]` into `dk_indices[1]` and restore the
three size computation subtractions this change removes:
`- Py_MEMBER_SIZE(PyDictKeysObject, dk_indices)`
If this works as is I'll make a separate PR to update PEP-007.
Gregory P. Smith [Thu, 19 Apr 2018 15:58:17 +0000 (08:58 -0700)]
Clean up the readme text around PGO a bit. (GH-6538)
Serhiy Storchaka [Thu, 19 Apr 2018 06:23:03 +0000 (09:23 +0300)]
bpo-33189: pygettext.py now accepts only literal strings (GH-6364)
as docstrings and translatable strings, and rejects
bytes literals and f-string expressions.
Serhiy Storchaka [Thu, 19 Apr 2018 05:28:04 +0000 (08:28 +0300)]
bpo-33299: Return an object itself for some types in _PyCode_ConstantKey(). (GH-6513)
Pablo Galindo [Thu, 19 Apr 2018 04:26:18 +0000 (05:26 +0100)]
Update What's new in 3.7 to reference preadv, pwritev and posix_spawn (GH-6524)
Denis Osipov [Wed, 18 Apr 2018 23:50:25 +0000 (04:50 +0500)]
bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758)
Serhiy Storchaka [Wed, 18 Apr 2018 22:55:37 +0000 (01:55 +0300)]
bpo-33308: Fix a crash in the parser module when convert an ST object. (#6519)
Converting with line_info=False and col_info=True crashed before.
Aaron Ang [Tue, 17 Apr 2018 21:34:14 +0000 (14:34 -0700)]
bpo-11594: Ensure line-endings are respected when using 2to3 (GH-6483)
INADA Naoki [Tue, 17 Apr 2018 15:31:29 +0000 (00:31 +0900)]
bpo-33295: Skip test using missing external site (GH-6504)
`test_urllib2net.OtherNetworkTests.test_sites_no_connection_close`
used `http://www.imdb.com/` but it is moved to https so the test is
not valid anymore. Skip test for the moment to allow CI to proceed.
Wolfgang Maier [Tue, 17 Apr 2018 15:16:17 +0000 (17:16 +0200)]
bpo-33144: random.Random and subclasses: split _randbelow implementation (GH-6291)
jdemeyer [Tue, 17 Apr 2018 15:15:44 +0000 (17:15 +0200)]
Fix spelling typo (GH-6443)
INADA Naoki [Tue, 17 Apr 2018 06:53:34 +0000 (15:53 +0900)]
bpo-33205: dict: Change GROWTH_RATE to `used*3` (GH-6350)
Benjamin Peterson [Tue, 17 Apr 2018 05:56:46 +0000 (22:56 -0700)]
fix pydoc-topics to work with Sphinx 1.7 (GH-6475)
In fact, we now require a newer Sphinx version because APIs have moved around.
Andrés Delfino [Tue, 17 Apr 2018 05:34:35 +0000 (02:34 -0300)]
bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)
Łukasz Langa [Tue, 17 Apr 2018 03:00:31 +0000 (20:00 -0700)]
Revert
725476222a3c1f2f93162d75a540e6bcdeaa36fd (#6494)
This note in documentation was never true.
Łukasz Langa [Tue, 17 Apr 2018 00:33:59 +0000 (17:33 -0700)]
[lib2to3] Make grammar pickling faster (#6491)
* Now uses pickle protocol 4
* Doesn't wrap the grammar's `__dict__` in ordered dictionaries anymore as
dictionaries in Python 3.6+ are ordered by default
This still produces deterministic pickles (that hash the same with MD5).
Tested with different PYTHONHASHSEED values.
Łukasz Langa [Mon, 16 Apr 2018 23:24:05 +0000 (16:24 -0700)]
acks += Zsolt Dollenstein (#6490)
Zsolt Dollenstein [Mon, 16 Apr 2018 21:33:31 +0000 (22:33 +0100)]
Add support for all string literals to lib2to3 (#6457)
Andrés Delfino [Mon, 16 Apr 2018 14:02:56 +0000 (11:02 -0300)]
Remove to-be-deprecated urllib.request.urlretrieve function reference (#6454)
anentropic [Mon, 16 Apr 2018 03:40:35 +0000 (04:40 +0100)]
bpo-31947: remove None default for names param in Enum._create_ (GH-4288)
Zackery Spytz [Sun, 15 Apr 2018 22:12:29 +0000 (16:12 -0600)]
bpo-33270: Intern names for all anonymous code objects (#6472)
Alex Gaynor [Sun, 15 Apr 2018 21:23:47 +0000 (17:23 -0400)]
Removed a confusing line from a docstring in http.cookies (GH-6482)
There's no reason a cookie should _ever_ contain pickled data. That's just asking for a critical security vulnerability. Back in Python2 there were helpers for doing that, but they're no more in Python3. Now coded_value is used when the value needs to be encoded for any reason.
Nick Coghlan [Sun, 15 Apr 2018 13:32:05 +0000 (23:32 +1000)]
bpo-33185: Improve wording and markup (GH-6477)
Adds some working and markup fixes that I missed
in the initial commit for this issue.
(Follow-up to GH-6419)
Nick Coghlan [Sun, 15 Apr 2018 11:52:57 +0000 (21:52 +1000)]
bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)
The pydoc CLI assumed -m pydoc would add the empty string
to sys.path, and hence got confused when it switched to
adding the full initial working directory instead.
This refactors the pydoc CLI path manipulation to be
more testable, and ensures it won't accidentally
remove the standard library directory containing
pydoc itself from sys.path.
Antoine Pitrou [Sat, 14 Apr 2018 17:49:21 +0000 (19:49 +0200)]
bpo-33176: Add a toreadonly() method to memoryviews. (GH-6466)
Steve Dower [Sat, 14 Apr 2018 00:30:34 +0000 (17:30 -0700)]
bpo-33184: Update Windows installer to OpenSSL 1.1.0h (GH-6463)
jdemeyer [Fri, 13 Apr 2018 12:22:46 +0000 (14:22 +0200)]
bpo-33265: use an actual method instead of a method-like function in ExitStack (GH-6456)
`MethodType` has the exact semantics that `ExitStack` needs,
so we can avoid creating a Python level closure.
WeizhongTu [Fri, 13 Apr 2018 01:33:08 +0000 (09:33 +0800)]
itemgetter add dict example (GH-1280)
suic86 [Wed, 11 Apr 2018 18:45:04 +0000 (20:45 +0200)]
Fix error messages in argparse examples (GH-6435)
The examples in argparse documentation use `error: too few arguments`
error message which was removed in this commit
f97c59a in 2011.
Serhiy Storchaka [Wed, 11 Apr 2018 16:15:51 +0000 (19:15 +0300)]
bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)
Mark Nemec [Tue, 10 Apr 2018 17:23:14 +0000 (18:23 +0100)]
bpo-33097: Fix submit accepting callable after executor shutdown by interpreter exit (GH-6144)
Executors in concurrent.futures accepted tasks after executor was shutdown by interpreter exit. Tasks were left in PENDING state forever. This fix changes submit to instead raise a RuntimeError.
Devon R [Tue, 10 Apr 2018 05:21:18 +0000 (14:21 +0900)]
bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)
Aaron Ang [Mon, 9 Apr 2018 21:09:31 +0000 (14:09 -0700)]
bpo-31201: Clarify command to re-run failing test(s) with example (GH-6417)
Serhiy Storchaka [Mon, 9 Apr 2018 17:09:17 +0000 (20:09 +0300)]
bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. (GH-6259)
Based on patch by Oleg Krasnikov.
Serhiy Storchaka [Mon, 9 Apr 2018 16:14:26 +0000 (19:14 +0300)]
bpo-33031: Remove dead code in C implementation of OrderedDict. (GH-6120)
This code doesn't have effect on the final result, but causes
GCC 8 warnings and can have an undefined behavior.
Antoine Pitrou [Mon, 9 Apr 2018 15:37:55 +0000 (17:37 +0200)]
bpo-32759: Free unused arenas in multiprocessing.heap (GH-5827)
Large shared arrays allocated using multiprocessing would remain allocated
until the process ends.
Serhiy Storchaka [Mon, 9 Apr 2018 14:16:01 +0000 (17:16 +0300)]
Fix misleading docsting of shelve.open(). (GH-6427)
The protocol parameter can be any protocol supported by the
pickle module.
Wolfgang Maier [Mon, 9 Apr 2018 00:42:39 +0000 (02:42 +0200)]
Update docstring of tempfile._RandomNameSequence (GH-6414)
When bpo-12015 got resolved by increasing the length of the
random string generated by _RandomNameSequence from six to eight
characters, the docstring of the class was not adjusted accordingly.
Serhiy Storchaka [Sun, 8 Apr 2018 16:18:04 +0000 (19:18 +0300)]
Improve highlighting of some code blocks. (GH-6401)
Raymond Hettinger [Sun, 8 Apr 2018 15:44:20 +0000 (08:44 -0700)]
Add a prepend() recipe to teach a chain() idiom (GH-6415)
Alex Gaynor [Sat, 7 Apr 2018 20:09:42 +0000 (16:09 -0400)]
bpo-29613: Added support for SameSite cookies (GH-6413)
* bpo-29613: Added support for SameSite cookies
Implemented as per draft
https://tools.ietf.org/html/draft-west-first-party-cookies-07
* Documented SameSite
And suggestions by members.
* Missing space :(
* Updated News and contributors
* Added version changed details.
* Fix in documentation
* fix in documentation
* Clubbed test cases for same attribute into single.
* Updates
* Style nits + expand tests
* review feedback
Antoine Pitrou [Sat, 7 Apr 2018 16:14:03 +0000 (18:14 +0200)]
bpo-33201: Modernize "Extension types" doc (GH-6337)
* bpo-33201: Modernize "Extension types" doc
* Split tutorial and other topics
* Some small fixes
* Address some review comments
* Rename noddy* to custom* and shoddy to sublist
* Fix markup
Ned Deily [Sat, 7 Apr 2018 06:36:02 +0000 (02:36 -0400)]
bpo-33184: Update macOS installer build to use OpenSSL 1.1.0h. (GH-6407)
Jay Crotts [Sat, 7 Apr 2018 01:27:07 +0000 (20:27 -0500)]
bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179)
Brett Cannon [Fri, 6 Apr 2018 23:10:18 +0000 (16:10 -0700)]
bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidating caches (GH-6402)
An entry of None in sys.path_importer_cache represents a negative/missing finder for a path, so clearing it out makes sense.
Marcel Plch [Fri, 6 Apr 2018 21:22:04 +0000 (23:22 +0200)]
bpo-29673: fix gdb scripts pystack and pystackv (GH-6126)
Alex Gaynor [Fri, 6 Apr 2018 12:26:49 +0000 (08:26 -0400)]
fixed capitalization of class name (GH-6396)
INADA Naoki [Fri, 6 Apr 2018 06:51:24 +0000 (15:51 +0900)]
bpo-33231: Fix potential leak in normalizestring() (GH-6386)
Raymond Hettinger [Thu, 5 Apr 2018 18:19:57 +0000 (11:19 -0700)]
bpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381)
Skip Montanaro [Thu, 5 Apr 2018 17:34:44 +0000 (12:34 -0500)]
bpo-15817: Expose command documentation to gdb help (GH-6384)
Original patch by Alexander Belopolsky. Patch by Skip Montanaro.
Wolfgang Maier [Thu, 5 Apr 2018 15:19:44 +0000 (17:19 +0200)]
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338)
Eric V. Smith [Thu, 5 Apr 2018 10:50:18 +0000 (06:50 -0400)]
Clean up and enhance frozen dataclass tests. (GH-6380)
* Add a test for frozen with unhashable field value.
* Improve a comment.
Brett Cannon [Thu, 5 Apr 2018 02:12:39 +0000 (19:12 -0700)]
Add a webhook for Zulip to the Travis configuration (GH-6379)
Ivan Levkivskyi [Thu, 5 Apr 2018 00:25:15 +0000 (01:25 +0100)]
bpo-32873: Remove a name hack for generic aliases in typing module (GH-6376)
This removes a hack and replaces it with a proper
mapping {'list': 'List', 'dict': 'Dict', ...}.
Ivan Levkivskyi [Wed, 4 Apr 2018 16:00:15 +0000 (17:00 +0100)]
Call super in Generic.__init_subclass__ (#6356)
Serhiy Storchaka [Wed, 4 Apr 2018 15:45:10 +0000 (18:45 +0300)]
bpo-29922: Add more tests for error messages in 'async with'. (GH-6370)
Different paths are executed for normal exit and for leaving
the 'async with' block with 'break', 'continue' or 'return'.
Łukasz Langa [Wed, 4 Apr 2018 06:06:53 +0000 (23:06 -0700)]
bpo-23403: Bump pickle.DEFAULT_PROTOCOL to 4 (#6355)
This makes performance better and produces shorter pickles. This change is backwards compatible up to the oldest currently supported version of Python (3.4).
INADA Naoki [Wed, 4 Apr 2018 04:59:08 +0000 (13:59 +0900)]
bpo-33195: Doc: Deprecate Py_UNICODE in c-api/arg (GH-6329)
Py_UNICODE is deprecated since Python 3.3.
But the deprecation is missed in the c-api/arg document.
hui shang [Wed, 4 Apr 2018 04:55:05 +0000 (12:55 +0800)]
bpo-32337: Update documentats about dict order (GH-4973)
Serhiy Storchaka [Tue, 3 Apr 2018 21:11:27 +0000 (00:11 +0300)]
bpo-33209: End framing at the end of C implementation of pickle.Pickler.dump(). (GH-6363)
INADA Naoki [Tue, 3 Apr 2018 03:39:47 +0000 (12:39 +0900)]
bpo-32360: Remove object_pairs_hook=OrderedDict examples (GH-5001)
Andrés Delfino [Tue, 3 Apr 2018 02:48:54 +0000 (23:48 -0300)]
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335)
INADA Naoki [Tue, 3 Apr 2018 02:43:53 +0000 (11:43 +0900)]
bpo-33199: Initialize ma_version_tag in PyDict_Copy (GH-6341)
Serhiy Storchaka [Mon, 2 Apr 2018 22:41:38 +0000 (01:41 +0300)]
bpo-29922: Improve error messages in 'async with' (GH-6352)
when __aenter__() or __aexit__() return non-awaitable object.
Terry Jan Reedy [Mon, 2 Apr 2018 15:18:02 +0000 (11:18 -0400)]
bpo-33204: IDLE - revise and extend colorizer test. (GH-6347)
Followup to primary PR for the issue, GH-6344.
Terry Jan Reedy [Mon, 2 Apr 2018 05:47:46 +0000 (01:47 -0400)]
bpo-33204: IDLE: consistently color invalid string prefixes (#6344)
A 'u' string prefix cannot be paired with either 'r' or 'f'. Consistently
color as much of the prefix, starting at the right, as is valid.
Gregory P. Smith [Sun, 1 Apr 2018 19:01:48 +0000 (12:01 -0700)]
bpo-20104: Add os.posix_spawn documentation. (#6334)
Serhiy Storchaka [Sat, 31 Mar 2018 21:29:37 +0000 (00:29 +0300)]
bpo-33132: Fix more reference counting issues in the compiler. (GH-6323)
Ivan Levkivskyi [Sat, 31 Mar 2018 12:41:17 +0000 (13:41 +0100)]
Allow dynamic creation of generic dataclasses (GH-6319)
Mike DePalatis [Fri, 30 Mar 2018 07:36:06 +0000 (03:36 -0400)]
Fix socket type in DatagramHandler documentation: TCP -> UDP (GH-6272)
Nick Coghlan [Fri, 30 Mar 2018 05:36:42 +0000 (15:36 +1000)]
bpo-33182: Fix pointer types in _testembed (GH-6310)
Eric V. Smith [Thu, 29 Mar 2018 15:07:48 +0000 (11:07 -0400)]
bpo-33175: dataclasses should look up __set_name__ on class, not instance (GH-6305)
Ned Deily [Thu, 29 Mar 2018 12:47:27 +0000 (08:47 -0400)]
bpo-32726: macOS 10.6+ installer now builds Tcl/TK 8.6 (GH-6307)
Build and link with private copy of Tcl/Tk 8.6 for the macOS 10.6+
installer. The 10.9+ installer variant already does this. This means that
the Python 3.7 provided by the python.org macOS installers no longer need or
use any external versions of Tcl/Tk, either system-provided or user-
installed, such as ActiveTcl.