[issue41123] Remove Py_UNICODE APIs except PEP 623

2020-06-27 Thread Inada Naoki


Change by Inada Naoki :


--
pull_requests: +20346
pull_request: https://github.com/python/cpython/pull/21192

___
Python tracker 

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



[issue31590] CSV module incorrectly treats escaped newlines as new records if unquoted

2020-06-27 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Yes, the status quo won ;-).

Sebastian, if you think a doc fix is still needed for current versions,  please 
open a new issue with a specific suggestion and explanation for changing the 
3.9 doc.

--
resolution:  -> wont fix
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



[issue41144] IDLE: raises ImportError when opening special modules

2020-06-27 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The problem is that there is no file os/path.py.  When I try to load os.path, 
nothing happens, not even a "Module not found" message, as with idlelib.rrr, 
for instance.  If I try 'os.pathx', I get "Error: __path__ attribute not found 
on 'os' while trying to find 'os.pathx'".

A new test, without the patch, fails with
ImportError: loader for ntpath cannot handle os.path
I am going to assume that calling it with the module name is usually a good 
idea, so that adding a separate call without is a good idea.

--

___
Python tracker 

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



[issue38870] Expose ast.unparse in the ast module

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 6e3a246a019a356e1befcdfd3d54a52cb7b5 by Pablo Galindo in 
branch '3.9':
[3.9] bpo-38870: Extend subject of ast.unparse warnings (GH-21053) (GH-21191)
https://github.com/python/cpython/commit/6e3a246a019a356e1befcdfd3d54a52cb7b5


--

___
Python tracker 

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



[issue41123] Remove Py_UNICODE APIs except PEP 623

2020-06-27 Thread Inada Naoki


Inada Naoki  added the comment:

APIs have /* Py_DEPRECATED(3.3) */

* PyUnicode_EncodeDecimal
  It is used in PyLong_FromUnicode.  Deprecate in 3.10 and remove in 3.12

* PyUnicode_TransformDecimalToASCII
  While PEP 393 deprecate this too, its document doesn't has ``deprecated``.  
Deprecate in 3.10 and remove in 3.12

* _PyUnicode_ToLowercase, _PyUnicode_ToUppercase
  They are not deprecated by PEP 393, but #12736. Deprecate in 3.10 and remove 
in 3.12.
  On the other hand, _PyUnicode_ToTitlecase has Py_DEPRECATED. It can be 
removed in 3.10.

--

___
Python tracker 

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



[issue38870] Expose ast.unparse in the ast module

2020-06-27 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +20345
pull_request: https://github.com/python/cpython/pull/21191

___
Python tracker 

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



[issue38870] Expose ast.unparse in the ast module

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 8df1016e2ef8c0a9f4d15bf7894c284295c99d9f by Batuhan Taskaya in 
branch 'master':
bpo-38870: Extend subject of ast.unparse warnings (GH-21053)
https://github.com/python/cpython/commit/8df1016e2ef8c0a9f4d15bf7894c284295c99d9f


--

___
Python tracker 

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



[issue39151] Simplify the deep-first-search of the assembler

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 60eb9f1ab59a59ddf81d3da3513cfa3251169b5c by Pablo Galindo in 
branch 'master':
bpo-39151: Simplify DFS in the assembler (GH-17733)
https://github.com/python/cpython/commit/60eb9f1ab59a59ddf81d3da3513cfa3251169b5c


--

___
Python tracker 

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



[issue39151] Simplify the deep-first-search of the assembler

