[issue42238] Deprecate suspicious.py?

2020-11-15 Thread Julien Palard


Julien Palard  added the comment:

Good idea Ned!

So proposed plan:

- Drop it from docs build and the CI to avoid time loss.
- Add it as a step of PEP 101, for a few release, for good measures
- I'll check it from time to time between releases, just to ensure it does not 
accumulate tons of things to do on the the release day.

If during a few release, we notice this tool is no loger usefull we'll be able 
to drop it.

If we spot some errors that can be migrated to the rstlint.py we'll do.

If this tool is in fact usefull, we'll have to think about it again.

--

___
Python tracker 

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



[issue42364] Typo in french doc translation

2020-11-15 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

French translation is maintained in GitHub and the issues are tracked under 
GitHub issues. Please open an issue at https://github.com/python/python-docs-fr

--
nosy: +xtreak
resolution:  -> third party
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



[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

In that case I prefer ((int, int), str), in case we ever end up needing to add 
additional parameters to Callable. I propose we first fix 
https://bugs.python.org/issue42102.

--

___
Python tracker 

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



[issue42102] Make builtins.callable "generic"

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

I'd like to pursue this for real; other issues for callable have popped up, 
https://bugs.python.org/issue42195 and https://bugs.python.org/issue40494 
(https://bugs.python.org/issue40398 is also related but already fixed).

>From 42195 I learn that __args__ ought to be hashable. I would prefer it to 
>still be structured, e.g. callable[[int, str], float].__args__ should be 
>((int, str), float).

This means we have to change typing.Callable and collections.abc.Callable as 
well (the latter may share code with builtins.callable, but typing.Callable 
should probably stay separate, but returning the same structure).

--

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-15 Thread miss-islington


miss-islington  added the comment:


New changeset 7c4d8fa82aae98f2d638be68f21e9524a92a38e6 by Miss Islington (bot) 
in branch '3.9':
bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)
https://github.com/python/cpython/commit/7c4d8fa82aae98f2d638be68f21e9524a92a38e6


--

___
Python tracker 

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



[issue40736] better message for re.search TypeError ("expected string or bytes-like object")

2020-11-15 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
nosy: +ZackerySpytz
nosy_count: 3.0 -> 4.0
pull_requests: +22203
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23312

___
Python tracker 

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



[issue40494] collections.abc.Callable and type variables

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

>From https://bugs.python.org/issue42195 it looks like we need to create a 
>subclass just for Callable. See https://bugs.python.org/issue42102 and PR 
>22848.

--

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-15 Thread miss-islington


miss-islington  added the comment:


New changeset 85a8a19134bf3f84e0c1504c2a5cd97aa255a63b by Miss Islington (bot) 
in branch '3.8':
bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)
https://github.com/python/cpython/commit/85a8a19134bf3f84e0c1504c2a5cd97aa255a63b


--

___
Python tracker 

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



[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-11-15 Thread Zac Hatfield-Dodds


Zac Hatfield-Dodds  added the comment:

> @Hatfield-Dodds, if we changed typing.Callable to return ((int, int), str) 
> but collections.abc.Callable continued to return ([int, int], str), would 
> that suffice for your purposes?

For performance reasons I'd prefer that the return value be hashable for both, 
but we've already shipped the workarounds [0,1,2] for 3.9.0 and will maintain 
that until 3.9 reaches EOL in any case.

Whether we return (int, int, str) or ((int, int), str) doesn't make much 
difference to me, the latter will require a trivial patch to [2] so please do 
whatever makes most sense upstream.


> Also, maybe we should make builtins.callable generic as well?

I like this idea :-)


[0] https://hypothesis.readthedocs.io/en/latest/changes.html#v5-39-0
[1] 
https://github.com/HypothesisWorks/hypothesis/pull/2653/files#diff-c56f048e926cce76dc6cd811924136f5c97e0f68f59625869b4ab01f1dbe10e0L1473-R1480
[2] 
https://github.com/HypothesisWorks/hypothesis/pull/2653/files#diff-f6a209c019f3f6af11a027a0035e3fc736935d9920fd85da726f9abf4c325d6bR562-R567

--

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

Closing in anticipation of the backports landing.

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



[issue42153] doc: library imaplib a url not available

2020-11-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22202
pull_request: https://github.com/python/cpython/pull/23311

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-15 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +22201
pull_request: https://github.com/python/cpython/pull/23310

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset aa01011003bb855cd52abfd49f2443446590d913 by Yash Shete in branch 
'master':
bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)
https://github.com/python/cpython/commit/aa01011003bb855cd52abfd49f2443446590d913


--
nosy: +gvanrossum

___
Python tracker 

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



