[issue39052] import error when in python -m pdb debug mode

2019-12-14 Thread chengyang
New submission from chengyang : D:\data\mypython\photosort 的目录 2019/09/08 15:51 . 2019/09/08 15:51 .. 2019/09/08 15:5188 myfilesort.py 2019/09/08 15:38 220 myhome.py 2019/12/15 10:44 275 mymain_menu.py 2019/08/22 21:24

[issue39051] Python not working on Windows 10

2019-12-14 Thread Rafael Dominiquini
New submission from Rafael Dominiquini : I have Python installed on my computer for a while now and everything worked fine. But today, I can't run it anymore: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core

[issue31140] Insufficient error message with incorrect formated string literal

2019-12-14 Thread Philip Rowlands
Philip Rowlands added the comment: Status as of 3.9.0a1: == test.py above appears fixed, i.e. reasonable error message. $ ./python test.py File "/home/bob/pybug/Python-3.9.0a1/test.py", line 2 hello = f"{world)}" ^ SyntaxError: f-string: unmatched ')' ==

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

2019-12-14 Thread William Dias
William Dias added the comment: Shouldn't this issue be solved for Python 3.7.5? Or do I have to manually apply the patch? I have a windows 8.1 x64 PC whose hostname contains special characters. When creating a socket, the gethostbyaddr() method raises a UnicodeDecodeError: 'utf-8' codec

[issue39050] The "Help" button in IDLE's config dialog does not work

2019-12-14 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +17083 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17611 ___ Python tracker ___

[issue39050] The "Help" button in IDLE's config dialog does not work

2019-12-14 Thread Zackery Spytz
New submission from Zackery Spytz : When I click the button, I see a traceback. Exception in Tkinter callback Traceback (most recent call last): File "/home/lubuntu2/cpython/Lib/tkinter/__init__.py", line 1885, in __call__ return self.func(*args) File

[issue39049] Add "elif" to "for_stmt" and "while_stmt"

2019-12-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Changes to the language syntax usually require extensive discussion and a PEP. To move forward, your next step would be to launch a discussion on the python-ideas newsgroup. If the idea advances to an approved PEP, this tracker issue can be re-opened.

[issue39049] Add "elif" to "for_stmt" and "while_stmt"

2019-12-14 Thread Andrey
Change by Andrey : -- keywords: +patch pull_requests: +17082 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17610 ___ Python tracker ___

[issue39049] Add "elif" to "for_stmt" and "while_stmt"

2019-12-14 Thread Andrey
New submission from Andrey : Add an ability to use "elif" in for statement and while statement besides "else" Example Now: ```python3 for i in range(j): ... else: if i > 5: ... else: ... ``` Shall be: ```python3 for i in range(j): ... elif i > 5: ... else:

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: While we are at it, shall we enable build config validation (https://docs.travis-ci.com/user/build-config-validation)? It would produce warnings for outdated keys like this. -- ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Géry added the comment: @ncoghlan > Reviewing the discussion, I assume this was left open to cover reordering the > __aenter__ and __aexit__ checks for async with, but that can just as easily > be handled as a separate issue (which would also be clearer at the NEWS > level). Here it is:

[issue39048] bpo-39048: Reorder the __aenter__ and __aexit__ method checks for the async with statement

2019-12-14 Thread Géry
Change by Géry : -- title: Reorder the __aenter__ and __aexit__ checks for async with -> bpo-39048: Reorder the __aenter__ and __aexit__ method checks for the async with statement ___ Python tracker

[issue39048] Reorder the __aenter__ and __aexit__ method checks for the async with statement

2019-12-14 Thread Géry
Change by Géry : -- title: bpo-39048: Reorder the __aenter__ and __aexit__ method checks for the async with statement -> Reorder the __aenter__ and __aexit__ method checks for the async with statement ___ Python tracker

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Change by Géry : -- pull_requests: +17081 pull_request: https://github.com/python/cpython/pull/17609 ___ Python tracker ___ ___

[issue39048] Reorder the __aenter__ and __aexit__ checks for async with

2019-12-14 Thread Géry
New submission from Géry : Following https://bugs.python.org/issue27100 which did it for the with statement, what was left to do was to reorder the __aenter__ and __aexit__ method checks for the async with statement. I have opened a PR for this here:

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Change by Géry : -- pull_requests: -17079 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > New changeset 94d2c8df1a7657015a2fcdb4c4d43392f91f8348 by Inada Naoki in > branch 'master': bpo-39035: travis: Don't use beta group (GH-17602) > INADA-san: do you want to close this issue since you pushed changes? This may actually fix the problem. `group:

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: I already diagnosed this in https://mail.python.org/archives/list/python-...@python.org/message/3Z4FNPEFTFTYDX6RYOQ54UKOVLQAWUEU/: * https://travis-ci.org/python/cpython/jobs/616384134 looks for `pythonX.Y` but doesn't account for the fact that it could be

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Change by Géry : -- pull_requests: +17079 pull_request: https://github.com/python/cpython/pull/17609 ___ Python tracker ___ ___