2020-06-27 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-27 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset e653369e76d7da6bcbcf1f09a141f47fb77df6c3 by Guido van Rossum in 
branch '3.8':
[3.8] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags 
(#21023)
https://github.com/python/cpython/commit/e653369e76d7da6bcbcf1f09a141f47fb77df6c3


--

___
Python tracker 

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



[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-27 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 2a1ee1d970460047bd88da9638f8c1789431d9ab by Guido van Rossum in 
branch '3.9':
[3.9] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags 
(#21022)
https://github.com/python/cpython/commit/2a1ee1d970460047bd88da9638f8c1789431d9ab


--

___
Python tracker 

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



[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-27 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 9d197c7d48147a9ea2f7f7be917f35514a16524b by Guido van Rossum in 
branch 'master':
bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21021)
https://github.com/python/cpython/commit/9d197c7d48147a9ea2f7f7be917f35514a16524b


--

___
Python tracker 

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



[issue41076] Pre-feed the parser with the f-string expression location

2020-06-27 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


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



[issue40967] asyncio.Task.all_tasks() and asyncio.Task.current_task() must be removed in 3.9

2020-06-27 Thread Kyle Stanley


Kyle Stanley  added the comment:

> With beta 4 coming in 2 days it would perhaps good to choose now whether this 
> must be done for 3.9 or 3.10

Agreed. I'm definitely leaning towards 3.10 with it being decently well into 
the beta, but I'll try to bring this to Yury's attention to make a final 
decision on the matter. Optimally, we want to do removals before the beta so 
that users can prepare accordingly rather than deal with breakage in the final 
release.

--

___
Python tracker 

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



[issue41076] Pre-feed the parser with the f-string expression location

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset dab533d0ee067159812d4ea51f6fbbb1bd37d8b7 by Pablo Galindo in 
branch '3.9':
[3.9] bpo-41076: Pre-feed the parser with the f-string expression location 
(GH-21054) (GH-21190)
https://github.com/python/cpython/commit/dab533d0ee067159812d4ea51f6fbbb1bd37d8b7


--

___
Python tracker 

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



[issue41076] Pre-feed the parser with the f-string expression location

2020-06-27 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +20344
pull_request: https://github.com/python/cpython/pull/21190

___
Python tracker 

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



[issue41076] Pre-feed the parser with the f-string expression location

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 1f0f4abb110b9fbade6175842b6a26ab0b8df6dd by Lysandros Nikolaou in 
branch 'master':
bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054)
https://github.com/python/cpython/commit/1f0f4abb110b9fbade6175842b6a26ab0b8df6dd


--

___
Python tracker 

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



[issue41131] Augment random.choices() with the alias method

2020-06-27 Thread Raymond Hettinger


Change by Raymond Hettinger :


Added file: https://bugs.python.org/file49270/choices_proposal.py

___
Python tracker 

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



[issue41131] Augment random.choices() with the alias method

2020-06-27 Thread Raymond Hettinger


Change by Raymond Hettinger :


Removed file: https://bugs.python.org/file49267/choices_proposal.py

___
Python tracker 

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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 102ca529ef5d45b9ef70a341705ddf2577914135 by Pablo Galindo in 
branch '3.9':
[3.9] bpo-40769: Allow extra surrounding parentheses for invalid annotated 
assignment rule (GH-20387) (GH-21186)
https://github.com/python/cpython/commit/102ca529ef5d45b9ef70a341705ddf2577914135


--

___
Python tracker 

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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-06-27 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



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

2020-06-27 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 15.0 -> 16.0
pull_requests: +20343
pull_request: https://github.com/python/cpython/pull/21189

___
Python tracker 

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



[issue31590] CSV module incorrectly treats escaped newlines as new records if unquoted

2020-06-27 Thread Zackery Spytz


Zackery Spytz  added the comment:

Python 2 is EOL, so I think this issue should be closed.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue41084] Signify that a SyntaxError comes from an fstring in the error message

2020-06-27 Thread miss-islington


miss-islington  added the comment:


New changeset cb0dc52d37a5cc561ad39bc034afe7db9c461768 by Miss Islington (bot) 
in branch '3.9':
bpo-41084: Adjust message when an f-string expression causes a SyntaxError 
(GH-21084)
https://github.com/python/cpython/commit/cb0dc52d37a5cc561ad39bc034afe7db9c461768


--

___
Python tracker 

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



[issue41084] Signify that a SyntaxError comes from an fstring in the error message

2020-06-27 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +20342
pull_request: https://github.com/python/cpython/pull/21188

___
Python tracker 

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



[issue41084] Signify that a SyntaxError comes from an fstring in the error message

2020-06-27 Thread Eric V. Smith


Eric V. Smith  added the comment:

AFAIK, we don't guarantee the stability of error messages, so I think 
backporting is fine. It's all the better that this is just prefixing something 
to an existing error message.

--

___
Python tracker 

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



[issue41132] F-String parser uses raw allocator

2020-06-27 Thread miss-islington


miss-islington  added the comment:


New changeset 749d3bc04177ff9e2ddfd58d919b84cb4f6cf894 by Lysandros Nikolaou in 
branch '3.8':
[3.8] bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173) 
(GH-21184)
https://github.com/python/cpython/commit/749d3bc04177ff9e2ddfd58d919b84cb4f6cf894