[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

Also, maybe we should make builtins.callable generic as well?

--

___
Python tracker 

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



[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

@Hatfield-Dodds, if we changed typing.Callable to return ((int, int), str) but 
collections.abc.Callable continued to return ([int, int], str), would that 
suffice for your purposes?

--

___
Python tracker 

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



[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

Hm, actually I think this needs to be backported to 3.8 and 3.9 (at least) 
since IIUC whichever release is installed last (or first?) overwrites "py.exe", 
so if "py.exe" came from e.g. 3.9, and 3.10 is present, we still want it to 
sort that correctly.

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



[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-15 Thread Guido van Rossum


Change by Guido van Rossum :


--
versions: +Python 3.10 -Python 3.9

___
Python tracker 

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



[issue42365] Python launcher: sort order in "Installed versions" off with 3.10

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

Oops. :-)

--
resolution:  -> duplicate
stage: needs patch -> 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



[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

I think now's the time to fix it, given that we're two alphas into 3.10 
already. (I independently discovered this and filed it as issue 42365.)

--
nosy: +gvanrossum

___
Python tracker 

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



[issue42332] add __weakref__ to types.GenericAlias

2020-11-15 Thread Ken Jin


Change by Ken Jin :


--
pull_requests: +22200
pull_request: https://github.com/python/cpython/pull/23309

___
Python tracker 

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



[issue42332] add __weakref__ to types.GenericAlias

2020-11-15 Thread miss-islington


miss-islington  added the comment:


New changeset 384b7a4bd988986bca227c7e85c32d766da74708 by kj in branch 'master':
bpo-42332: Add weakref slot to types.GenericAlias (GH-23250)
https://github.com/python/cpython/commit/384b7a4bd988986bca227c7e85c32d766da74708


--
nosy: +miss-islington

___
Python tracker 

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



[issue36011] ssl - tls verify on Windows fails

2020-11-15 Thread Tom Kent


Tom Kent  added the comment:

Christian's message indicated that a workaround was possible by adding 
mozilla's certs to windows cert store. 

I'm sure there are sysadmins who will really hate this idea, but I've 
successfully implemented it in a windows docker image, and wanted to document 
here.

Powershell commands, requires OpenSSL to be installed on the system:
```
cd $env:USERPROFILE;
Invoke-WebRequest https://curl.haxx.se/ca/cacert.pem -OutFile 
$env:USERPROFILE\cacert.pem;
$plaintext_pw = 'PASSWORD';
$secure_pw = ConvertTo-SecureString $plaintext_pw -AsPlainText -Force;
& 'C:\Program Files\OpenSSL-Win64\bin\openssl.exe' pkcs12 -export -nokeys -out 
certs.pfx -in cacert.pem -passout pass:$plaintext_pw;
Import-PfxCertificate -Password $secure_pw  -CertStoreLocation 
Cert:\LocalMachine\Root -FilePath certs.pfx;
```

Once mozilla's store is imported into the microsoft trusted root store, python 
has everything it needs to access files directly.

--
nosy: +teeks99

___
Python tracker 

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



[issue42365] Python launcher: sort order in "Installed versions" off with 3.10

2020-11-15 Thread Zackery Spytz


Zackery Spytz  added the comment:

This seems like a duplicate of bpo-38506 (which already has a PR).

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue42365] Python launcher: sort order in "Installed versions" off with 3.10

2020-11-15 Thread Yash Shete


Yash Shete  added the comment:

I would like to try look into this problem. can you please point me into right 
direction, like: where and what to edit. I am not much experienced but i would 
like to try.
thankyou

--
nosy: +Pixmew

___
Python tracker 

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



[issue42280] The list of standard generic collections is incomplete

2020-11-15 Thread Guido van Rossum

Guido van Rossum  added the comment:

Let’s just close this, there are more important things to do.

--

___
Python tracker 

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



[issue42280] The list of standard generic collections is incomplete

2020-11-15 Thread jack1142


jack1142  added the comment:

I was thinking that this could be the case but if I'm not mistaken, there's 
actually quite a lot of types in this list that aren't collections (awaitable, 
coroutine, iterable, iterator, generator, the async versions of those, 
callable, *hmm, are views collections?*, and the ones you mentioned), so I 
figured that listing *only* collections might have not been the intention when 
this was written. But listing all of the generics in Python would indeed be 
lengthy so it might make sense to limit it to collections nonetheless, I'm not 
really sure about it though.

--

___
Python tracker 

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



[issue42317] Docs of `typing.get_args`: Mention that due to caching of typing generics the order of arguments for Unions can be different from the one of the returned tuple

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

Thanks!

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



[issue42317] Docs of `typing.get_args`: Mention that due to caching of typing generics the order of arguments for Unions can be different from the one of the returned tuple

2020-11-15 Thread miss-islington


miss-islington  added the comment:


New changeset 2369759a47c5292bacf2eef17b4e2388b7d36675 by Miss Islington (bot) 
in branch '3.9':
bpo-42317: Improve docs of typing.get_args concerning Union (GH-23254)
https://github.com/python/cpython/commit/2369759a47c5292bacf2eef17b4e2388b7d36675


--

___
Python tracker 

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



[issue42280] The list of standard generic collections is incomplete

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

I think the difference between the two lists is that not every generic type is 
a collection.

If we apply that standard, I think the contextlib and re classes need to be 
*removed* from the list (did I get that right?).

--

___
Python tracker 

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



[issue42317] Docs of `typing.get_args`: Mention that due to caching of typing generics the order of arguments for Unions can be different from the one of the returned tuple

2020-11-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22199
pull_request: https://github.com/python/cpython/pull/23307

___
Python tracker 

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



[issue42317] Docs of `typing.get_args`: Mention that due to caching of typing generics the order of arguments for Unions can be different from the one of the returned tuple

2020-11-15 Thread miss-islington


miss-islington  added the comment:


New changeset c3b9592244a9112d8af9610ff1c4e1e4cd4bfaca by Dominik1123 in branch 
'master':
bpo-42317: Improve docs of typing.get_args concerning Union (GH-23254)
https://github.com/python/cpython/commit/c3b9592244a9112d8af9610ff1c4e1e4cd4bfaca


--
nosy: +miss-islington

___
Python tracker 

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



[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

Yeah, I think it makes sense to de-dupe args for Literal.

--

___
Python tracker 

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



[issue42365] Python launcher: sort order in "Installed versions" off with 3.10

2020-11-15 Thread Guido van Rossum


New submission from Guido van Rossum :

I installed Python 3.10 on Windows and now the sort order of the versions 
printed by `py -0` is kind of weird:
```
Installed Pythons found by C:\WINDOWS\py.exe Launcher for Windows
 -3.9-64 *
 -3.8-64
 -3.7-64
 -3.6-64
 -3.5-64
 -3.10-64
```
I'm guessing we're going to have to parse the versions...

(I accidentally first reported this in 
https://github.com/brettcannon/python-launcher/issues/42.)

--
components: Windows
messages: 381049
nosy: gvanrossum, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Python launcher: sort order in "Installed versions" off with 3.10
type: behavior
versions: Python 3.10

___
Python tracker 

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



[issue18838] The order of interactive prompt and traceback on Windows

2020-11-15 Thread Irit Katriel


Irit Katriel  added the comment:

On version 3.10, windows 10 I don't see this - the prompt comes after the 
traceback.

Adam, are you seeing this issue on any python version >= 3.8?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue39168] Generic type subscription is a huge toll on Python performance

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

No worries. I tend to run each time it command at least three times before I 
trust the numbers. Professional bench markers also configure a machine without 
background tasks (email etc.).

--

___
Python tracker 

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



[issue14390] Tkinter single-threaded deadlock

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue14338] Document how to forward POST data on redirects

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy (C)
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue39168] Generic type subscription is a huge toll on Python performance

2020-11-15 Thread David Lord


David Lord  added the comment:

I'm using Arch Linux. After your reply I tried again and now I'm seeing the 
same result as you, negligible difference from inheriting `Generic` on Python 
3.9. I can't explain it, I ran the timings repeatedly before I posted here, but 
I guess it was a weird temporary issue with my machine.

--

___
Python tracker 

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



[issue4297] Add error_log attribute to optparse.OptionParser

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> out of date
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue4802] detect_tkinter for cygwin

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.9 -Python 3.2