Re: Fwd: Problem installing pygame

2019-12-14 Thread MRAB
On 2019-12-14 02:12, Eric Gonzalez wrote: Get Outlook for Android From: Eric Gonzalez Sent: Thursday, December 12, 2019 9:35:40 PM To: python-list@python.org Subject: Problem installing pygame Hello, with the above mentioned i am having

[issue38295] test_relative_path of test_py_compile fails on macOS 10.15 Catalina

2019-12-14 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Difference between os.path.isdir and Path.is_dir

2019-12-14 Thread Kirill Balunov
Yeah it is True, for the last two weeks or so I can access bugs.python.org in normal way. But I totally agree with the site that the best description of this situation is "Yet". with kind regards, -gdg сб, 14 дек. 2019 г. в 19:46, Terry Reedy : > On 7/26/2019 3:12 AM, Kirill Balunov wrote: > >

[issue39045] Segmentation of string

2019-12-14 Thread Mark Dickinson
Mark Dickinson added the comment: For the record, this is an easy application of itertools.combinations: >>> def segment(s, m): ... for c in itertools.combinations(range(1, len(s)), m-1): ... yield tuple(s[i:j] for i, j in zip((0,)+c, c+(len(s),))) ... >>> list(segment("12345",

[issue39037] Fix the trial order of the __exit__ and __enter__ methods in the with statement documentation

2019-12-14 Thread Géry
Change by Géry : -- title: Wrong trial order of __exit__ and __enter__ in the with statement -> Fix the trial order of the __exit__ and __enter__ methods in the with statement documentation ___ Python tracker

[issue39037] Wrong trial order of __exit__ and __enter__ in the with statement

2019-12-14 Thread Géry
Géry added the comment: Done @brett.cannon, would you like to review it? https://github.com/python/cpython/pull/17608 -- ___ Python tracker ___

[issue39037] Wrong trial order of __exit__ and __enter__ in the with statement

2019-12-14 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +17078 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17608 ___ Python tracker ___

Fwd: Problem installing pygame

2019-12-14 Thread Eric Gonzalez
Get Outlook for Android From: Eric Gonzalez Sent: Thursday, December 12, 2019 9:35:40 PM To: python-list@python.org Subject: Problem installing pygame Hello, with the above mentioned i am having some serious problems with the

[issue39047] TestTemporaryDirectory.test_flags fails on FreeBSD/ZFS

2019-12-14 Thread Attila Jeges
Change by Attila Jeges : -- keywords: +patch pull_requests: +17077 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17607 ___ Python tracker ___

[issue39047] TestTemporaryDirectory.test_flags fails on FreeBSD/ZFS

2019-12-14 Thread Attila Jeges
New submission from Attila Jeges : When I run test_tempfle.py on FreeBSD/ZFS I get the following error: == ERROR: test_flags (__main__.TestTemporaryDirectory)

Re: Difference between os.path.isdir and Path.is_dir

2019-12-14 Thread Terry Reedy
On 7/26/2019 3:12 AM, Kirill Balunov wrote: чт, 25 июл. 2019 г. в 20:28, eryk sun : On 7/25/19, Kirill Balunov wrote: import os from pathlib import Path dummy = " " # or "" or " " os.path.isdir(dummy) False Path(dummy).is_dir() True I can't reproduce the above result in either

Re: help with tkinter

2019-12-14 Thread Terry Reedy
On 8/9/2019 3:40 AM, Ahmad Adam Kabbara wrote: when I write**from tkinter import* Please put statements on one line. from tkinter import * t=Tk() tkinter.colorchooser.askcolor() I get this error message Traceback (most recent call last): **

Setting Pythonpath programmatic

2019-12-14 Thread Prasad Rajassekaran
0 Aim:- I would want to set python path programmatic in my project. So that, all other directories files can be imported without any issues. Problem statement:- I used to add all the folders & sub-folders in environment variables under PYTHONPATH but this has two constrains. 1, Any new

[issue39046] collections.abc.Reversible should not be a subclass of Hashable

2019-12-14 Thread Guido van Rossum
Guido van Rossum added the comment: I don't know that this is easily solved. By design, issubclass(X, Hashable) checks whether X defines a __hash__ method (or at least has a class attribute __hash__ that isn't None). And because everything ultimately derives from object, which *does* have a

[issue39040] Wrong attachement filename when mail mime header was too long

2019-12-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39040] Wrong attachement filename when mail mime header was too long

