[issue31544] gettext.Catalog title is not flagged as a class

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg314357 ___ Python tracker ___

[issue31455] ElementTree.XMLParser() mishandles exceptions

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31544] gettext.Catalog title is not flagged as a class

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0694b6a651ba2a53f6323ffb3b23358f43885815 by Serhiy Storchaka (scoder) in branch '2.7': bpo-31544: Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set. (GH-3992)

[issue33006] docstring of filter function is incorrect

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan, rhettinger ___ Python tracker ___

[issue33130] functools.reduce signature/docstring discordance

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan, rhettinger versions: -Python 3.5 ___ Python tracker ___

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have tested -- omitting the option and passing an empty string are treated different in Tk. Passing a duplicate iid is error. Thus the fix should be just `iid is not None`. But needed tests. -- keywords: +easy stage:

[issue33119] python sys.argv argument parsing not clear

2018-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: This is deliberate, and is covered in the documentation at https://docs.python.org/3/using/cmdline.html#cmdoption-m where it says 'If this option is given, the first element of sys.argv will be the full path to the module file (while the

[issue22257] PEP 432: Redesign the interpreter startup sequence

2018-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, this is the issue for making the API public, so it will stay open until PEP 432 is actually accepted. We switched to the pre-implement-changes-as-an-internal-CPython-refactoring approach after we/I realised there was no feasible way to

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-23 Thread Elias Zamaria
Elias Zamaria added the comment: Mark, you have some good points. I didn't fully think about the implications of my change. I undid the change to _operator_fallbacks. I updated the tests to expect 1.0 // 1/10 to equal 9.0 and 1.0 % 1/10 to equal 0.09995. That

[issue33121] recv returning 0 on closed connection not documented

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please make a specific suggestion for a change in a specific location in the current online version of a particular doc -- the one you wish had been there already. -- nosy: +terry.reedy ___

[issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Peter, please include x.y.z version with reports (and upgrade first if possible ;-). This was apparently fixed in #25532 last year for current versions. With 3.6.4 and 3.7.0b2 I get Traceback (most recent call last): File

[issue33119] python sys.argv argument parsing not clear

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two of your 3 suggested alternatives could lead to bugs. To use your example: python -m mainmodule.submodule.foobar -o -b is a convenient alternative and abbreviation for python .../somedir/mainmodule/submodule/foobar.py -o -b The two

[issue22257] PEP 432: Redesign the interpreter startup sequence

2018-03-23 Thread Ned Deily
Ned Deily added the comment: See Issue33128: PathFinder is twice on sys.meta_path. Also, is this issue supposed to remain open across releases? -- nosy: +ned.deily ___ Python tracker

[issue33128] PathFinder is twice on sys.meta_path

2018-03-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. git bisect result: 1abcf6700b4da6207fe859de40c6c1bada6b4fec is the first bad commit commit 1abcf6700b4da6207fe859de40c6c1bada6b4fec Author: Eric Snow Date: Tue May 23 21:46:51 2017 -0700

[issue33023] Unable to copy ssl.SSLContext

2018-03-23 Thread Vitaly Kruglikov
Vitaly Kruglikov added the comment: It would be very helpful to make a statement in SSLContext's documentation to the effect that it's not copyable. This is frankly the first time I run into a non-copyable object.I spend quite a bit of time researching this after

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Eric V. Smith
Eric V. Smith added the comment: Changing this to 3.8: there's not enough time to add this to 3.7. -- versions: -Python 3.7 ___ Python tracker

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___

[issue33117] asyncio example uses non-existing/documented method

2018-03-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.5 ___ Python tracker ___ ___

[issue33115] Asyncio loop blocks with a lot of parallel tasks

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the unforeseeable future arrives, someone can reopen or open a new issue. -- nosy: +terry.reedy resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue33130] functools.reduce signature/docstring discordance

2018-03-23 Thread Vince Reuter
New submission from Vince Reuter : The signature for functools.reduce correctly refers to the collection parameter as an iterable, but the docstring refers to it as "sequence," which the input need not be and does not match the parameter name despite being italicized.

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
Alan Du added the comment: Err... the right link would actually be https://github.com/alanhdu/cpython/tree/bpo-33129. -- ___ Python tracker

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
Alan Du added the comment: If this would be accepted, I'd be happy to contribute a patch adding a `kwarg_only` option to `dataclass` (although it might take me a while since I'm not super familiar with the Python development workflow). I believe I already have the code

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
New submission from Alan Du : I'd like to request a new option to the `dataclasses.dataclass` decorator to make the `__init__` keyword-only. The two use-cases I have in mind are: (1) Using as a dataclass big-bag-of-config. In this scenario, forcing the user to specify

