[issue34163] Python latest release 2.7 shows SSL error

2018-07-19 Thread Janibasha
New submission from Janibasha : I have downloaded & installed python latest 2.7 version (on date - 16th July). Initially i was unable to install even pip using cmd - python get-pip.py, somehow i managed to installed pip. Then i was unable to install any package using pip. It throws SSL

[issue34161] (good first issue) Tutorial 7.1 str.format() code example syntax error

2018-07-19 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Yup. Are you interested in creating the PR? -- keywords: +easy nosy: +Mariatta stage: -> needs patch title: Tutorial 7.1 str.format() code example syntax error -> (good first issue) Tutorial 7.1 str.format() code example syntax error versions:

[issue33216] [3.5] Wrong order of stack for CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW

2018-07-19 Thread Larry Hastings
Larry Hastings added the comment: New changeset 76aa2c0a9a8dd3ac90b91e7342c8ce8125bf21f9 by larryhastings in branch '3.5': bpo-33216: Clarify the documentation for CALL_FUNCTION_* (#8338) https://github.com/python/cpython/commit/76aa2c0a9a8dd3ac90b91e7342c8ce8125bf21f9 --

[issue34160] ElementTree not preserving attribute order

2018-07-19 Thread Raymond Hettinger
New submission from Raymond Hettinger : Starting with Python3.6, the order of keyword arguments has been guaranteed. Something in ElementTree is not respecting that order. $ python3.7 Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24) [Clang 6.0 (clang-600.0.57)] on darwin

[issue28166] WindowsConsoleIO misbehavior when Ctrl+C is ignored

2018-07-19 Thread Valeriya Sinevich
Change by Valeriya Sinevich : -- keywords: +patch pull_requests: +7878 stage: test needed -> patch review ___ Python tracker ___

[issue34157] NamedTemporaryFile can leave temporary files behind

2018-07-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nick, is this related to the bug where the "finally" portion of a context manager isn't guaranteed to be called? -- nosy: +ncoghlan, rhettinger ___ Python tracker

[issue34132] Obscure netrc parser "bug"

2018-07-19 Thread bbayles
bbayles added the comment: I took a shot at this, but closed my PR when I found that it introduced a different regression. After playing with it for a bit, I think that this commit [1] is a bit problematic because it uses lexer.instream.readline(), which can make the line number in

[issue28166] WindowsConsoleIO misbehavior when Ctrl+C is ignored

2018-07-19 Thread Valeriya Sinevich
Valeriya Sinevich added the comment: I posted a PR but the problem with it is that all the input before the ignored Ctrl+C is lost. -- nosy: +valer ___ Python tracker ___

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-07-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: terry.reedy components: IDLE nosy: terry.reedy priority: normal severity: normal stage: needs patch status: open title: idlelib/NEWS.txt for 3.8.0 (and backports) type: enhancement versions: Python 3.6, Python 3.7, Python 3.8

[issue24379] Add operator.subscript as a convenience for creating slices

2018-07-19 Thread STINNER Victor
STINNER Victor added the comment: > Raymond, Tal and Guido -- do any of you work routinely with multi-dimensional > arrays? Hi Stephan Hoyer, IMHO a *closed* issue is not the most appropriate place to request Guido to change his mind. You may get more traction on python-ideas where you may

[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-07-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +7880 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34163] Python latest release 2.7 shows SSL error

2018-07-19 Thread Christian Heimes
Christian Heimes added the comment: This looks like a pip problem. Please open a bug report at https://github.com/pypa/pip -- ___ Python tracker ___

[issue34160] ElementTree not preserving attribute order

2018-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Attributes are sorted by name when converted an element to the text representation for making it stable. Changing this may break existing software. I think it makes sense now to add an optional keyword-only parameter sort_attrs (True by default) for

[issue34161] Tutorial 7.1 str.format() code example syntax error

2018-07-19 Thread Orlando
New submission from Orlando : Tutorial 7.1 str.format() example (https://docs.python.org/3.7/tutorial/inputoutput.html#fancier-output-formatting): [1]yes_votes = 42_572_654 ; no_votes = 43_132_495 [2]percentage = (yes_votes/(yes_votes+no_votes) [3]'{:-9} YES votes {:2.2%}'.format(yes_votes,

[issue34159] asyncio basic event loop stuck with no tasks scheduled or ready

2018-07-19 Thread Sheng Zhong
New submission from Sheng Zhong : An exception is raised and propagates up the call stack without being consumed until the asyncio/events.py:_run function. The exception seemingly doesn't get consumed according to my breakpoint (quite strange and a part of my confusion) but the task does get

[issue30237] Access violation due to CancelSynchronousIo of console read

2018-07-19 Thread Steve Dower
Steve Dower added the comment: New changeset ce75df3031c86b78311b1ad76c39c0b39d7d7424 by Steve Dower (ValeriyaSinevich) in branch 'master': bpo-30237: Output error when ReadConsole is canceled by CancelSynchronousIo. (GH-7911)

[issue30237] Access violation due to CancelSynchronousIo of console read

2018-07-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +7876 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30237] Access violation due to CancelSynchronousIo of console read