2019-12-14 Thread R. David Murray
R. David Murray added the comment: And you are right that this is a very common bug in email programs. So common that I suspect the RFC folks will eventually have to accept it as a de-facto standard. So we do need to support it in the python email library. --

[issue39040] Wrong attachement filename when mail mime header was too long

2019-12-14 Thread R. David Murray
R. David Murray added the comment: Yes, google should fix their bug. However, the python email package tries very hard to interpret even RFC-non-compliant emails when there is a way to do so. As I said, the package already tries to interpret headers such as google is generating, it's just

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread STINNER Victor
STINNER Victor added the comment: INADA-san: do you want to close this issue since you pushed changes, or do you prefer to wait to see if it's issue is fixed before closing it? (wait a few days and look at Travis CI jobs) 3.5 uses: language: c dist: trusty sudo: false group: beta 3.6

pytest 5.3.2

2019-12-14 Thread Bruno Oliveira
pytest 5.3.2 has just been released to PyPI. This is a bug-fix release, being a drop-in replacement. To upgrade:: pip install --upgrade pytest The full changelog is available at https://docs.pytest.org/en/latest/changelog.html. Thanks to all who contributed to this release, among them: *

[issue32888] Improve exception message in ast.literal_eval

2019-12-14 Thread Batuhan
Change by Batuhan : -- pull_requests: +17076 pull_request: https://github.com/python/cpython/pull/16620 ___ Python tracker ___ ___

[issue39040] Wrong attachement filename when mail mime header was too long

2019-12-14 Thread Manfred Kaiser
Manfred Kaiser added the comment: as you mentioned, rfc-2047 forbidds encoded words in quoted strings. Source: https://tools.ietf.org/html/rfc2047 - Chapter 5/3 I have tested a few web mail clients and they have the same issue. According to the RFCs, this is not allowed, but I think it is

[issue21600] mock.patch.stopall doesn't work with patch.dict

