[issue22848] Subparser help does not respect SUPPRESS argument

2020-05-02 Thread Mitar


Change by Mitar :


--
nosy: +mitar

___
Python tracker 

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



[issue40416] Calling TextIOWrapper.tell() in the middle of reading a gb2312-encoded file causes UnicodeDecodeError

2020-05-02 Thread Ma Lin


Ma Lin  added the comment:

I did a git bisect, this commit fixed the bug:

https://github.com/python/cpython/commit/ac22f6aa989f18c33c12615af1c66c73cf75d5e7

--

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-02 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

Okay, I was able to remove the NULL value check and get things working with a 
NULL exception value. I just posted a second follow-on PR that does this (which 
Guido approved - thanks, Guido!):
https://github.com/python/cpython/pull/19877

I wanted to tell you what I found since it raises some questions.

To remove that check I had to add the following new check prior to calling 
`_PyErr_ChainExceptions()` with the exception info, as a replacement:
`gen->gi_exc_state.exc_type != Py_None`
Without doing this, code like the following would crash e.g. on Fedora 32 (this 
is the crash that was happening in the first version of my PR, reduced down):

def g():
try:
raise KeyError
except KeyError:
pass

try:
yield
except Exception:
# Crash happens here e.g. on Fedora 32 but not Mac.
raise RuntimeError

gen = g()
gen.send(None)
gen.throw(ValueError)

This raises two questions for me:

First, I thought exc_type could only ever be NULL or an exception class. So I'm 
wondering if this points to a problem elsewhere in the code base.

Second, I don't know why it would crash on Fedora but not Mac. (On Mac, you 
instead see the following exception chained beneath the ValueError:
> TypeError: print_exception(): Exception expected for value, NoneType found )

--

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-02 Thread Chris Jerdonek


Change by Chris Jerdonek :


--
pull_requests: +19189
pull_request: https://github.com/python/cpython/pull/19877

___
Python tracker 

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



[issue40416] Calling TextIOWrapper.tell() in the middle of reading a gb2312-encoded file causes UnicodeDecodeError

2020-05-02 Thread Ma Lin


Ma Lin  added the comment:

On Windows 10, Python 3.7, I get the same message as above reply.

If use Python 3.8, it works well.

--
nosy: +Ma Lin

___
Python tracker 

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



[issue40457] Python fails to compile/load _ssl module if OpenSSL is compiled with no-tls1-method

2020-05-02 Thread Mitch Lindgren


Mitch Lindgren  added the comment:

Thanks for the quick turnaround!

--

___
Python tracker 

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



[issue40478] allow finding nmake.exe executable in MSVCCompiler

2020-05-02 Thread japm48


Change by japm48 :


--
keywords: +patch
pull_requests: +19187
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19876

___
Python tracker 

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



[issue40478] allow finding nmake.exe executable in MSVCCompiler

2020-05-02 Thread japm48


New submission from japm48 :

Some toolchains (e.g. calibre) use a custom build system based on distutils to 
find the compiler tools.

For those, it is useful to have the path of nmake.exe easily discoverable.

--
components: Distutils
messages: 367951
nosy: dstufft, eric.araujo, japm48
priority: normal
severity: normal
status: open
title: allow finding nmake.exe executable in MSVCCompiler
type: enhancement

___
Python tracker 

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