2018-07-19 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +7877 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: docs@python -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33336] [imaplib] MOVE is a legal command

2018-07-19 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-33327: Add a method to move messages to IMAPlib. -- ___ Python tracker ___ ___

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I take this issue because there are many other issues with handling arguments in the hashlib module. -- ___ Python tracker ___

[issue31882] Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in Cygwin

2018-07-19 Thread Erik Bray
Erik Bray added the comment: I originally opened this in https://bugs.python.org/issue29253 but then made a dupe of my own bug! Anyways, there's a (nearly year old) pull request for it now. -- ___ Python tracker

[issue18921] In imaplib, cached capabilities may be out of date after login

2018-07-19 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-33327: Add a method to move messages to IMAPlib. -- nosy: +vstinner ___ Python tracker ___

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This was introduced as part of https://hg.python.org/cpython/rev/4969f6d343b1 . In addition to the signature there is also a line at https://docs.python.org/dev/library/hashlib.html#simple-hashing which could be removed > As a shortcut, you can

[issue29253] Fix test_asyncore tests on Cygwin

2018-07-19 Thread Erik Bray
Erik Bray added the comment: Yes, it's a dupe. There was enough time after I later made the PR for this that I forgot I already opened an issue for it. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: hashlib.blake2b() and some other constructors accept the first chunk of data as the "string" keyword argument. >>> hashlib.blake2b(string=b'') <_blake2.blake2b object at 0x7f2847a9c430> >>> hashlib.blake2s(string=b'') <_blake2.blake2s object at

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-19 Thread Christian Heimes
Christian Heimes added the comment: Please treat the first argument as positional-only argument. I don't want to standardize on 'string'. -- ___ Python tracker ___

[issue32692] [3.6] test_threading.test_set_and_clear fails in AppVeyor CI

2018-07-19 Thread STINNER Victor
STINNER Victor added the comment: I changed the timeout in 3.6, 3.7 and master branches. The failure should now be much less likely. Python 2.7 doesn't have the unit test. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue33635] OSError when using pathlib.Path.rglob() to list device files

2018-07-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33336] [imaplib] MOVE is a legal command

2018-07-19 Thread STINNER Victor
STINNER Victor added the comment: > Should we also add the MOVE command to Python 2.7, 3.6 and 3.7? The change > looks safe and trivial. IMHO it's ok to backport this change. The stdlib must follow evolutions of the IMAP protocol. It's a self contained and safe change, it's not a new Python

[issue18397] Python with MinGW

2018-07-19 Thread Martin Panter
Change by Martin Panter : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> mingw-meta: build interpeter core ___ Python tracker ___

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread lktoken
lktoken added the comment: yes, I agree that this is not a bug. I used to think that this value is the same in macOS and Linux. Now it seems that I am wrong. And sorry for disturbing you. -- ___ Python tracker

[issue34149] Behavior of the min/max with key=None

2018-07-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, feel free to reject this PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34150] test_multiprocessing_spawn: Dangling processes leaked on AMD64 FreeBSD 10.x Shared 3.x

2018-07-19 Thread STINNER Victor
STINNER Victor added the comment: Another failure on AMD64 Windows8.1 Refleaks 3.6: https://buildbot.python.org/all/#/builders/64/builds/293 1:24:09 [391/407/2] test_multiprocessing_spawn failed -- running: test_mailbox (8 min 1 sec), test_asyncio (2 min 58 sec) beginning 6 repetitions

[issue34100] Same constants in tuples are not merged while compile()

2018-07-19 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +7875 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue29253] Fix test_asyncore tests on Cygwin

2018-07-19 Thread Martin Panter
Change by Martin Panter : -- superseder: -> Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in Cygwin ___ Python tracker ___

[issue33327] Add a method to move messages to IMAPlib

2018-07-19 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-6: [imaplib] MOVE is a legal command. -- nosy: +vstinner ___ Python tracker ___

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-19 Thread Tal Einat
Tal Einat added the comment: With Python 3.7.0 installed from python.org, I can't see any of the scrolling issues with tk_scroll2.py either. -- ___ Python tracker ___

[issue34149] Behavior of the min/max with key=None

2018-07-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Whouldn't be better to add operator.identity and use it as the default value > instead of None? No, that would incur overhead that currently isn't present. -- ___ Python tracker