--

___
Python tracker 

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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-06-27 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +20341
pull_request: https://github.com/python/cpython/pull/21186

___
Python tracker 

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



[issue40967] asyncio.Task.all_tasks() and asyncio.Task.current_task() must be removed in 3.9

2020-06-27 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

With beta 4 coming in 2 days it would perhaps good to choose now whether this 
must be done for 3.9 or 3.10

--

___
Python tracker 

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



[issue41132] F-String parser uses raw allocator

2020-06-27 Thread miss-islington


miss-islington  added the comment:


New changeset 5193d0a665eb0944faae9fb20e2062cea0dc02e7 by Lysandros Nikolaou in 
branch '3.9':
[3.9] bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173) 
(GH-21183)
https://github.com/python/cpython/commit/5193d0a665eb0944faae9fb20e2062cea0dc02e7


--
nosy: +miss-islington

___
Python tracker 

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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset c8f29ad986f8274fc5fbf889bdd2a211878856b9 by Batuhan Taskaya in 
branch 'master':
bpo-40769: Allow extra surrounding parentheses for invalid annotated assignment 
rule (GH-20387)
https://github.com/python/cpython/commit/c8f29ad986f8274fc5fbf889bdd2a211878856b9


--

___
Python tracker 

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



[issue41084] Signify that a SyntaxError comes from an fstring in the error message

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I would say yes unless someone sees an obvious impediment

--

___
Python tracker 

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



[issue41132] F-String parser uses raw allocator

2020-06-27 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


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



[issue41132] F-String parser uses raw allocator

2020-06-27 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
pull_requests: +20340
pull_request: https://github.com/python/cpython/pull/21184

___
Python tracker 

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



[issue41132] F-String parser uses raw allocator

2020-06-27 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
pull_requests: +20339
pull_request: https://github.com/python/cpython/pull/21183

___
Python tracker 

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



[issue41084] Signify that a SyntaxError comes from an fstring in the error message

2020-06-27 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

Should we maybe backport this to 3.9 as well?

--

___
Python tracker 

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



[issue41132] F-String parser uses raw allocator

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 6dcbc2422de9e2a7ff89a4689572d84001e230b2 by Lysandros Nikolaou in 
branch 'master':
bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173)
https://github.com/python/cpython/commit/6dcbc2422de9e2a7ff89a4689572d84001e230b2


--

___
Python tracker 

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



[issue41144] IDLE: raises ImportError when opening special modules

2020-06-27 Thread E. Paine


Change by E. Paine :


--
assignee:  -> terry.reedy
components: +IDLE
versions: +Python 3.10, 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



[issue41144] IDLE: raises ImportError when opening special modules

2020-06-27 Thread E. Paine


Change by E. Paine :


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

___
Python tracker 

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



[issue41144] IDLE: raises ImportError when opening special modules

2020-06-27 Thread E. Paine


New submission from E. Paine :

When opening special modules (such as os.path) through the "Open Module" 
dialog, an ImportError is raised. The fix is to catch this error and retry the 
loader call without the "name" argument (hence opening the true file).

--
messages: 372469
nosy: epaine, taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: raises ImportError when opening special modules