___
Python tracker 

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



[issue14531] Backtrace should not attempt to open file

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> Traceback display code can attempt to open a file named 
""

___
Python tracker 

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



[issue10898] posixmodule.c redefines FSTAT

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4

___
Python tracker 

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



[issue6497] Support for digital Cinema/film DPX and Kodak Cineon image file formats in imghdr module

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
type: behavior -> enhancement
versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.2

___
Python tracker 

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



[issue6237] Build errors when using LDFLAGS="-Wl,--no-undefined"

2020-11-15 Thread Irit Katriel


Irit Katriel  added the comment:

Closing as out of date because it's from 14 years ago and the OP did not reply 
to Mark's ping. 

If this is an issue in Python 3 please open a new issue for that.

--
nosy: +iritkatriel
resolution:  -> out of date
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



[issue1178136] cgitb.py support for frozen images

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
status: open -> pending

___
Python tracker 

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



[issue1178136] cgitb.py support for frozen images

2020-11-15 Thread Irit Katriel


Irit Katriel  added the comment:

Barry, are you interested in converting this patch into a github PR?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue1465554] Cygwin installer should create a link to libpythonX.Y.dll.a

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage: test needed -> resolved
status: open -> closed
superseder:  -> distutils extension library path bug on cygwin

___
Python tracker 

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