[issue33216] [3.5] Wrong order of stack for CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW

2018-07-19 Thread Larry Hastings
Change by Larry Hastings : -- pull_requests: +7872 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the details @lktoken. I assumed that you were on Linux and had the opposite values. Verified it on my Mac and they report the same values as yours. I think the values are also different for Windows machines as @ronaldoussoren noted in

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've encountered this problem as well. It occurs with files bigger than a screenful (i.e. use OpenModule to open the collections module). Both the scroll-up and scroll-down inputs result in scrolling down. This occurs with a fresh MacOs install of

[issue25943] Integer overflow in _bsddb leads to heap corruption

2018-07-19 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-19 Thread Tal Einat
Tal Einat added the comment: The reported scrolling issues do happen for me with the Python 3.7.0 installed from python.org, which does use Tk 8.6.8. -- ___ Python tracker

[issue29253] Fix test_asyncore tests on Cygwin

2018-07-19 Thread Martin Panter
Martin Panter added the comment: Similar to Issue 31882 -- nosy: +martin.panter ___ Python tracker ___ ___ Python-bugs-list

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32692] [3.6] test_threading.test_set_and_clear fails in AppVeyor CI

2018-07-19 Thread miss-islington
miss-islington added the comment: New changeset 2fe1c6b386e7bbb8b647636643cc637795b99123 by Miss Islington (bot) in branch '3.6': bpo-32692: Fix test_threading.test_set_and_clear() (GH-8331) https://github.com/python/cpython/commit/2fe1c6b386e7bbb8b647636643cc637795b99123 --

[issue34151] use malloc() for better performance of some list operations

2018-07-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread lktoken
lktoken added the comment: The picture is a screenshot from the IDEA editor on my OSX system. This may be just a problem with the python I am using. So sad. Python 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin Type "help",

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I’m not sure if I understand correctly. Is your report about the difference in the values of EAGAIN between Linux and macOS? If so, that is not a bug: the relevant standards only document the name and type of these constants and not their values. The value

[issue34131] test_threading: BarrierTests.test_default_timeout() failed on AppVeyor

2018-07-19 Thread STINNER Victor
STINNER Victor added the comment: Another failure on AMD64 Windows8.1 Refleaks 3.6 which seems very very slow on this build. https://buildbot.python.org/all/#/builders/64/builds/293 0:26:36 [133/407/1] test_threading failed -- running: test_venv (23 min 45 sec), test_mmap (19 min 28 sec)

[issue32692] [3.6] test_threading.test_set_and_clear fails in AppVeyor CI

2018-07-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 81950495ba2c36056e0ce48fd37d514816c26747 by Victor Stinner in branch 'master': bpo-32692: Fix test_threading.test_set_and_clear() (GH-8331) https://github.com/python/cpython/commit/81950495ba2c36056e0ce48fd37d514816c26747 --

[issue32692] [3.6] test_threading.test_set_and_clear fails in AppVeyor CI

2018-07-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +7873 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31534] python 3.6.2 installation failed 0x80070002 error

2018-07-19 Thread Marin Petrov
Marin Petrov added the comment: same error on windows 10 64bit python 3.6.4 windows user (from windows installation) was named ' pc' - a space as first character. In the log file most paths were c:\users\ pc\... but there was one c:\users\PC~1\... folowing some error. I didnt make a

[issue34100] Same constants in tuples are not merged while compile()