___
Python tracker 

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



[issue41123] Remove Py_UNICODE APIs except PEP 623

2020-06-27 Thread Inada Naoki


Change by Inada Naoki :


--
pull_requests: +20337
pull_request: https://github.com/python/cpython/pull/21181

___
Python tracker 

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



[issue41123] Remove Py_UNICODE APIs except PEP 623

2020-06-27 Thread Inada Naoki


Inada Naoki  added the comment:

> a) Can we replace 4.0 with 3.10 and remove them in 3.10?
> b) Or should we replace 4.0 with 3.11 and wait one more year?

I chose this because they are deprecated since 3.3, and Py_DEPRECATED is used 
since 3.6.

--

___
Python tracker 

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



[issue41063] Avoid using the locale encoding for open() in tests

2020-06-27 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
dependencies: +distutils uses the locale encoding for the .pypirc file

___
Python tracker 

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



[issue41143] distutils uses the locale encoding for the .pypirc file

2020-06-27 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

I have not found any mention about the encoding of .pypirc files. Currently 
distutils uses the locale encoding for reading and writing them. It makes them 
potentially nonportable if they contain non-ASCII data (not sure if it is 
possible) and depending on the user settings.

I think that if the only ASCII content is allowed, it would be safer to use 
explicit ASCII encoding. If non-ASCII content is allowed, then it may be worth 
always to use UTF-8. What do you think?

--
components: Distutils
messages: 372467
nosy: alexis, dstufft, eric.araujo, lemburg, paul.moore, serhiy.storchaka, tarek
priority: normal
severity: normal
status: open
title: distutils uses the locale encoding for the .pypirc file

___
Python tracker 

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



[issue41142] msilib.CAB doesnot support non-ASCII files

2020-06-27 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

There are several problems with _msi.FCICreate() used to create the CAB file. 
It encodes the CAB names and added file names to UTF-8 and then use them as 
encoded with the local encoding. So you cannot create a CAB file in a directory 
with non-ASCII name or add files from a directory with non-ASCII name. This is 
a Python 3 regression.

Two possible solutions:

1. Encode paths with the locale encoding. It will add support for paths 
encodable with the locale encoding.

2. Encode them to UTF-8, but use a wrapper for opening file which converts the 
path from UTF-8 to UTF-16 and uses the Unicode variant of _open(). It will 
support arbitrary names.

--
components: Windows
messages: 372466
nosy: paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: msilib.CAB doesnot support non-ASCII files
type: enhancement
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



[issue41141] remove unneeded handling of '.' and '..' from patlib.Path.iterdir()

2020-06-27 Thread Sergey Fedoseev


Change by Sergey Fedoseev :


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

___
Python tracker 

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



[issue41141] remove unneeded handling of '.' and '..' from patlib.Path.iterdir()

2020-06-27 Thread Sergey Fedoseev


New submission from Sergey Fedoseev :

Currently patlib.Path.iterdir() filters out '.' and '..'. 
It's unneeded since patlib.Path.iterdir() uses os.listdir() under the hood, 
which returns neither '.' nor '..'.
https://docs.python.org/3/library/os.html#os.listdir

--
components: Library (Lib)
messages: 372465
nosy: sir-sigurd
priority: normal
severity: normal
status: open
title: remove unneeded handling of '.' and '..' from patlib.Path.iterdir()

___
Python tracker 

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



[issue41132] F-String parser uses raw allocator

2020-06-27 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think backporting to 3.8 would be okay.

--

___
Python tracker 

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



[issue41063] Avoid using the locale encoding for open() in tests

2020-06-27 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
dependencies: +cgi uses the locale encoding for log files, cgitb uses the 
locale encoding for log files

___
Python tracker 

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



[issue41140] cgitb uses the locale encoding for log files

2020-06-27 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

If logdir is not None the exception handler in cgitb tries to save the 
description of an error in that directory using the locale encoding. It will 
fail if the description contains non-encodable characters.