[issue33128] PathFinder is twice on sys.meta_path

2018-03-23 Thread Hartmut Goebel
New submission from Hartmut Goebel : As of Python 3.7.0b2 _frozen_importlib_external.PathFinder exists twice on sys.meta_path, and it is the same object: $ python -S Python 3.7.0b2 (default, Mar 22 2018, 20:09:00) [GCC 5.5.0] on linux Type "help", "copyright",

[issue33111] Merely importing tkinter breaks parallel code (multiprocessing, sharedmem)

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The examples in the multiprocessing doc all put all multiprocessing calls within a "if __name__ == '__main__':" statement. I know that this is necessary on Windows, but don't know if or when it helps on other OSes. -- nosy:

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: This was initially reported in pydev thread "ttk.Treeview.insert() does not allow to insert item with iid=0" on 2018/3/16. Igor, you should have mentioned on the thread that you had opened a tracker issue in response. It was only

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread miss-islington
miss-islington added the comment: New changeset 643a781188539de038745d23d0e8e5a03b781209 by Miss Islington (bot) in branch '3.6': bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)

[issue33061] NoReturn missing from __all__ in typing.py

2018-03-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: The typing repo PR is not merged yet, but I am closing this here, the remainder is tracked in typing repo. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue33061] NoReturn missing from __all__ in typing.py

2018-03-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset ac5602746ed39ca6591e98e062e587121ac71371 by Ivan Levkivskyi in branch '3.7': bpo-33061: Add missing 'NoReturn' to __all__ in typing.py (GH-6127) (#6162)

[issue32387] Disallow untagged C extension import on major platforms

2018-03-23 Thread Ned Deily
Ned Deily added the comment: As far as I know, it has not been discussed elsewhere and I think the potential for breaking third-party distributions is too high to risk making this change this late in the release cycle, independent of Steve's concerns in msg308878. Unless

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread miss-islington
miss-islington added the comment: New changeset 45738ede5ac8507b88b35fb0d6e2806a7b2e2efc by Miss Islington (bot) in branch '3.7': bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5950 ___ Python tracker ___

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5949 ___ Python tracker ___

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-03-23 Thread Berker Peksag
Change by Berker Peksag : -- keywords: +easy stage: -> needs patch type: -> behavior versions: -Python 3.4, Python 3.5 ___ Python tracker

[issue32358] json.dump: fp must be a text file object

2018-03-23 Thread Berker Peksag
Berker Peksag added the comment: This is already documented in the json.dump() documentation: The json module always produces str objects, not bytes objects. Therefore, fp.write() must support str input. Note that the traceback you've posted doesn't have

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread Brett Cannon
Brett Cannon added the comment: New changeset 5cbb84106efefd200933aa31e22abf39267d2557 by Brett Cannon (Himanshu Lakhara) in branch 'master': bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)

[issue33114] random.sample() behavior is unexpected/unclear from docs

2018-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Something along the lines of: "For a fixed seed, random.sample(population, k) > is not guaranteed to return the same samples for different values of k." In a way, the proposed wording succinctly directly addresses the problem

[issue31793] Allow to specialize smart quotes in documentation translations

2018-03-23 Thread Julien Palard
Julien Palard added the comment: Reopening as smart quotes is still a source of bugs in Japanese translation, see: https://github.com/python/docsbuild-scripts/issues/32#issuecomment-375801129 -- status: closed -> open ___

[issue32387] Disallow untagged C extension import on major platforms

2018-03-23 Thread Brett Cannon
Brett Cannon added the comment: Not sure if this has missed the 3.7 train, but bumping this to check if the discussion on distutils-sig ever occurred and what the result of it was. (Otherwise the PR just needs a news entry and it should be ready.) -- versions:

[issue33122] ftplib: FTP_TLS seems to have problems with sites that close the encrypted channel themselfes

2018-03-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Please paste your code and traceback message. Also what's the remote FTP server you're connected to? You should be able to see it in the welcome message (you can set FTP_TLS.debugging to True). --

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Christian Heimes
Christian Heimes added the comment: The homepage is correct. The last stable release is 2.6.4. I know this first hand from a LibreSSL developer. -- ___ Python tracker

[issue33122] ftplib: FTP_TLS seems to have problems with sites that close the encrypted channel themselfes