[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2020-05-02 Thread Filipe Laíns

Filipe Laíns  added the comment:

My patches should resolve this fully. Please test it to make sure I did not 
miss any corner case.

https://github.com/python/cpython/pull/19850

--

___
Python tracker 

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



[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2020-05-02 Thread jack1142


Change by jack1142 :


--
keywords: +patch
pull_requests: +19186
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19875

___
Python tracker 

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



[issue40470] Make inspect.signature able to parse format strings.

2020-05-02 Thread Filipe Laíns

Change by Filipe Laíns :


--
nosy: +FFY00

___
Python tracker 

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



[issue39990] help should evaluate forward reference

2020-05-02 Thread Filipe Laíns

Change by Filipe Laíns :


--
keywords: +patch
pull_requests: +19185
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19874

___
Python tracker 

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



[issue39990] help should evaluate forward reference

2020-05-02 Thread Filipe Laíns

Filipe Laíns  added the comment:

typing.get_type_hints can be used for this, it resolves the annotation string.

>>> def foo(bar: 'int') -> 'bool': pass
...
>>> typing.get_type_hints(foo)
{'bar': , 'return': }

--
nosy: +FFY00

___
Python tracker 

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



[issue19113] duplicate test names in Lib/ctypes/test/test_functions.py

2020-05-02 Thread Filipe Laíns

Change by Filipe Laíns :


--
nosy: +FFY00

___
Python tracker 

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



[issue40465] Deprecate the optional *random* argument to random.shuffle()

2020-05-02 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
resolution:  -> fixed
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



[issue40465] Deprecate the optional *random* argument to random.shuffle()

2020-05-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 190fac99c58232f3e0b34891872b91e50ea2f057 by Raymond Hettinger in 
branch 'master':
bpo-40465: Deprecate the optional argument to random.shuffle(). (#19867)
https://github.com/python/cpython/commit/190fac99c58232f3e0b34891872b91e50ea2f057


--

___
Python tracker 

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



[issue40464] functools.singledispatch doesn't verify annotation is on FIRST parameter

2020-05-02 Thread Filipe Laíns

Change by Filipe Laíns :


--
keywords: +patch
nosy: +FFY00
nosy_count: 2.0 -> 3.0
pull_requests: +19184
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19871

___
Python tracker 

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



[issue40286] Add randbytes() method to random.Random

2020-05-02 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +19183
pull_request: https://github.com/python/cpython/pull/19870

___
Python tracker 

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



[issue18319] gettext() cannot find translations with plural forms

2020-05-02 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 3.0 -> 4.0
pull_requests: +19182
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19869

___
Python tracker 

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



[issue40355] The ast module fails to reject certain malformed nodes

2020-05-02 Thread Curtis Bucher


Change by Curtis Bucher :


--
keywords: +patch
nosy: +curtisbucher
nosy_count: 4.0 -> 5.0
pull_requests: +19181
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19868

___
Python tracker 

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



[issue40419] timeit CLI docs still mention old power sequence

2020-05-02 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
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



[issue40334] PEP 617: new PEG-based parser

2020-05-02 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
type: resource usage -> enhancement

___
Python tracker 

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



[issue25625] "chdir" Contex manager for pathlib

2020-05-02 Thread gaborbernat


gaborbernat  added the comment:

So moving way from subprocess.Process; what about having this for other use 
cases? I know there is no thread-safe way to get this working, given it's a 
process state variable. However, can we have it as a non-thread-safe feature?

--
nosy: +gaborbernat
versions: +Python 3.9 -Python 3.6

___
Python tracker 

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



[issue40468] IDLE split "general" into two tabs

2020-05-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Since the help sources extend the Help menu, putting them under Extensions 
makes some sense.  But I don't know how many people would think to look at the 
tab.  But something to keep in mind.  We can also ask for user opinions on 
idle-dev list.

Notebooks can put tabs on any side.  I found one side example.
https://stackoverflow.com/questions/46909169/python-tkinter-side-notebook-tabs
This would allow more and longer tab names, though I would prefer 
position='w'or 'wn' (west north) instead of 'ws'.  We should try this for the 
existing extensions pane. 

When done with General, there are issues about redoing Highlights and Keys 
pages, with one person's mockups.  One problem with making changes has been 
divergent opinions.

--

___
Python tracker 

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



[issue40468] IDLE split "general" into two tabs

2020-05-02 Thread E. Paine


Change by E. Paine :


Added file: https://bugs.python.org/file49114/shell_editor_page.png

___
Python tracker 

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



[issue40468] IDLE split "general" into two tabs

2020-05-02 Thread E. Paine


Change by E. Paine :


Added file: https://bugs.python.org/file49113/general_page_se.png

___
Python tracker 

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



[issue40468] IDLE split "general" into two tabs

2020-05-02 Thread E. Paine


Change by E. Paine :


Added file: https://bugs.python.org/file49115/shell_editor_page_pady.png

___
Python tracker 

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



[issue40465] Deprecate the optional *random* argument to random.shuffle()

2020-05-02 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
keywords: +patch
pull_requests: +19180
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19867

___
Python tracker 

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



[issue40334] PEP 617: new PEG-based parser

2020-05-02 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
pull_requests: +19179
pull_request: https://github.com/python/cpython/pull/19865

___
Python tracker 

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



[issue40031] IDLE fails trying to inport old idlelib file names for config

2020-05-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Module 'autoexpand' has a class 'AutoExpand' imported by editor.py near the 
top.  After rechecking the editor and config code, I am sure that the only way 
editor line 1115 could try to import *module* AutoExpand is if either 
idlelib/config-extensions.def or .idlerc/config-extensions.cfg contains a 
section header '[AutoExpand]'.  Since the latter does not exist on your 
machine, it must be the former.  Please attach your copy of 
config-extensions.def.

--

___
Python tracker 

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



[issue40408] GenericAlias does not support nested type variables

2020-05-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

There is a difference between PR 19836 and the typing module in handling nested 
unsubscribed generic aliases:

>>> from typing import *
>>> T = TypeVar('T')
>>> D1 = Dict[T, List]
>>> D2 = dict[T, List]
>>> D1.__parameters__
(~T,)
>>> D1[int]
typing.Dict[int, typing.List[~T]]
>>> D1[int].__parameters__
(~T,)
>>> D1[int][str]
typing.Dict[int, typing.List[str]]
>>> D1[int, str]
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/serhiy/py/cpython/Lib/typing.py", line 267, in inner
return func(*args, **kwds)
  File "/home/serhiy/py/cpython/Lib/typing.py", line 686, in __getitem__
_check_generic(self, params)
  File "/home/serhiy/py/cpython/Lib/typing.py", line 221, in _check_generic
raise TypeError(f"Too {'many' if alen > elen else 'few'} parameters for 
{cls};"
TypeError: Too many parameters for typing.Dict[~T, typing.List]; actual 2, 
expected 1
>>> D2.__parameters__
(~T, ~T)
>>> D2[int]
Traceback (most recent call last):
  File "", line 1, in 
TypeError: Too few arguments for dict[~T, typing.List]
>>> D2[int, str]
dict[int, typing.List[str]]

But this behavior is not specified and is not covered by tests.

--

___
Python tracker 

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



[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-05-02 Thread Cajetan Rodrigues


Cajetan Rodrigues  added the comment:

Reproduced on Python3.9.0a5+

imp.find_module() simply raised an ImportError in my tests with an implicitly 
namespaced package (without an __init__.py)

About the "type_", I think it should be consistent with _PKG_DIRECTORY, since 
PEP 420 states the following[1]:

```
A namespace package is not fundamentally different from a regular package. It 
is just a different way of creating packages. Once a namespace package is 
created, there is no functional difference between it and a regular package.
```

I'd be happy to submit a patch if you think this is alright.


[1] https://www.python.org/dev/peps/pep-0420/#id24

--
nosy: +cajetan.rodrigues

___
Python tracker 

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



[issue40416] Calling TextIOWrapper.tell() in the middle of reading a gb2312-encoded file causes UnicodeDecodeError

2020-05-02 Thread Rob Malouf


Rob Malouf  added the comment:

Same results on MacOS 10.15.4 (both the system python and the intel/anaconda 
version) and on CentOS 7.8

Here's the output with print(...):

13
71
72
392
393
399
536
537
761
762
879
880
933
934
1146
1147
1254
1255
1359
1360
1760
1761
1772
1895
1897
1906
2105
2107
2338
2339
2348
2398
2399
2408
2509
2510
2519
2612
2614
2622
2682
2684
2693
2898
2900
2909
3050
3052
3061
3113
3115
3124
3295
3297
3309
3445
3632
3644
3814
3816
3828
3882
3967
3979
4048
4184
4196
4226
4308
4320
4492
4559
4641
4653
4728
4770
4782
4999
5001
5013
5202
5204
5216
5270
5318
5333
5411
5465
5672
5687
5953
5954
5969
6082
6137
6307
6373
6388
6494
6496
6511
6786
6913
6928
7148
7371
7447
7462
7569
7704
7719
7847
7848
7863
7972
8238
8342
Traceback (most recent call last):
  File "test.py", line 4, in 
print(f.tell())
UnicodeDecodeError: 'gb2312' codec can't decode byte 0xb5 in position 0: 
illegal multibyte sequence

--

___
Python tracker 

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



[issue40468] IDLE split "general" into two tabs

2020-05-02 Thread E. Paine


E. Paine  added the comment:

Would it be helpful to move the additional help sources to the extensions page 
(and rename it to "Add-ins")?
Just throwing ideas out there, we could also add an "Advanced" tab where we put 
the settings we (really) don't want others changing without good reason (such 
as the indentation width). However, such a tab could quite possibly mean 
reorganising the entire settings dialog.
While the original intention of this issue wasn't for a complete reorganisation 
of the dialog, I am more than willing to spend some time if we want to tie 
several other issues into this one (and it would be helpful to do so).
Another random idea is to copy other IDEs and use a tree on the left-side to 
navigate to different settings, which would allow us to keep the number of 
settings on a page much lower.
I will write a new prototype trying the "Shell/Ed" tab idea you suggested and 
will upload the relevant screenshots.

--

___
Python tracker 

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



[issue40477] Launcher on Catalina

2020-05-02 Thread Werner

Werner  added the comment:

Thank you! That’s an Information which Looks bad but has good parts. At least 
it may be not my fault ;)

Best regards

Werner Hintze

Am 2. Mai 2020, 19:10 +0200 schrieb Ned Deily :
>
> Ned Deily  added the comment:
>
> Thanks for the report. At first glance, it does look like it's broken on 
> macOS 10.15. I'll look into it.
>
> --
> assignee: -> ned.deily
>
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue40477] Launcher on Catalina

2020-05-02 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the report. At first glance, it does look like it's broken on macOS 
10.15. I'll look into it.

--
assignee:  -> ned.deily

___
Python tracker 

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



[issue40419] timeit CLI docs still mention old power sequence

2020-05-02 Thread miss-islington


miss-islington  added the comment:


New changeset 4eec39a98c57bc374888b54c34ca11fdffcffc07 by Miss Islington (bot) 
in branch '3.7':
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 
10 (GH-19752)
https://github.com/python/cpython/commit/4eec39a98c57bc374888b54c34ca11fdffcffc07


--

___
Python tracker 

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



[issue40419] timeit CLI docs still mention old power sequence

2020-05-02 Thread miss-islington


miss-islington  added the comment:


New changeset 399b9a4a620f544c1afa3b8c7fd82d093b5cc76d by Miss Islington (bot) 
in branch '3.8':
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 
10 (GH-19752)
https://github.com/python/cpython/commit/399b9a4a620f544c1afa3b8c7fd82d093b5cc76d


--

___
Python tracker 

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



[issue40419] timeit CLI docs still mention old power sequence

2020-05-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +19177
pull_request: https://github.com/python/cpython/pull/19863

___
Python tracker 

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



[issue40419] timeit CLI docs still mention old power sequence

2020-05-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 766352320fd736e2c8ed545b4cc57563f61a0b9d by Sander in branch 
'master':
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 
10 (GH-19752)
https://github.com/python/cpython/commit/766352320fd736e2c8ed545b4cc57563f61a0b9d


--

___
Python tracker 

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



[issue40419] timeit CLI docs still mention old power sequence

2020-05-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19178
pull_request: https://github.com/python/cpython/pull/19864

___
Python tracker 

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



[issue40477] Launcher on Catalina

2020-05-02 Thread Werner

New submission from Werner :

I can’t figure out how to use Python Launcher on Catalina. Or it is broken. 
Anyway: It does absolutely nothing. When I double click a scriopt file, I se 
very shortly the preferences window of Launcher, and this is all. The script is 
not executed. I made a very simple script which writes a small text file. The 
script works flawlessly, when I call it in the terminal, but the Launcher seems 
not even to open it.

Is this a bug with Catalina, or what is to be done?

--
components: macOS
messages: 367935
nosy: Auerhahn, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Launcher on Catalina
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



[issue40457] Python fails to compile/load _ssl module if OpenSSL is compiled with no-tls1-method

2020-05-02 Thread Christian Heimes


Christian Heimes  added the comment:

Thanks for the bug report. I've created a PR to check for the correct flags in 
_ssl__SSLContext_impl(). I'll backport the fix to 3.8 and 3.7. 3.6 and older 
are in security-only mode.

--
versions: +Python 3.9 -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



[issue40457] Python fails to compile/load _ssl module if OpenSSL is compiled with no-tls1-method

2020-05-02 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
pull_requests: +19176
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19862

___
Python tracker 

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



[issue40449] multi-line f-string, syntaxerror points to wrong line

2020-05-02 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

Since this issue is now resolved, I'm closing it, after I consulted with 
pablogsal.

--
resolution:  -> fixed
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



[issue39232] asyncio crashes when tearing down the proactor event loop

2020-05-02 Thread rmawatson


rmawatson  added the comment:

This is also happening in other libraries besides aiohttp. Specifically xhttp 
on windows. There is an open issue at https://github.com/encode/httpx/issues/914

--
nosy: +rmawatson

___
Python tracker 

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



[issue40367] ImportError: libffi.so.6

2020-05-02 Thread Filipe Laíns

Filipe Laíns  added the comment:

Éric's assessment seems correct.

libffi-3.2 (which provided libffi.so.6) got dropped as a dependency from libffi 
a few weeks ago.

https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/libffi=edbab26c1cbebe62bb9a5ef55a5e0eaf3481a399

Add 2 weeks for the Manjaro repos to pull the change. The timing seems correct. 
You just need to rebuild your python installation in /opt/python/3.8.1 
(although having an installation there seems very odd, does the default 
installation not worlK).

Please let me know if the issue still proceeds after rebuilding, otherwise this 
should be closed :)

--
nosy: +FFY00

___
Python tracker 

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



[issue40367] ImportError: libffi.so.6

2020-05-02 Thread Filipe Laíns

Filipe Laíns  added the comment:

typo: does the default installation not worlK
 *does the default installation not work?

--

___
Python tracker 

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



[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇

Change by 韩振宇 <0oshowe...@gmail.com>:


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



[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇

韩振宇 <0oshowe...@gmail.com> added the comment:

After f.close() it apperas. That's my fault. Thank you.

--

___
Python tracker 

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



[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇

Change by 韩振宇 <0oshowe...@gmail.com>:


--
resolution:  -> not a bug

___
Python tracker 

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



[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi, I can't reproduce the issue but the fact that you did not close the file is 
suspicious. What does 

with open('test_output','w') as f:
length = 195364
for i in range(length):
f.write(str(i)+'\r\n')

gives?

--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇

Change by 韩振宇 <0oshowe...@gmail.com>:


--
components: +macOS
nosy: +ned.deily, ronaldoussoren
type:  -> behavior

___
Python tracker 

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



[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇

New submission from 韩振宇 <0oshowe...@gmail.com>:

When I write a long file using write() function, the resulting file is 
truncated into some specific level when the file is newly establised. However, 
when the file is existing, the full length can be achieved.

Here is the example code:

f = open('test_output','w')
length = 195364
for i in range(length):
f.write(str(i)+'\r\n')

On my macOS 10.15.4 and conda virtual environment
conda create -n test python=3.7.4

When the test_output file is not existing, the content of the file is truncated 
into 195280, while i is 195364 after the writing process.

Then I re-run the code without deleting the file, the output is normal.

--
components: IO
messages: 367927
nosy: 韩振宇
priority: normal
severity: normal
status: open
title: Write file failed on OS X 10.15.4
versions: Python 3.7

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-02 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

FYI, I was able to finish addressing the other exception-chaining cases (the 
ones covered by the other issue) with a simple change to the fix for this PR.

I moved the call to _PyErr_ChainExceptions() a bit deeper: into gen_send_ex() 
before the call to _PyEval_EvalFrame(), and behind an `if (exc)` check.

So I think the tracebacks should improve a lot.

--

___
Python tracker 

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



[issue40466] asyncio.ensure_future() breaks implicit exception chaining

2020-05-02 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

My PR is ready for review: https://github.com/python/cpython/pull/19858

--

___
Python tracker 

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



[issue29590] Incorrect stack traces when re-entering a generator/coroutine stack via .throw()

2020-05-02 Thread Chris Jerdonek


Change by Chris Jerdonek :


--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-02 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

FYI, I just created a PR to add one more test to the prior fix, to test a 
slightly different aspect.

Whereas the test in the first PR checks that exc.__context__ is set after 
gen.throw() is finished, the new test checks that exc.__context__ is available 
also from within the generator (while the generator is running). I'm adding 
this test partly because this behavior is different from the "awaiting on a 
task" case, which I'm working on next.

Both of these tests were failing prior to the fix, which I confirmed.

--

___
Python tracker 

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



[issue40449] multi-line f-string, syntaxerror points to wrong line

2020-05-02 Thread Lysandros Nikolaou

Lysandros Nikolaou  added the comment:

This has been fixed in 3.9.0a6 due to the new parser:

╰─ cat a.py
s = ("apricot "
 "pineapple"
 f"shallot{")
╰─ ./python.exe a.py
  File "/Users/lysnikolaou/Repositories/cpython/a.py", line 3
f"shallot{")
   ^
SyntaxError: f-string: expecting '}'

--
nosy: +lys.nikolaou

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-02 Thread Chris Jerdonek


Change by Chris Jerdonek :


--
pull_requests: +19175
pull_request: https://github.com/python/cpython/pull/19859

___
Python tracker 

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



[issue40469] TimedRotatingFileHandler rotating on use not time

2020-05-02 Thread Mark Hallett


Mark Hallett  added the comment:

Eg code to run is now attached

--
Added file: https://bugs.python.org/file49112/app.py

___
Python tracker 

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



[issue40031] IDLE fails trying to inport old idlelib file names for config

2020-05-02 Thread Saaheer Purav


Saaheer Purav  added the comment:

In my .idlerc folder, only 1 file is there- 'recent-files.lst'.

--

___
Python tracker 

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



[issue40466] asyncio.ensure_future() breaks implicit exception chaining

2020-05-02 Thread Chris Jerdonek


Change by Chris Jerdonek :


--
keywords: +patch
pull_requests: +19174
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19858

___
Python tracker 

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



[issue40398] typing.get_args(Callable) fails

2020-05-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a629d4c63c55ba36be36ff105dfc103b710c9a2d by Serhiy Storchaka in 
branch '3.8':
[3.8] bpo-40398: Fix typing.get_args() for special generic aliases. (GH-19720) 
(GH-19857)
https://github.com/python/cpython/commit/a629d4c63c55ba36be36ff105dfc103b710c9a2d


--

___
Python tracker 

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



[issue40398] typing.get_args(Callable) fails

2020-05-02 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
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



[issue40398] typing.get_args(Callable) fails

2020-05-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Yes, I have not closed this issue yet because it required a manual backporting 
to 3.8.

--

___
Python tracker 

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



[issue40398] typing.get_args(Callable) fails

2020-05-02 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +19173
pull_request: https://github.com/python/cpython/pull/19857

___
Python tracker 

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



[issue40475] json.JSONEncoder override default method

2020-05-02 Thread xie


xie  added the comment:

I got it,Thank you!

--
resolution:  -> fixed
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



[issue39435] pickle: inconsistent arguments pickle.py vs _pickle.c vs docs

2020-05-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 531d1e541284bfd7944f8c66a5e8c3c3234afaff by Serhiy Storchaka in 
branch 'master':
bpo-39435: Make the first argument of pickle.loads() positional-only. (GH-19846)
https://github.com/python/cpython/commit/531d1e541284bfd7944f8c66a5e8c3c3234afaff


--

___
Python tracker 

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