2018-07-19 Thread INADA Naoki
INADA Naoki added the comment: Counting object types in logging/__pycache__/__init__.cpython-38.pyc: master: [('r', 1815), (')', 467), ('Z', 339), ('s', 314), ('z', 273), ('c', 157), ('N', 154), ('a', 24), ('F', 14), ('i', 11), ('T', 8)] GH-8341: [('r', 1737), (')', 375), ('Z', 339), ('s',

[issue34100] Same constants in tuples are not merged while compile()

2018-07-19 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +needs review -3.7regression stage: needs patch -> patch review type: enhancement -> resource usage ___ Python tracker ___

[issue34149] Behavior of the min/max with key=None

2018-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Accepting None makes the typing model more complex. Instead of just a callable functions accept callable-or-none. It terms of annotations, it is Union[Callable[[Any], Any], None] instead of just Callable[[Any], Any]. --

[issue32692] [3.6] test_threading.test_set_and_clear fails in AppVeyor CI

2018-07-19 Thread miss-islington
miss-islington added the comment: New changeset 339e0c1296c61c9dbc1f8f880c5c668bf4007e5e by Miss Islington (bot) in branch '3.7': bpo-32692: Fix test_threading.test_set_and_clear() (GH-8331) https://github.com/python/cpython/commit/339e0c1296c61c9dbc1f8f880c5c668bf4007e5e -- nosy:

[issue32692] [3.6] test_threading.test_set_and_clear fails in AppVeyor CI

2018-07-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +7874 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is not a bug and the issue can be closed. I’ll do so when I get back to my computer in a couple of days. -- On the road, hence brief. Op 19 jul. 2018 om 08:52 heeft Karthikeyan Singaravelan het volgende geschreven: > > Karthikeyan Singaravelan

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-07-19 Thread Cyril Nicodème
New submission from Cyril Nicodème : Hi! I'm trying to parse some emails, and I discovered that email.utils.parseaddr wrongly parse an email. Here's the corresponding header: > From: =?utf-8?Q?z...@redacted.com.cn=E3=82=86=E2=86=91=E3=82=86?=

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-07-19 Thread R. David Murray
R. David Murray added the comment: That does appear to be a bug. Note that the new email API handles it correctly: >>> x = """ ... > From: =?utf-8?Q?z...@redacted.com.cn=E3=82=86=E2=86=91=E3=82=86?= ... =?utf-8?Q?=E3=82=83=E3=82=85=E3=81=87=E3=81=BA=E3=81=BD=E3=81=BC"\=E3?=

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-07-19 Thread R. David Murray
R. David Murray added the comment: Oops, I left out a step in that cut and paste. For completeness: >>> x = x[3:] -- ___ Python tracker ___

[issue33808] ssl.get_server_certificate fails with openssl 1.1.0 but works with 1.0.2g for self-signed certificate

2018-07-19 Thread Segev Finer
Segev Finer added the comment: Even if the server is outdated and the SSL library doesn't support it anymore, that's a poor exception to raise for such an error... Sadly I'm not able to access the affected server to reproduce and debug why it raises such a poor exception. -- nosy:

[issue33808] ssl.get_server_certificate fails with openssl 1.1.0 but works with 1.0.2g for self-signed certificate

2018-07-19 Thread Christian Heimes
Christian Heimes added the comment: It looks like the server is hard-killing the connection. It doesn't respond with a proper TLS error code. Instead the server response to the CLientHello with a FIN/ACK TCP package. The OSError is all we are getting from the network layer. 19:27:20.956332

[issue34144] venv activate.bat reset codepage fails on windows 10

2018-07-19 Thread Felix Vollmer
Change by Felix Vollmer : -- nosy: +Felix Vollmer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33869] doc Add link to list definition in Glossary list entry

2018-07-19 Thread Andrés Delfino
Change by Andrés Delfino : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-07-19 Thread R. David Murray
R. David Murray added the comment: Ah, maybe it doesn't handle it completely correctly; that decode looks different now that I look at it in detail. -- ___ Python tracker

[issue34156] Nail down and document the behavior of range expressions in RE character classes

2018-07-19 Thread Zack Weinberg
New submission from Zack Weinberg : The documentation of the semantics of range expressions in regular expression character classes is not precise enough. All it says is Ranges of characters can be indicated by giving two characters and separating them by a '-', for example [a-z] will

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34156] Nail down and document the behavior of range expressions in RE character classes

2018-07-19 Thread Zack Weinberg
Zack Weinberg added the comment: Also, whether or not the current behavior is the intended behavior, I think programmers would appreciate an explicit statement of whether or not it might change in the future. -- ___ Python tracker

[issue34157] NamedTemporaryFile can leave temporary files behind

2018-07-19 Thread Jakub Wilk
New submission from Jakub Wilk : If you press Ctrl+C at the wrong moment, NamedTemporaryFile won't delete the temporary file. To reproduce, you can try this script: import tempfile while True: with tempfile.NamedTemporaryFile(dir='.'): pass I get a stray temporary

[issue24379] Add operator.subscript as a convenience for creating slices

2018-07-19 Thread Stephan Hoyer
Stephan Hoyer added the comment: Raymond, Tal and Guido -- do any of you work routinely with multi-dimensional arrays? In my experience as someone who uses Python everyday for numerical computing (and has been doing so for many years), the need for an operator like this comes up with some

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-07-19 Thread Jakub Wilk
Jakub Wilk added the comment: You should not use decode_header() on the whole From header, because that loses information. You should parse the header first, then decode the parts that could be RFC2047-encoded. Quoting : > NOTE: Decoding and

[issue34158] Documentation of datetime '%z' format code is odd

2018-07-19 Thread Christophe Nanteuil
New submission from Christophe Nanteuil : In § 8.1.8. "strftime() and strptime() Behavior", the documentation states that "%z" format code is a string of the form '±HHMM[SS[.uu]]' where uu is a 2-digit string giving the number of UTC offset microseconds. I think it's a 6-digit string.