2018-03-23 Thread Ned Deily
Change by Ned Deily : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread miss-islington
miss-islington added the comment: New changeset f8d2c3cf5f62f0c259b2bf35c631353d22cf1d08 by Miss Islington (bot) in branch '3.7': bpo-31639: Use threads in http.server module. (GH-5018)

[issue33093] Fatal error on SSL transport

2018-03-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the report and for the analysis! Closing as duplicate. -- nosy: +ned.deily resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Skip sending/receiving after SSL transport closing

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Charles
Charles added the comment: I'm not sure it's a beta release. I think they just forgot to update on their homepage what the latest stable is. Nothing on the releases page or the release notes says it's a beta. -- ___ Python

[issue33023] Unable to copy ssl.SSLContext

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 6099 changes error message "can't pickle SSLContext objects" to "cannot serialize SSLContext object", right? Wouldn't be better to change the standard error message instead? -- nosy: +serhiy.storchaka

[issue32287] Import of _pyio module failed on cygwin

2018-03-23 Thread Berker Peksag
Change by Berker Peksag : -- superseder: -> _pyio module broken on Cygwin / setmode not usable ___ Python tracker ___

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the report. LibreSSL 2.7 introduced OpenSSL 1.1 API methods. I already know about the issue and have a pending fix for it on my disk. I'll push it as soon as 2.7.1 is out. 2.7.0 is a beta release. The latest stable is 2.6.4.

[issue33127] Python 2.7.14 won't build ssl module with Libressl 2.7.0

2018-03-23 Thread Charles
New submission from Charles <chd...@gmail.com>: On macOS I could build python 2.7.14 with libressl 2.6.4 without any problems. If I try to build that same version of python with libressl 2.7.0, I get the failure pasted in below. /Users/chdiza/.tmp/tmpdir/python27-20180323-74284-f2auy2/

[issue32234] Add context management to mailbox.Mailbox

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is closing a mailbox in __exit__ the most desirable operation? In the last example on https://docs.python.org/3/library/mailbox.html#examples inbox is locked and unlocked multiple times. The with statement couldn't be used

[issue32234] Add context management to mailbox.Mailbox

2018-03-23 Thread Stéphane Blondon
Stéphane Blondon added the comment: I don't know about something blocking the merge. I sent a message to Barry on Github the 3th january but perhaps it was a wrong timing (too soon after new year). -- ___ Python tracker

[issue33092] The bytecode for f-string formatting is inefficient.

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I wouldn't say this more efficient. Instead one instruction you would need to execute two instructions. If I implemented f-string formatting I would add four simple opcodes for str(), repr(), ascii() and format(). But Eric

[issue33081] multiprocessing Queue leaks a file descriptor associated with the pipe writer

2018-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for reporting this. I agree this is a real issue, but it doesn't exist on Python 3 anymore: >>> q = multiprocessing.Queue() >>> q.put(1) >>> q.get() 1 >>> threading.enumerate() [<_MainThread(MainThread, started 139978753529600)>,

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread Julien Palard
Change by Julien Palard : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5948 ___ Python tracker ___

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5947 ___ Python tracker ___

[issue33126] Some C buffer protocol APIs not documented

2018-03-23 Thread Antoine Pitrou
New submission from Antoine Pitrou : The following C functions are available for C code but not documented: - PyBuffer_ToContiguous() - PyBuffer_FromContiguous() - PyObject_CopyData() I am not sure how to describe those functions myself. -- assignee: docs@python

[issue31639] http.server and SimpleHTTPServer hang after a few requests

2018-03-23 Thread Julien Palard
Julien Palard added the comment: New changeset 8bcfa02e4b1b65634e526e197588bc600674c80b by Julien Palard in branch 'master': bpo-31639: Use threads in http.server module. (GH-5018) https://github.com/python/cpython/commit/8bcfa02e4b1b65634e526e197588bc600674c80b

[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for spotting this. I will take a look soon, unless someone beats me to it. -- nosy: +pitrou ___ Python tracker

[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-03-23 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +tomMoral versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue33092] The bytecode for f-string formatting is inefficient.

2018-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I would suggest that a simper interpreter with smaller, simpler bytecodes is > a worthy goal in itself. +1 from me. Though I'm curious about performance changes as well :-) -- nosy: +pitrou ___

[issue33125] Windows 10 ARM64 platform support

2018-03-23 Thread Steven Downum
Change by Steven Downum : -- nosy: +steven.downum ___ Python tracker ___ ___

[issue33125] Windows 10 ARM64 platform support

2018-03-23 Thread Zachary Ware
Zachary Ware added the comment: Ideally, all of the changes necessary in OpenSSL, libffi, and Tcl/Tk will happen upstream and we'll just update to new versions of them. We have PR 3806 in progress to extract libffi from our repo and treat it just as any other

[issue33041] Issues with "async for"

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33041] Issues with "async for"

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 18d7edf32e6832a818621cb8cb3d144928eca232 by Serhiy Storchaka in branch '3.6': [3.6] bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH-6154). (GH-6199)