We should either use corresponding error handlers (e.g. 'xmlcharrreplace' for 
html and 'backslashreplace' for text) for handling encoding errors or use the 
UTF-8 encoding.

--
components: Library (Lib)
messages: 372463
nosy: Rhodri James, ethan.furman, serhiy.storchaka, vinay.sajip
priority: normal
severity: normal
status: open
title: cgitb uses the locale encoding for log files
type: behavior
versions: Python 3.10, 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



[issue41139] cgi uses the locale encoding for log files

2020-06-27 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The cgi module provides undocumented feasibility for logging. cgi.log() formats 
log message and appends it to the log file with name specified by cgi.logfile 
if it was not empty before the first use of cgi.log().

One of problems is that it uses the locale encoding for log file. Therefore the 
result depends on the locale at the moment of the first use of cgi.log().

We can fix this by using some fixed encoding (UTF-8). Or maybe just remove this 
undocumented feature.

--
messages: 372462
nosy: Rhodri James, ethan.furman, serhiy.storchaka, vinay.sajip
priority: normal
severity: normal
status: open
title: cgi uses the locale encoding for log files
type: behavior
versions: Python 3.10, 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



[issue41063] Avoid using the locale encoding for open() in tests

2020-06-27 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
dependencies: +trace CLI reads source files using the locale encoding

___
Python tracker 

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



[issue41138] trace CLI reads source files using the locale encoding

2020-06-27 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue41138] trace CLI reads source files using the locale encoding

2020-06-27 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The command line interface of the trace module reads source files using the 
locale encoding.

The following file fixes this by reading a file in binary mode (compile() 
detects the encoding). It fixes also a resource warning when save counts to a 
file.

--
components: Library (Lib)
messages: 372461
nosy: belopolsky, serhiy.storchaka
priority: normal
severity: normal
status: open
title: trace CLI reads source files using the locale encoding
type: behavior
versions: Python 3.10, 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



[issue41123] Remove Py_UNICODE APIs except PEP 623

2020-06-27 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 20a79021753ab26a5989e6d3397160e52973870e by Inada Naoki in branch 
'master':
bpo-41123: Remove Py_UNICODE_str* functions (GH-21164)
https://github.com/python/cpython/commit/20a79021753ab26a5989e6d3397160e52973870e


--

___
Python tracker 

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



[issue41137] pdb uses the locale encoding for .pdbrc

2020-06-27 Thread Inada Naoki


Inada Naoki  added the comment:

+1 for UTF-8 always.

--
nosy: +inada.naoki

___
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-06-27 Thread miss-islington


miss-islington  added the comment:


New changeset 027bba2eada175358a7f34cad155b25e1b805082 by Miss Islington (bot) 
in branch '3.8':
bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)
https://github.com/python/cpython/commit/027bba2eada175358a7f34cad155b25e1b805082


--

___
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-06-27 Thread miss-islington


miss-islington  added the comment:


New changeset 1a0c581a94892fbd8fa70905130776ef7a059d97 by Miss Islington (bot) 
in branch '3.9':
bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)
https://github.com/python/cpython/commit/1a0c581a94892fbd8fa70905130776ef7a059d97


--

___
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-06-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20333
pull_request: https://github.com/python/cpython/pull/21175

___
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-06-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20334
pull_request: https://github.com/python/cpython/pull/21176

___
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-06-27 Thread Ned Deily


Ned Deily  added the comment:


New changeset 2f168c6356f92c38ae7751d2faf2b266a9356229 by Ned Deily in branch 
'master':
bpo-41100: clarify NEWS item about macOS 11 support (GH-21174)
https://github.com/python/cpython/commit/2f168c6356f92c38ae7751d2faf2b266a9356229


--

___
Python tracker 

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



[issue41063] Avoid using the locale encoding for open() in tests

2020-06-27 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
dependencies: +pdb uses the locale encoding for .pdbrc

___
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-06-27 Thread Ned Deily


Change by Ned Deily :


--
pull_requests: +20332
pull_request: https://github.com/python/cpython/pull/21174