2019-12-14 Thread Mario Corchero
Change by Mario Corchero : -- pull_requests: +17075 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/17606 ___ Python tracker ___

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset de4481339dec395d70e350aa2e22d7990d2b3635 by Inada Naoki in branch '2.7': bpo-39035: travis: Don't use beta group (GH-17605) https://github.com/python/cpython/commit/de4481339dec395d70e350aa2e22d7990d2b3635 --

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset be7489cb43e25b6d8bfa077589c18cc0a2367efd by Inada Naoki in branch '3.7': bpo-39035: travis: Don't use beta group (GH-17604) https://github.com/python/cpython/commit/be7489cb43e25b6d8bfa077589c18cc0a2367efd --

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset 5c5d8f63d7d235e557ad20e7d722b22772681759 by Inada Naoki in branch '3.8': bpo-39035: travis: Don't use beta group (GH-17603) https://github.com/python/cpython/commit/5c5d8f63d7d235e557ad20e7d722b22772681759 --

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17074 pull_request: https://github.com/python/cpython/pull/17605 ___ Python tracker ___

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17073 pull_request: https://github.com/python/cpython/pull/17604 ___ Python tracker ___

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17072 pull_request: https://github.com/python/cpython/pull/17603 ___ Python tracker ___

[issue39046] collections.abc.Reversible should not be a subclass of Hashable

2019-12-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39046] collections.abc.Reversible should not be a subclass of Hashable

2019-12-14 Thread Lovi
Change by Lovi <1668151...@qq.com>: -- nosy: +lovi versions: -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue39046] collections.abc.Reversible should not be a subclass of Hashable

2019-12-14 Thread SilentGhost
Change by SilentGhost : -- nosy: +rhettinger, stutzbach versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset 94d2c8df1a7657015a2fcdb4c4d43392f91f8348 by Inada Naoki in branch 'master': bpo-39035: travis: Don't use beta group (GH-17602) https://github.com/python/cpython/commit/94d2c8df1a7657015a2fcdb4c4d43392f91f8348 --

[issue39044] Segfault on build for the master branch

2019-12-14 Thread STINNER Victor
STINNER Victor added the comment: > Confirmedforgeting to run makedistclean was the problem. Yeah, it happens often to me. If "make distclean" is not enough, I move untracked files outside the Python repository and run "git clean "-fdx" which removes *all* untracked files. Use "git

[issue39031] Inconsistency with lineno and col_offset info when parsing elif

2019-12-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks, Lysandros for the quick fix! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +17071 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17602 ___ Python tracker ___

[issue39031] Inconsistency with lineno and col_offset info when parsing elif

2019-12-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list

[issue39031] Inconsistency with lineno and col_offset info when parsing elif

2019-12-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +17070 pull_request: https://github.com/python/cpython/pull/17601 ___ Python tracker ___

[issue39031] Inconsistency with lineno and col_offset info when parsing elif

2019-12-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +17069 pull_request: https://github.com/python/cpython/pull/17600 ___ Python tracker ___

[issue39046] collections.abc.Reversible should not be a subclass of Hashable

2019-12-14 Thread Zac Hatfield-Dodds
New submission from Zac Hatfield-Dodds : >>> from collections.abc import Hashable, Reversible >>> assert issubclass(Reversible, Hashable) However, this is trivially wrong - lists are Reversible but not Hashable, and there is no reason to thing that reversible objects should all be hashable.

Re: 3rd party mail package

2019-12-14 Thread Barry
I guess the 2nd party is the user. Barry > On 13 Dec 2019, at 21:13, Abdur-Rahmaan Janhangeer > wrote: > > Wonder where the 2nd party went to. Thanks will look into it! > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading mail getting [, ...

2019-12-14 Thread dieter
Abdur-Rahmaan Janhangeer writes: > Can you please indicate where is the header in my code above? Thanks. Python is an object oriented language. As a consequence, Python functions often return complex objects and not only elementary objects. Use the documentation of the complex object's class to

[issue39045] Segmentation of string

2019-12-14 Thread SilentGhost
SilentGhost added the comment: It is generally suggested to offer this sort of proposals for discussion on python-ideas mailing list [0] first. There, you can elaborate on why you think this is necessary, what sort of use cases this new method could have, etc. Once there is a broad