[issue33125] Windows 10 ARM64 platform support

2018-03-23 Thread Steven Noonan
Steven Noonan added the comment: I originally tagged this issue against 3.6 just because that's what I was attempting to build. But I'm not super concerned about what release these changes actually land in, I can always backport it to my own builds (and at my own

[issue33125] Windows 10 ARM64 platform support

2018-03-23 Thread Steve Dower
Steve Dower added the comment: I'd like to see this as well, but just to set expectations, it can't be any earlier than 3.8 at this stage (for upstream support), and we need access to some real hardware to regularly run tests on. That said, most of the changes you

[issue33041] Issues with "async for"

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +5946 ___ Python tracker ___ ___

[issue30953] Fatal python error when jumping into except clause

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 397466dfd905b5132f1c831cd9dff3ecc40b3218 by Serhiy Storchaka in branch 'master': bpo-30953: Improve error messages and add tests for jumping (GH-6196)

[issue33041] Issues with "async for"

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b9744e924ca07ba7db977e5958b91cd8db565632 by Serhiy Storchaka in branch '3.7': bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH-6154)

[issue33041] Issues with "async for"

2018-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 702f8f3611bc49b73772cce2b9b041bd11ff9b35 by Serhiy Storchaka in branch 'master': bpo-33041: Rework compiling an "async for" loop. (#6142)

[issue33111] Merely importing tkinter breaks parallel code (multiprocessing, sharedmem)

2018-03-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I cannot reproduce the problem on macOS 10.13.3 with python 3.6 (but haven't spent much time on this). The combination of GUI code with multiprocessing is a known source of problems on macOS, the system libraries are hostile to that.

[issue33120] infinite loop in inspect.unwrap(unittest.mock.call)

2018-03-23 Thread ppperry
ppperry added the comment: This is a dupe of https://bugs.python.org/issue25532 -- nosy: +ppperry ___ Python tracker ___

[issue33093] Fatal error on SSL transport

2018-03-23 Thread ppperry
Change by ppperry : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue33093] Fatal error on SSL transport

2018-03-23 Thread Eric Toombs
Eric Toombs added the comment: Well, that looks good! Looking forward to 3.6.5! -- ___ Python tracker ___

[issue32999] issubclass(obj, abc.ABC) causes a segfault

2018-03-23 Thread miss-islington
miss-islington added the comment: New changeset c71edab15d023360388da8360700d419b5f48c81 by Miss Islington (bot) in branch '3.7': bpo-32999: ast: Convert useless check to assert (GH-6197)

[issue32999] issubclass(obj, abc.ABC) causes a segfault

2018-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +5945 ___ Python tracker ___

[issue32999] issubclass(obj, abc.ABC) causes a segfault

2018-03-23 Thread INADA Naoki
INADA Naoki added the comment: New changeset c65bf3fe4a2bde424b79e350f36b7aaa3f6476f6 by INADA Naoki in branch 'master': bpo-32999: ast: Convert useless check to assert (GH-6197) https://github.com/python/cpython/commit/c65bf3fe4a2bde424b79e350f36b7aaa3f6476f6

[issue32999] issubclass(obj, abc.ABC) causes a segfault

2018-03-23 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +5944 ___ Python tracker ___ ___

[issue33115] Asyncio loop blocks with a lot of parallel tasks

2018-03-23 Thread Marat Sharafutdinov
Marat Sharafutdinov added the comment: Concerning the example adding a jitter is useful, thanks! But anyway in case there will be something not constant as sleeping for 1 sec is, the problem will continue to appear. -- ___

[issue33115] Asyncio loop blocks with a lot of parallel tasks

2018-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: The problem of the example is: all 1 tasks starts in the same moment, than waits for 1 sec each and at the same moment every task clones itself. Adding a jitter into example can solve the issue. --

[issue30953] Fatal python error when jumping into except clause

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue30953] Fatal python error when jumping into except clause

2018-03-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5943 stage: -> patch review ___ Python tracker ___