___
Python tracker 

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



[issue41131] Augment random.choices() with the alias method

2020-06-27 Thread Raymond Hettinger


Change by Raymond Hettinger :


Removed file: https://bugs.python.org/file49268/choices_binomial.py

___
Python tracker 

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



[issue41131] Augment random.choices() with the alias method

2020-06-27 Thread Raymond Hettinger


Change by Raymond Hettinger :


Added file: https://bugs.python.org/file49269/choices_binomial.py

___
Python tracker 

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



[issue41132] F-String parser uses raw allocator

2020-06-27 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

Ok, I've opened a PR. Should be backport this to previous versions as well?

--

___
Python tracker 

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



[issue41132] F-String parser uses raw allocator

2020-06-27 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


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

___
Python tracker 

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



[issue41137] pdb uses the locale encoding for .pdbrc

2020-06-27 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

pdb uses the locale encoding when read the .pdbrc file. It means that the 
current locale of the debugged program affects it. It also makes .pdbrc not 
portable between different platforms.

It is usually not an issue, because the .pdbrc file usually contains ASCII-only 
data. But maybe always use UTF-8 for .pdbrc files?

--
components: Library (Lib)
messages: 372454
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: pdb uses the locale encoding for .pdbrc

___
Python tracker 

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



[issue41129] Python extension modules fail to build on Mac 10.15.1 (Catalina)

2020-06-27 Thread Ned Deily


Ned Deily  added the comment:

To be honest, I've never seen a failure quite like that before so thanks for 
that! A couple of observations: you appear to be using an old version of Xcode 
(11.0.0) that may not be fully supported on 10.15.x. So I would try upgrading 
to the latest released Xcode for 10.15, which is Xcode 11.5 at the moment or 
make sure your copy of the Command Like Tools is really up to date (you don't 
need a full-blown Xcode to build python). xcode-select -p should show which you 
have selected.

You should see one of the following:

$ cc --version

Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

or

Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

But that may be a secondary matter. The most interesting things in the snippet 
you display are the paths to the header files. for example:

/System/Volumes/Data/mathworks/devel/sandbox/aflewell/python38_source/Python-3.8.2

which are absolute paths that suggest the build process you are using is 
somehow using macOS sandboxes. Yet the paths to the actual source file being 
compiled amd its output file are unprefixed relative paths. So I suggest you 
figure out why those sandbox paths are in there.  A straightforward build from 
within the source tarball expanded in a non-sandboxed directory, for example 
under $HOME or /tmp, should work just fine.

Keep in mind that in any case you will still run into some missing modules like 
_ssl and _hashlib unless you supply copies of third-party libraries that macOS 
does not or no longer provides; the Python Developer's Guide has some 
suggestions (https://devguide.python.org/setup/#macos-and-os-x).

--
resolution:  -> works for me
status: open -> pending

___
Python tracker 

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



[issue41063] Avoid using the locale encoding for open() in tests

2020-06-27 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
dependencies: +argparse uses default encoding when read arguments from file

___
Python tracker 

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



[issue41136] argparse uses default encoding when read arguments from file

2020-06-27 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The fromfile_prefix_chars option allows you to read arguments from file. But 
open() without explicit encoding is used for this. Therefore the result is 
depending on the current locale or the PYTHONIOENCODING environment variable. 
On Linux this is rare a problem, because UTF-8 is a common locale encoding, but 
on Windows the locale encoding is usually 8-bit and may even be not able to 
encode all file names.

I think we need a new option to specify the encoding for files from which 
arguments are read.

--
components: Library (Lib)
messages: 372452
nosy: rhettinger, serhiy.storchaka
priority: normal
severity: normal
status: open
title: argparse uses default encoding when read arguments from file
type: enhancement
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



[issue41093] TCPServer's server_forever() shutdown immediately when calling shutdown()

2020-06-27 Thread Ned Deily


Change by Ned Deily :


--
nosy:  -ned.deily
versions: +Python 3.10 -Python 3.7

___
Python tracker 

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