[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:2439 myphotosort.py
2019/09/08  15:51  siproject
2019/09/08  17:16  __pycache__
   4 个文件622 字节
   4 个目录 253,973,061,632 可用字节

D:\data\mypython\photosort>python -m pdb myhome.py
> d:\data\mypython\photosort\myhome.py(1)()
-> import os
(Pdb) s
> d:\data\mypython\photosort\myhome.py(2)()
-> import re
(Pdb) s
> d:\data\mypython\photosort\myhome.py(3)()
-> import sys
(Pdb) s
> d:\data\mypython\photosort\myhome.py(4)()
-> sys.path.append('d:\data\mypath\photosort')
(Pdb) s
> d:\data\mypython\photosort\myhome.py(5)()
-> import myfilesort
(Pdb) s
--Call--
> (978)_find_and_load()
(Pdb)

--
components: Windows
files: myfilesort.py
messages: 358412
nosy: chengyang, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: import error when in python -m pdb debug mode
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48778/myfilesort.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x7e84 (most recent call first):



I have already tried to download the installer and use the "Repair" option, but 
even though the installation indicates that everything is fine, the error 
continue...

Attached is the complete terminal output:

https://pastebin.com/fcFZkUSV
https://pastebin.com/Nx9J4fPu

SO: Windows 10
Python Version: 3.8.0 (64 bits)

Thanks.

--
components: Windows
messages: 358411
nosy: paul.moore, rafaeldominiquini, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Python not working on Windows 10
type: behavior
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ')'


==
bpo-31140.py is not as bad a initially reported, but still gives the wrong line 
number.

$ ./python bpo-31140.py
  File "", line 1
(a>2s)
^
SyntaxError: invalid syntax


===
And my own example which led me to this bug. The syntax error is on line 3, not 
line 1.

$ cat fruit.py
pass
pass
s = f"{My favourite fruit is {apple}}"

$ ./python -V
Python 3.9.0a1

$ ./python fruit.py
  File "", line 1
(My favourite fruit is {apple})
^
SyntaxError: invalid syntax

--
nosy: +philiprowlands
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 can't decode byt 0xe1 in position 1.

Let me know if you need more information.

Thanks

--
nosy: +williamdias
type:  -> crash
versions: +Python 3.7 -Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 "/home/lubuntu2/cpython/Lib/idlelib/configdialog.py", line 212, in help
view_text(self, title='Help for IDLE preferences',
TypeError: view_text() got an unexpected keyword argument 'text'


It appears that this bug was introduced in bpo-37628 / 3221a63c692.

--
assignee: terry.reedy
components: IDLE
messages: 358408
nosy: ZackerySpytz, terry.reedy
priority: normal
severity: normal
status: open
title: The "Help" button in IDLE's config dialog does not work
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
components: +Interpreter Core -Build
nosy: +rhettinger
resolution:  -> later
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:
...
```

--
components: Build
messages: 358406
nosy: moff4
priority: normal
severity: normal
status: open
title: Add "elif" to "for_stmt" and "while_stmt"
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: https://bugs.python.org/issue39048

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: https://github.com/python/cpython/pull/17609

--
components: Interpreter Core
messages: 358403
nosy: brett.cannon, maggyero, rhettinger
priority: normal
pull_requests: 17080
severity: normal
status: open
title: Reorder the __aenter__ and __aexit__ checks for async with
type: behavior
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: beta` is undocumented. It was required long ago once to try out a new 
feature but I've absolutely no idea what it does (and if it does anything) now. 
It's quite possible that it can give us some beta unsupported VM image.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Pyenv's stub
* https://travis-ci.org/python/cpython/builds/616384157 is trying to use Python 
version(s) that are not guaranteed to be preinstalled in the VM for all 
`language:`s.

I could fix this but I need to know what the hard requirements are to pick an 
optimal configuration.

* Is the (preinstalled only for `language: c`) `clang 7.0.0` required? Would 
3.4-4.0 (available from xenial distro) do?
* Is `xenial` required? Would `bionic` do? In bionic, clang 7 is available from 
distro.
* Which Python version needs to be preinstalled? Tools/ssl/multissltests.py 
says it's supposed to be compatible with 2.7 and 3.4-3.7. Options are, by 
decreasing "sum of flexibility+reliability":
  * use 3.5.1 or 2.7.12 from distro
  * hard require `language:python; python: 3.7` (then we cannot use custom 
`clang`)
  * use another pyenv-preinstalled version (there are also 3.6 and 2.7 that are 
supposed to be preinstalled but there might be none)

--
nosy: +__Vano

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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", m=3))
[('1', '2', '345'), ('1', '23', '45'), ('1', '234', '5'), ('12', '3', '45'), 
('12', '34', '5'), ('123', '4', '5')]

--
nosy: +mark.dickinson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
--
Traceback (most recent call last):
  File "/usr/home/attilaj/cpython/Lib/test/test_tempfile.py", line 1498, in 
test_flags
os.chflags(os.path.join(root, name), flags)
OSError: [Errno 45] Operation not supported: 
'/tmp/awxj9cgb/dir0/dir0/dir0/test1.txt'

--
Ran 90 tests in 1.133s

FAILED (errors=1, skipped=1)

I think this is similar to Issue #15747.

--
components: Tests
messages: 358398
nosy: attilajeges
priority: normal
severity: normal
status: open
title: TestTemporaryDirectory.test_flags fails on FreeBSD/ZFS
type: behavior
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 __hash__ method (that just hashes the object's 
address), everything appears hashable, *except* if it explicitly sets __hash__ 
= None.

You'll find that many classes defined in collections.abc are hashable (e.g. 
Iterable, Iterator, Sequence, Collection).

But not Set and Mapping. This is because those override __eq__, and there's 
some deep magic somewhere that sets __hash__ = None in the class dict if __eq__ 
is overridden.

You could try the following: add an explicit __hash__ = None to all the 
collection ABCs (in _collections_abc.py) that you think shouldn't define 
__hash__, and see if all the tests pass. 

However, even if they do, I suspect that this may break stuff. E.g. a class 
that inherits from Iterable but doesn't override __hash__ or __eq__ would 
suddenly no longer be usable as a dict key.

Since this is only a problem with abstract classes like Iterable or Reversible, 
maybe we should just ignore the problem?

--
nosy: +gvanrossum

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that there is a bug in that interpretation: it is keeping 
the blank between then encoded words when it should not be.  That bug can be 
fixed, in get_raw_encoded_word and/or get_parameter, in 
email._header_value_parser.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 uses:

language: c
dist: trusty
sudo: false
group: beta

These branches still get pull requests for security fixes. Maybe it's worth it 
to also update these branches? Maybe even upgrade them to Ubuntu Xenial?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 widely used.

Should we fix this problem?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 clean -ndx" to see which files will be removed, to double check. 
Otherwise, you may loose sensitive files which are not tracked by Git.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

The versions of these classes in the typing module have the same problem.

--
components: Library (Lib)
messages: 358386
nosy: Zac Hatfield-Dodds
priority: normal
severity: normal
status: open
title: collections.abc.Reversible should not be a subclass of Hashable
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 agreement on behaviour and details of this new feature, if 
it's to be adopted at all, you can open an issue to track the implementation 
work.

Good luck. I'm closing the issue, as the proposal is not yet well formed, but 
you're welcome to re-open this bug after discussion on the mailing list.

[0] https://mail.python.org/mailman3/lists/python-ideas.python.org/

--
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com