[issue42364] Typo in french doc translation

2020-11-15 Thread Mathias MICHEL

New submission from Mathias MICHEL :

In https://docs.python.org/fr/3/tutorial/inputoutput.html, § 7.1.3. Formatage 
de chaînes à la main

After the code block the sentence between () should  replace `donc` by `dont`:

(Remarquez que l'espace séparant les colonnes vient de la manière dont print() 
fonctionne : il ajoute toujours des espaces entre ses arguments.)

--
assignee: docs@python
components: Documentation
messages: 381043
nosy: docs@python, matm
priority: normal
severity: normal
status: open
title: Typo in french doc translation
type: compile error
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



[issue1289136] distutils extension library path bug on cygwin

2020-11-15 Thread Irit Katriel


Irit Katriel  added the comment:

I see that the erroneous "is string.find..." condition is no longer in the 
code: 
https://github.com/python/cpython/blob/master/Lib/distutils/command/build_ext.py#L220


Is this issue out of date or is there something still to do on it?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue39168] Generic type subscription is a huge toll on Python performance

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

@davidm

I don't see such a dramatic difference -- the generic version is a tad slower, 
but the difference is less than the variation between runs.

What platform are you using?  (I'm doing this on Windows.)

--

___
Python tracker 

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



[issue1676820] Add a PeriodicTimer to threading

2020-11-15 Thread Irit Katriel


Irit Katriel  added the comment:

Based on the comments, should this be closed as rejected?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-11-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

So, is anything more needed, or should PR-22798 and this issue be closed?

--
nosy: +orsenthil

___
Python tracker 

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



[issue13888] test_builtin failure when run after test_tk

2020-11-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

tcl/tk 8.5, likely used in 2012 test, was by default compiled without thread 
support.  8.6, used now for sure on psf Windows and Macs installs and I believe 
on most *nixes, the default is *with* thread support.  Given the comments, this 
might affect results.

--
status: pending -> open

___
Python tracker 

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



[issue25053] Possible race condition in Pool

2020-11-15 Thread Anil Bishnoie


Anil Bishnoie  added the comment:

Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized

  File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python38\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
  File "C:\Python38\lib\multiprocessing\spawn.py", line 129, in _main
return self._bootstrap(parent_sentinel)
  File "C:\Python38\lib\multiprocessing\process.py", line 331, in _bootstrap
traceback.print_exc()
  File "C:\Python38\lib\traceback.py", line 163, in print_exc
print_exception(*sys.exc_info(), limit=limit, file=file, chain=chain)
  File "C:\Python38\lib\traceback.py", line 105, in print_exception
print(line, file=file, end="")
KeyboardInterrupt
addpackage(sitedir, name, known_paths)
  File "C:\Python38\lib\site.py", line 169, in addpackage
exec(line)
  File "", line 1, in 
  File "C:\Python38\lib\importlib\util.py", line 14, in 
from contextlib import contextmanager
  File "C:\Python38\lib\contextlib.py", line 5, in 
from collections import deque
  File "C:\Python38\lib\collections\__init__.py", line 22, in 
from keyword import iskeyword as _iskeyword
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "", line 779, in exec_module
  File "", line 874, in get_code
  File "", line 972, in get_data

--

___
Python tracker 

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



[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-11-15 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
nosy: +BTaskaya

___
Python tracker 

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



[issue39168] Generic type subscription is a huge toll on Python performance

2020-11-15 Thread David Lord


David Lord  added the comment:

Is this performance issue supposed to be fixed in 3.9? I'm still observing 
severe slowdown by inheriting from `Generic[T]`.

I'm currently adding typing to Werkzeug, where we define many custom data 
structures such as `MultiDict`. It would be ideal for these classes to be 
recognized as generic mappings. I remembered hearing about this performance 
issue somewhere, so I decided to test what happens.

Here's a minimal example without Werkzeug, the results in Werkzeug are similar 
or worse. I'd estimate each request creates about 10 of the various data 
structures, which are then accessed by user code, so I simulated that by 
creating and iterating a list of objects.

```python
class Test:
def __init__(self, value):
self.value = value

def main():
ts = [Test(x) for x in range(10)]
sum(t.value for t in ts)
```

```
$ python3.9 -m timeit -n 10 -s 'from example import main' 'main()'
10 loops, best of 5: 7.67 usec per loop
```

```python
import typing

V = typing.TypeVar("V")

class Test(typing.Generic[V]):
def __init__(self, value: V) -> None:
self.value = value

def main():
ts = [Test(x) for x in range(10)]
sum(t.value for t in ts)
```

```
$ python3.9 -m timeit -n 10 -s 'from example import main' 'main()'
10 loops, best of 5: 18.2 usec per loop
```

There is more than a 2x slowdown when using `Generic`. The timings (7 vs 18 
usec) are the same across Python 3.6, 3.7, 3.8, and 3.9. It seems that 3.9 does 
not fix the performance issue.

Since we currently support Python 3.6+, I probably won't be able to use 
generics anyway due to the performance in those versions, but I wanted to make 
sure I'm not missing something with 3.9.

--
nosy: +davidism

___
Python tracker 

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



[issue42360] In the namedtuple documentation, mention that typename should match the variable name for the class to be pickle-able

2020-11-15 Thread Raymond Hettinger


Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue25053] Possible race condition in Pool

2020-11-15 Thread Anil Bishnoie


Anil Bishnoie  added the comment:

Process SpawnPoolWorker-36:
Process SpawnPoolWorker-28:
Process SpawnPoolWorker-33:
Process SpawnPoolWorker-30:
Process SpawnPoolWorker-34:
Process SpawnPoolWorker-32:
Process SpawnPoolWorker-35:
Process SpawnPoolWorker-38:
Process SpawnPoolWorker-37:
Process SpawnPoolWorker-31:
Process SpawnPoolWorker-29:
Process SpawnPoolWorker-26:
Traceback (most recent call last):
  File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
  File "C:\Python38\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
  File "C:\Python38\lib\multiprocessing\pool.py", line 114, in worker
task = get()
  File "C:\Python38\lib\multiprocessing\queues.py", line 356, in get
res = self._reader.recv_bytes()
  File "C:\Python38\lib\multiprocessing\connection.py", line 216, in recv_bytes
buf = self._recv_bytes(maxlength)
  File "C:\Python38\lib\multiprocessing\connection.py", line 305, in _recv_bytes
waitres = _winapi.WaitForMultipleObjects(
KeyboardInterrupt
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
  File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
Traceback (most recent call last):
Traceback (most recent call last):
  File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
Traceback (most recent call last):
  File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
  File "C:\Python38\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
  File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
  File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
  File "C:\Python38\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
Traceback (most recent call last):
  File "C:\Python38\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
  File "C:\Python38\lib\multiprocessing\pool.py", line 114, in worker
task = get()
  File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
  File "C:\Python38\lib\multiprocessing\pool.py", line 114, in worker
task = get()
  File "C:\Python38\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
  File "C:\Python38\lib\multiprocessing\pool.py", line 114, in worker
task = get()
  File "C:\Python38\lib\multiprocessing\queues.py", line 355, in get
with self._rlock:
  File "C:\Python38\lib\multiprocessing\synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
  File "C:\Python38\lib\multiprocessing\queues.py", line 355, in get
with self._rlock:
  File "C:\Python38\lib\multiprocessing\synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
  File "C:\Python38\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
  File "C:\Python38\lib\multiprocessing\pool.py", line 114, in worker
task = get()
  File "C:\Python38\lib\multiprocessing\queues.py", line 355, in get
with self._rlock:
  File "C:\Python38\lib\multiprocessing\synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
  File "C:\Python38\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
  File "C:\Python38\lib\multiprocessing\pool.py", line 114, in worker
task = get()
  File "C:\Python38\lib\multiprocessing\queues.py", line 355, in get
with self._rlock:
  File "C:\Python38\lib\multiprocessing\synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
KeyboardInterrupt

--

___
Python tracker 

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



[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-11-15 Thread Jacob Taylor


Change by Jacob Taylor :


--
nosy: +Jacob Taylor
nosy_count: 8.0 -> 9.0
pull_requests: +22197
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17471

___
Python tracker 

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



[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-11-15 Thread Daniel Lenski


Daniel Lenski  added the comment:

Issue #38976 is a duplicate of this one, and now closed by 
https://github.com/python/cpython/pull/17471

--

___
Python tracker 

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



[issue38976] Add support for HTTP Only flag in MozillaCookieJar

2020-11-15 Thread Daniel Lenski


Change by Daniel Lenski :


--
pull_requests: +22196
pull_request: https://github.com/python/cpython/pull/22798

___
Python tracker 

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



[issue38976] Add support for HTTP Only flag in MozillaCookieJar

2020-11-15 Thread Daniel Lenski


Daniel Lenski  added the comment:

This issue is essentially a duplicate of the very-longstanding #2190.

My PR (https://github.com/python/cpython/pull/22798) was submitted before this 
one, but this one was accepted and merged first.

--
nosy: +dlenski

___
Python tracker 

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



[issue25053] Possible race condition in Pool

2020-11-15 Thread Anil Bishnoie


Anil Bishnoie  added the comment:

from multiprocessing import Pool

l_adt=ldir()
l_ln=len(l_stk)
p = Pool(processes=l_ln)
df = p.map(ld_df1, [i for i in l_adt])

l_ln=12 processes
Above is the self explanatory code snippet

IS there a resolution ?

--

___
Python tracker 

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



[issue25053] Possible race condition in Pool

2020-11-15 Thread Anil Bishnoie


Anil Bishnoie  added the comment:

Before running the Pool I checked whether my func existed in memory or not and 
it was there well defined by address and works fine otherwise

>>> ld_df1


--

___
Python tracker 

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



[issue25053] Possible race condition in Pool

2020-11-15 Thread Anil Bishnoie


Anil Bishnoie  added the comment:

Traceback (most recent call last):
  File "C:\Python38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
  File "C:\Python38\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
  File "C:\Python38\lib\multiprocessing\pool.py", line 114, in worker
task = get()
  File "C:\Python38\lib\multiprocessing\queues.py", line 358, in get
return _ForkingPickler.loads(res)
AttributeError: Can't get attribute 'ld_df1' on 

--

___
Python tracker 

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



[issue25053] Possible race condition in Pool

2020-11-15 Thread Anil Bishnoie


Anil Bishnoie  added the comment:

I still get this error while processing multiple tasks in python 3.8 
Is this bug resolved and where I can find resolution ?

--
nosy: +anilb
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



[issue2941] Propagate define to resurce mingw32 compile

2020-11-15 Thread Irit Katriel


Irit Katriel  added the comment:

Alexandr, is this still an issue, and if so can you explain what the issue is?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue19070] In place operators of weakref.proxy() not returning self.

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.6, Python 2.7, Python 
3.3

___
Python tracker 

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



[issue13888] test_builtin failure when run after test_tk

2020-11-15 Thread Irit Katriel


Irit Katriel  added the comment:

I couldn't reproduce this on a macOS (3.10). Is it still an issue?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-15 Thread mohamed koubaa


Change by mohamed koubaa :


--
pull_requests: +22195
pull_request: https://github.com/python/cpython/pull/23304

___
Python tracker 

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



[issue17437] Difference between open and codecs.open

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2, Python 3.3, Python 
3.4

___
Python tracker 

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



[issue16543] improve TypeError messages for missing arguments (meta issue)

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 
3.4

___
Python tracker 

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



[issue4643] cgitb.html fails if getattr call raises exception

2020-11-15 Thread Irit Katriel


Irit Katriel  added the comment:

Arthur, are you interested in converting your patch to a github pull request?

--

___
Python tracker 

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



[issue4643] cgitb.html fails if getattr call raises exception

2020-11-15 Thread Irit Katriel


Irit Katriel  added the comment:

The issue still occurs in 3.10. Python 3 version of the script:


import cgitb

class WeirdObject(object):
def __getattr__(self, attr):
if attr == 'a':
return 'the letter a'
elif attr == 'b':
return str(slf) # Intentional NameError
raise AttributeError(attr)

try:
weird = WeirdObject()
print('A:', weird.a)
print('B:', weird.b)
print('C:', weird.c)
except Exception as e:
import sys
print('\nSomething went wrong - attempting to generate HTML stack trace.')
try:
html_text = cgitb.html(sys.exc_info())
except:
print('Error generating HTML stack trace!')
raise
else:
print('Here is stack trace in HTML:\n', html_text)

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4

___
Python tracker 

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



[issue42360] In the namedtuple documentation, mention that typename should match the variable name for the class to be pickle-able

2020-11-15 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I'll add a brief note to the named tuple docs.

FWIW, this is a special case of the more general issue that pickling errors 
tend to be inscrutable.

--
assignee: docs@python -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue16801] Preserve original representation for integers / floats in docstrings

2020-11-15 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
nosy: +pablogsal

___
Python tracker 

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



[issue16801] Preserve original representation for integers / floats in docstrings

2020-11-15 Thread Batuhan Taskaya


Batuhan Taskaya  added the comment:

I'm very late to join this thread, but since the Constant() node has now a kind 
field, we can possibly add this (though I'm not saying we should, depending on 
whether still this would be a nice addition to clinic docstrings.)

2 options that I can think off:
- Introduce a couple of new tokens (BIN_NUMBER, OCT_NUMBER, HEX_NUMBER). 
- Add a new field to the tok_state struct (like const char* number_type) and 
when constructing the Constant node in the _PyPegen_number_token, add that 
number_type as the kind field of the constant.

In case of anyone wondering, the latter would be a +20 lines addition (no 
changes on the grammar / tokens, just a couple of new lines into the tokenizer 
and the _PyPegen_number_token.)

--
nosy: +BTaskaya

___
Python tracker 

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



[issue39934] Fatal Python error "XXX block stack overflow" when exception stacks >10

2020-11-15 Thread Irit Katriel


Change by Irit Katriel :


--
pull_requests: +22194
pull_request: https://github.com/python/cpython/pull/23303

___
Python tracker 

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



[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-15 Thread STINNER Victor


STINNER Victor  added the comment:

Sorry Petr, I didn't notice that the note was fully removed in the first 
change. Thanks for restoring the note!

--

___
Python tracker 

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



[issue29076] Mac installer shell updater script silently fails if default shell is fish

2020-11-15 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +22193
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23302

___
Python tracker 

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



[issue29076] Mac installer shell updater script silently fails if default shell is fish

2020-11-15 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Sure, I'll create a PR right away.

--

___
Python tracker 

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



[issue41116] build on macOS 11 (beta) does not find system-supplied third-party libraries

2020-11-15 Thread Ronald Oussoren


Change by Ronald Oussoren :


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

___
Python tracker 

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



[issue38495] print built-in function docs bug

2020-11-15 Thread Julien Palard


Julien Palard  added the comment:

Hi!

Thanks Alex for reporting, and everyone involved.

This has been fixed in python-docs-theme, so it's fixed for >=3.8. As 3.7 is in 
security-only (and embeds python-docs-theme), better not touch it.

Bests.

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



[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a26215db11cfcf7b5f55cab9e91396761a0e0bcf by Serhiy Storchaka in 
branch 'master':
bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281)
https://github.com/python/cpython/commit/a26215db11cfcf7b5f55cab9e91396761a0e0bcf


--

___
Python tracker 

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



[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +22191
pull_request: https://github.com/python/cpython/pull/23300

___
Python tracker 

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



[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-15 Thread Ken Jin


Ken Jin  added the comment:

@Guido and @Ivan,

Should Literals de-duplicate values in its __args__ similar to Union? PEP 586 
states that:
> Literal[v1, v2, v3] is equivalent to Union[Literal[v1], Literal[v2], 
> Literal[v3]]

Naturally, a Union de-duplicates values, so I was wondering if Literal should 
follow.

--
nosy: +kj

___
Python tracker 

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



[issue27119] `compile` doesn't compile into an AST object as specified

2020-11-15 Thread Batuhan Taskaya


Batuhan Taskaya  added the comment:

We've added a reference to the compiler flags into the compile(), see issue 
40484 for details.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
versions: +Python 3.10 -Python 2.7, Python 3.5, Python 3.6, 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



[issue42363] I think it will be better to output self._state for debugging

2020-11-15 Thread Jim Lin


Change by Jim Lin :


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

___
Python tracker 

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



[issue42363] I think it will be better to output self._state for debugging

2020-11-15 Thread Jim Lin


New submission from Jim Lin :

I think the exception "raise ValueError("Pool not running")" is not easy for a 
programmer to quickly know the problem of their code.

Therefore, I add the value of self._state when throwing the ValueError.

--
components: Library (Lib)
messages: 381016
nosy: jimlinntu
priority: normal
severity: normal
status: open
title: I think it will be better to output self._state for debugging
versions: Python 3.10

___
Python tracker 

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



[issue42362] Switch to clang as default compiler in build-installer.py

2020-11-15 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +22189
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23298

___
Python tracker 

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



[issue42362] Switch to clang as default compiler in build-installer.py

2020-11-15 Thread Ronald Oussoren


New submission from Ronald Oussoren :

build-installer.py still defaults to gcc as the default compiler, even though 
clang has been the system compiler for ages (and gcc is an alias in anything 
remotely recent).

PR is forthcoming

--
assignee: ronaldoussoren
components: macOS
messages: 381015
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: Switch to clang as default compiler in build-installer.py
type: behavior

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-15 Thread Yash Shete


Change by Yash Shete :


--
pull_requests: +22188
pull_request: https://github.com/python/cpython/pull/23297

___
Python tracker 

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



[issue41100] Support macOS 11 and Apple Silicon Macs

2020-11-15 Thread Ned Deily


Change by Ned Deily :


--
title: Build failure on macOS 11 (beta) -> Support macOS 11 and Apple Silicon 
Macs

___
Python tracker 

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



[issue42153] doc: library imaplib a url not available

2020-11-15 Thread Yash Shete


Change by Yash Shete :


--
pull_requests: +22187
pull_request: https://github.com/python/cpython/pull/23296

___
Python tracker 

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



[issue41100] Build failure on macOS 11 (beta)

2020-11-15 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
pull_requests: +22186
pull_request: https://github.com/python/cpython/pull/23295

___
Python tracker 

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



[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-15 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


--
keywords: +patch
nosy: +uriyyo
nosy_count: 3.0 -> 4.0
pull_requests: +22185
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23294

___
Python tracker 

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



[issue42361] Use Tcl/Tk 8.6.10 in build-installer.py when building on recent macOS

2020-11-15 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +22184
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23293

___
Python tracker 

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



[issue42361] Use Tcl/Tk 8.6.10 in build-installer.py when building on recent macOS

2020-11-15 Thread Ronald Oussoren


New submission from Ronald Oussoren :

As discussed before we want to switch to Tcl/Tk 8.6.10 when building the 
installer on a recent version of macOS. The build on macOS 10.9 should continue 
to use 8.6.8 due to build issues.

PR is forthcoming (currently running tests)

--
assignee: ronaldoussoren
components: Tkinter, macOS
messages: 381014
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: Use Tcl/Tk 8.6.10 in build-installer.py when building on recent macOS
type: behavior

___
Python tracker 

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



[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you for your examples Pat. Now it looks clearer to me.

Semantically this data in Tk is a sequence of pairs: states (which can be a 
single word or several words or empty) and default value.

>>> from tkinter import ttk
>>> style = ttk.Style()
>>> style.theme_use('clam')
>>> style.tk.eval(f'{style._name} map TCombobox -fieldbackground')
'{readonly focus} #4a6984 readonly #dcdad5'
>>> style.tk.eval(f'{style._name} map TNotebook.Tab -background')
'selected #dcdad5 {} #bab5ab'

Internally states represented in Tk as the StateSpec object. When automatically 
convert to Python it became the Tcl_Obj object with typename 'StateSpec'. 
Without postprocessing.

>>> style.tk.call(style._name, 'map', 'TCombobox', '-fieldbackground')
(, '#4a6984', , '#dcdad5')
>>> style.tk.call(style._name, 'map', 'TNotebook.Tab', '-background')
(, '#dcdad5', , '#bab5ab')

Style.map() does postprocessing. It converts a sequence (with even items 
number) to a list of tuples. The last item of a tuple is the default value, and 
the rest are items of the StateSpec object.

>>> style.map('TCombobox', 'fieldbackground')
[('readonly', 'focus', '#4a6984'), ('readonly', '#dcdad5')]
>>> style.map('TNotebook.Tab', 'background')
[('selected', '#dcdad5'), ('#bab5ab',)]

But when set tkinter.wantobjects = 0 before running this example the result 
will be different, because StateSpec objects will be automatically represented 
as strings (it matches the behavior of initial versions of Tkinter):

>>> style.tk.call(style._name, 'map', 'TCombobox', '-fieldbackground')
'{readonly focus} #4a6984 readonly #dcdad5'
>>> style.tk.call(style._name, 'map', 'TNotebook.Tab', '-background')
'selected #dcdad5 {} #bab5ab'
>>> style.map('TCombobox', 'fieldbackground')
[('readonly focus', '#4a6984'), ('readonly', '#dcdad5')]
>>> style.map('TNotebook.Tab', 'background')
[('selected', '#dcdad5'), ('', '#bab5ab')]

The main problem is in representing an empty StateSpec. As every string in 
Python contains an empty string, {} can represent an empty sequence and a 
sequence containing single empty string. In Python, it can be no items before 
default value (like in ('#bab5ab',)) or a single item containing an empty 
string (like in ('', '#bab5ab')).

The former representation (an empty sequence) is default for the style.map() 
output, but it is rejected as the style.map() input (see state[0] in 
_mapdict_values). There are two ways to fix it: either change the output of 
style.map() (what PR 23241 does) or change the validation of the input. I think 
that the latter solution can be backported, but the former can be used only in 
the future Python version.

--

___
Python tracker 

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



[issue42358] Python 3.9.0 unable to detect ax_cv_c_float_words_bigendian value on nigendan system

2020-11-15 Thread Dennis Clarke


Dennis Clarke  added the comment:

I see :

https://github.com/python/cpython/blob/master/Objects/exceptions.c#L2316 

the void return has been fixed and really I should not be
looked anywhere else other than the master sources on some
oddball platform.  I will start over.

--

___
Python tracker 

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



  1   2   >