[issue44184] crash on windows invoking flake8

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: It's reproducible. I reproduced it on my Windows 10 with Python 3.10.0b1 -- ___ Python tracker ___ _

[issue44185] mock_open file handle __exit__ does not call close

2021-05-20 Thread William Sjoblom
New submission from William Sjoblom : A common testing scenario is assuring that opened files are closed. Since unittest.mock.mock_open() can be used as a context manager, it would be reasonable to expect its __exit__ to invoke close so that one can easily assert that the file was closed, reg

[issue44163] IDLE ValueError in HyperParser

2021-05-20 Thread Tal Einat
Tal Einat added the comment: I took a look but can't see any obvious bugs there. ISTM that's a rather harmless edge case. I can't think of anything to do with this except to close for now, and reopen if this pops up again. Thinking a few steps forward, to make sense of such issues, it would

[issue44185] mock_open file handle __exit__ does not call close

2021-05-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue43295] datetime.strptime emits IndexError on parsing 'z' as %z

2021-05-20 Thread STINNER Victor
STINNER Victor added the comment: It seems like the issue is fixed, I close it. -- nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44166] Make IndexError messages for list more informative

2021-05-20 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue44186] TimedRotatingFileHandler overwrite log

2021-05-20 Thread Eiji Ito
New submission from Eiji Ito : If you use TimedRotatingFileHandler and specify when='midnight',atTime, the log will always rollover if you start it at the same time as atTime. For example, if atTime='00:00:00', and you run a script that outputs logs using the logger library twice at 00:00:00,

[issue44169] Add HTTPS support to http.server

2021-05-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This is already proposed in issue 40990 for which I am working on a PR. -- nosy: +remi.lapeyre versions: +Python 3.11 -Python 3.9 ___ Python tracker ___

[issue36160] Multiple errors in test_site.py on sysconfig._CONFIG_VARS.clear() if run on its own

2021-05-20 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Pytho

[issue36160] Multiple errors in test_site.py on sysconfig._CONFIG_VARS.clear() if run on its own

2021-05-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24866 pull_request: https://github.com/python/cpython/pull/26262 ___ Python tracker _

[issue36160] Multiple errors in test_site.py on sysconfig._CONFIG_VARS.clear() if run on its own

2021-05-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +24867 pull_request: https://github.com/python/cpython/pull/26263 ___ Python tracker ___ __

[issue36160] Multiple errors in test_site.py on sysconfig._CONFIG_VARS.clear() if run on its own

2021-05-20 Thread Irit Katriel
Irit Katriel added the comment: New changeset b9258b03b864520525176f927156b85a532a9d7c by Miss Islington (bot) in branch '3.9': bpo-36160: Fix test_site so that it can run independently of other tests (GH-12131) (GH-26263) https://github.com/python/cpython/commit/b9258b03b864520525176f927156

[issue36160] Multiple errors in test_site.py on sysconfig._CONFIG_VARS.clear() if run on its own

2021-05-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36160] Multiple errors in test_site.py on sysconfig._CONFIG_VARS.clear() if run on its own

2021-05-20 Thread Irit Katriel
Irit Katriel added the comment: New changeset 4389711ce935bef3844dd24d7fe8460a5fef62e6 by Miss Islington (bot) in branch '3.10': bpo-36160: Fix test_site so that it can run independently of other tests (GH-12131) (GH-26262) https://github.com/python/cpython/commit/4389711ce935bef3844dd24d7fe

[issue44186] TimedRotatingFileHandler overwrite log

2021-05-20 Thread Eiji Ito
Change by Eiji Ito : Added file: https://bugs.python.org/file50053/log.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-20 Thread Mark Bell
Mark Bell added the comment: Thank you very much for confirming these test cases. Using these I believe that I have now been able to complete a patch that would implement this feature. The PR is available at https://github.com/python/cpython/pull/26222. As I am a first-time contributor, plea

[issue44187] Implement infrastructure for quickening and specializing

2021-05-20 Thread Mark Shannon
New submission from Mark Shannon : As described in PEP 659 (Specializing Adaptive Interpreter) the first part of implementing specialization is to implement the machinery to do the quickening. Conceptually, this is fairly simple: add a new field to the code object, which points to the first i

[issue44187] Implement infrastructure for quickening and specializing

2021-05-20 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +24868 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26264 ___ Python tracker ___ ___

[issue44099] [C API] Introduce a new slot in PyModuleDef to hold the classes

2021-05-20 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: See also bpo-42376 -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43905] dataclasses.astuple does deepcopy on all fields

2021-05-20 Thread Erik Carstensen
Erik Carstensen added the comment: Would it make sense to make dataclasses iterable, like so? def __iter__(self): return (getattr(self, field.name) for field in fields(self)) With that in place, deprecating astuple would maybe be less disruptive? -- _

[issue44177] Unable to get the else while parsing through AST module

2021-05-20 Thread Bikram Singh Mehra
Bikram Singh Mehra added the comment: Hi Eric, I have tried the action plan suggested by you in your last comment, but below are my logs and still I am unable to get lineno for else statement. The respective line no for each line are below 1 2 if num > 0: 3 print("Positive n

[issue44188] ThreadPoolExecutor unbalanced semaphore count

2021-05-20 Thread Bennie Swart
New submission from Bennie Swart : The concurrent.futures.ThreadPoolExecutor class, which is the default asyncio executor, introduced the _idle_semaphore field in version 3.8 in order to track idle threads so they can be reused before increasing the pool size unnecessarily. This semaphore cou

[issue44177] Unable to get the else while parsing through AST module

2021-05-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue44188] ThreadPoolExecutor unbalanced semaphore count

2021-05-20 Thread Bennie Swart
Change by Bennie Swart : -- keywords: +patch pull_requests: +24869 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26265 ___ Python tracker ___ ___

[issue44177] Unable to get the else while parsing through AST module

2021-05-20 Thread Eric V. Smith
Eric V. Smith added the comment: There's no actual code associated with the "else" line, so there's no way to get the line number. dis.dis(sample_data) might give you some insight. Since this all works as designed, I'm going to close this issue. You might get more help on StackOverflow or si

[issue43905] dataclasses.astuple does deepcopy on all fields

2021-05-20 Thread Eric V. Smith
Eric V. Smith added the comment: No, iteration is explicitly a non-goal of PEP 557. See the section on namedtuple for why: https://www.python.org/dev/peps/pep-0557/#why-not-just-use-namedtuple -- ___ Python tracker

[issue44189] multiprocessing AF_PIPE name format is slightly confusing in the docs

2021-05-20 Thread Antony Lee
New submission from Antony Lee : https://docs.python.org/3/library/multiprocessing.html#address-formats currently states > An 'AF_PIPE' address is a string of the form r'\.\pipe{PipeName}'. To use > Client() to connect to a named pipe on a remote computer called ServerName > one should use a

[issue40990] Make http.server support SSL

2021-05-20 Thread Fred
Fred added the comment: It could look for a existing certificate in a well-known location, and could fallback to an self-signed certificate that could be shipped with Python. -- nosy: +Fred ___ Python tracker _

[issue44099] [C API] Introduce a new slot in PyModuleDef to hold the classes

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I'm not sure if bpo-42376 is same as this one. Yes the basic idea to provide abstraction and make it easy for the users to add type is same but the approaches suggested are completely different. I propose a new structure member in PyModuleDef be added where

[issue44099] [C API] Introduce a new slot in PyModuleDef to hold the classes

2021-05-20 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: How will you differentiate which types should be added to the module dict and which not to add. How will you map the instantiated type objects to the respective module state members? -- ___ Python tracker

[issue44099] [C API] Introduce a new slot in PyModuleDef to hold the classes

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: In PyModule_Create -> PyModule_Create2 -> SomeFunc... it would loop through the array of object addresses and call PyModule_AddType on each and every one of them. This will not change behavior or control flow only implement a handy way. This I've found very

[issue44099] [C API] Introduce a new slot in PyModuleDef to hold the classes

2021-05-20 Thread Christian Heimes
Christian Heimes added the comment: I suggest you try to implement your proposal first before you post it. (spoilers: you will notice that it doesn't work for non-trivial heap types.) -- nosy: +christian.heimes ___ Python tracker

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-05-20 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24870 pull_request: https://github.com/python/cpython/pull/26266 ___ Python tracker ___

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-20 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +24871 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/26267 ___ Python tracker ___ _

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Anthony Sottile
Anthony Sottile added the comment: everything in this virtualenv is pure python so I don't think it's a faulty third party extension module -- ___ Python tracker ___

[issue44185] mock_open file handle __exit__ does not call close

2021-05-20 Thread Pierre Ossman
Change by Pierre Ossman : -- nosy: +CendioOssman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue44190] Dictionary assignment shorthand

2021-05-20 Thread David Hariri
New submission from David Hariri : In some languages, one may declare a dictionary's key and its value like so: ``` foo = "bar" my_dict = { foo } >> { "foo" : "bar" } ``` In Python, one must instead write: ``` foo = "bar" my_dict = { "foo": foo } >> { "foo" : "bar" } ``` I humbly sugge

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Christian Heimes
Christian Heimes added the comment: Pablo, Steve, please take a look. -- assignee: -> steve.dower keywords: +3.10regression nosy: +pablogsal priority: normal -> deferred blocker versions: +Python 3.11 ___ Python tracker

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-05-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +24873 pull_request: https://github.com/python/cpython/pull/26269 ___ Python tracker ___ __

[issue44190] Dictionary assignment shorthand

2021-05-20 Thread Christian Heimes
Christian Heimes added the comment: Your proposal is not possible in Python. The object does not know under which variable names it is accessible. The closest you can get is this: >>> dict( ... foo="bar" ... ) {'foo': 'bar'} -- nosy: +christian.heimes ___

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-20 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +24872 pull_request: https://github.com/python/cpython/pull/26268 ___ Python tracker ___ _

[issue44099] [C API] Introduce a new slot in PyModuleDef to hold the classes

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Yes. It's becoming hard to implement both static and heap types using one struct member. Since this is all about implementing a helping hand when it comes to types I think two different members one for static and another one for heap would be fine. And if s

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-05-20 Thread miss-islington
miss-islington added the comment: New changeset 36843f716df7cfa67ea7cd858acb0df1fc5e980e by Miss Islington (bot) in branch '3.10': bpo-38820: Test with OpenSSL 3.0.0-alpha17 (GH-26266) https://github.com/python/cpython/commit/36843f716df7cfa67ea7cd858acb0df1fc5e980e --

[issue44187] Implement infrastructure for quickening and specializing

2021-05-20 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue44099] [C API] Introduce a new slot in PyModuleDef to hold the classes

2021-05-20 Thread STINNER Victor
STINNER Victor added the comment: See also https://discuss.python.org/t/define-module-constants-in-pymoduledef/5749 -- nosy: +vstinner ___ Python tracker ___

[issue44191] Getting an ImportError DLL load failed while importing _ssl

2021-05-20 Thread Luis González
New submission from Luis González : Good morning everyone. First of all, I would like apologize for my poor english. I'm a very newby programming in python. I'm getting an ImportError DLL load failed while importing _ssl. Can't find _ssl.pyd, from my EXE file created by de sentence "Python se

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: deferred blocker -> release blocker ___ Python tracker ___ ___ Python-bugs-list maili

[issue44191] Getting an ImportError DLL load failed while importing _ssl

2021-05-20 Thread Christian Heimes
Christian Heimes added the comment: py2exe is a third party tool and not maintained by Python core development. Please use resources at http://www.py2exe.org/ to get help, e.g. issue tracker https://github.com/py2exe/py2exe -- ___ Python tracker

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Is b02ba019e16f7c156ec63c2ea05c627a0fe86c48 the correct commit? I cannot checkout this: ❯ git clone https://github.com/pycqa/pyflakes Cloning into 'pyflakes'... remote: Enumerating objects: 2651, done. remote: Counting objects: 100% (53/53), done. remo

[issue41318] Better error message of "Cannot recover from stack overflow."

2021-05-20 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce the error with your code on 3.11. It could be that recent changes in recursion handling fixed this case. As I mentioned on the PR, adding this to the error message can make it even more confusing because this is not the only scenario

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Anthony Sottile
Anthony Sottile added the comment: ah sorry, the branch got squash-merged this is the equivalent revision after the merge: f3b1b44bf3d2d5927004fa1c2fcf1ab2def816b9 -- ___ Python tracker ___

[issue44192] Annotations, Inheritance and Circular Reference

2021-05-20 Thread ReOb
New submission from ReOb : Basically, I have: ``` class Base: _sub: list[Sub] class Sub: _parent: Base ``` What creates a circular reference. It could be solved doing: ``` class Sub: pass class Base: _sub: list[Sub] class Sub: _parent: Base ``` But in the annotation,

[issue44192] Annotations, Inheritance and Circular Reference

2021-05-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Ammar Askar
Ammar Askar added the comment: Can recreate on the latest 3.10 checkout, taking a look. -- nosy: +ammar2 ___ Python tracker ___ ___

[issue44184] crash on windows invoking flake8

2021-05-20 Thread STINNER Victor
STINNER Victor added the comment: Where does flake8.exe come from? Is it created by pip? Or by Python? Is it part of the flake8 project? -- nosy: +vstinner ___ Python tracker ___

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Anthony Sottile
Anthony Sottile added the comment: vstinner I showed the directions above, but here they are again: venv\Scripts\pip install flake8==3.6.0 venv\Scripts\pip install -e . --no-deps # ignore the conflict, but fix pyflakes -- ___ Python tracker

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: This is a flake8 error not tox error. Though if it was a complete flake8 error then it would fail in all Python. But it only fails in 3.10 (don't know about 3.11 because haven't tested it yet.) -- ___ Python trac

[issue44193] socket line 46 import _socket Import Error

2021-05-20 Thread Joshex
New submission from Joshex : I assume someone has already fixed this problem, as I am using a very old version of python compatible with my version of blender. Though after searching, I found results for the same error message only a month or 2 ago. anyways, my version of python 2.6.2 is out

[issue44193] socket line 46 import _socket Import Error

2021-05-20 Thread Joshex
Joshex added the comment: sorry: edit, it only appears on my 64 bit computer -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Steve Stagg
Change by Steve Stagg : -- nosy: +stestagg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue38671] pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not exist

2021-05-20 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24874 pull_request: https://github.com/python/cpython/pull/26270 ___ Python tracker ___ _

[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-05-20 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24875 pull_request: https://github.com/python/cpython/pull/26270 ___ Python tracker ___ _

[issue36203] PyWeakref_NewRef docs are misleading

2021-05-20 Thread Irit Katriel
Irit Katriel added the comment: Please add unit tests to the patch. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker _

[issue44193] socket line 46 import _socket Import Error

2021-05-20 Thread Joshex
Joshex added the comment: Same error when importing Tkinter it looks like any python module that tries to import a DLL fails because it forgets it should be looking for a 64 bit dll and instead goes looking for a 32 bit DLL and when it finds out it's 64 it throws a tantrum. --

[issue44193] socket line 46 import _socket Import Error

2021-05-20 Thread Joshex
Joshex added the comment: LOL! the issue does not happen if I uninstall the 64 bit python install the 32 bit python and change the environment variables for the python path to the 32 bit folders. so it's a problem with 64 bit python. good thing I have the 32 bit as a backup. -- __

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Ammar Askar
Ammar Askar added the comment: The segfault seems to be occuring on typeobject.c:1456 during interpreter finalization: if (type->tp_flags & Py_TPFLAGS_HEAPTYPE && !(base->tp_flags & Py_TPFLAGS_HEAPTYPE)) where `type` seems to have already been deallocated. Here's the stack trace:

[issue44194] Folding ''.join() into f-strings

2021-05-20 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : Since strings are immutable types, we could fold some operation on top of them. Serhiy has done some work on issue 28307 regarding folding `str % args` combination, which I think we can extend even further. One simple example that I daily encounter is tha

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Steve Stagg
Steve Stagg added the comment: I've found that it's reproducible if you run flake8 on a file that just contains: `a.b` whereas: `a` and `a(b)` don't seem to trigger the error. The object being cleaned up when the segfault appears, seems to be a subclass of ast.AST -- __

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Given how hairy finding these GC errors is, I would recommend to bisect this so we can trim down the search to some commit, although my bet is some of the heap type conversions. -- ___ Python tracker

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-20 Thread Filipe Laíns
New submission from Filipe Laíns : 7f7e706d78ab968a1221c6179dfdba714860bd12 introduced the files() api and documented a importlib.abc.TraversableReader protocol, but it did not implement it. This class is documented and marked as introduced in 3.9, but it's actually missing. -- messa

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, why this doesn't happen on Linux? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2021-05-20 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-20 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +24876 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26271 ___ Python tracker ___

[issue42022] Allow ensurepip to work without bundled wheels

2021-05-20 Thread Filipe Laíns
Filipe Laíns added the comment: Closing as the new --with-wheel-pkg-dir option provides an alternative mechanism. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker __

[issue44196] Document that importlib.abc.Traversable's methods should raise FileNotFoundError

2021-05-20 Thread Filipe Laíns
New submission from Filipe Laíns : ResourceReader used to have this requirement, Traversable does not. We cannot add a requirement as there might be users not doing this, but we can ask new users to do so. We should document that FileNotFoundError should be raised if a file is not found, but

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-20 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +24877 pull_request: https://github.com/python/cpython/pull/26272 ___ Python tracker ___ _

[issue44196] Document that importlib.abc.Traversable's methods should raise FileNotFoundError

2021-05-20 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +24878 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26272 ___ Python tracker ___

[issue36203] PyWeakref_NewRef docs are misleading

2021-05-20 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- pull_requests: +24879 pull_request: https://github.com/python/cpython/pull/26273 ___ Python tracker ___ ___

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-20 Thread Ned Deily
Ned Deily added the comment: New changeset c723d5191110f99849f7b0944820f6c3cd5f7747 by Senthil Kumaran in branch '3.7': [3.7] bpo-43882 - Mention urllib.parse changes in Whats New section for 3.7.11 (GH-26267) https://github.com/python/cpython/commit/c723d5191110f99849f7b0944820f6c3cd5f7747

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-20 Thread Ned Deily
Ned Deily added the comment: New changeset 6f743e7a4da904f61dfa84cc7d7385e4dcc79ac5 by Senthil Kumaran in branch '3.6': [3.6] bpo-43882 - Mention urllib.parse changes in Whats New section for 3.6.14 (GH-26268) https://github.com/python/cpython/commit/6f743e7a4da904f61dfa84cc7d7385e4dcc79ac5

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-20 Thread Ned Deily
Ned Deily added the comment: Thanks, Senthil and Greg! The updates for 3.7 and 3.6 are now merged. Is there anything else that needs to be done for this issue or can it now be closed? -- priority: release blocker -> high resolution: fixed -> stage: patch review -> commit review

[issue44169] Add HTTPS support to http.server

2021-05-20 Thread Ned Deily
Change by Ned Deily : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Make http.server support SSL ___ Python tracker ___ __

[issue44126] Support cross-compiling of cpython modules using setuptools

2021-05-20 Thread Jeff Moguillansky
Jeff Moguillansky added the comment: Is it possible to add support for cross-compiling of cpython modules to setuptools? It seems that currently there's some 3rd party solutions like "crossenv" but they don't seem to work with clang / ndk-toolchain for example. -- status: closed -> o

[issue40222] "Zero cost" exception handling

2021-05-20 Thread STINNER Victor
STINNER Victor added the comment: Mark: Can you please document your change on types.CodeType? In: * https://docs.python.org/dev/library/types.html#types.CodeType * https://docs.python.org/dev/whatsnew/3.11.html The change broke the Genshi project: https://github.com/edgewall/genshi/issues/43

[issue44197] [request feature] Itertools extended combinations to limited number of repetition

2021-05-20 Thread latot
New submission from latot : Hi, some time ago I was looking for a function in itertools, actually, the combination functions allow us to have or not repetitions of element, have in consideration that if we allow repetitions there can be any amount of them, no way to limit the number of repeti

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Lets get equivalent whatsnew text into the 3.8 and 3.9 and 3.10 branches before closing it. -- ___ Python tracker ___

[issue44126] Support cross-compiling of cpython modules using setuptools

2021-05-20 Thread Jeff Moguillansky
Change by Jeff Moguillansky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Ammar Askar
Ammar Askar added the comment: The bisect was bizarre to say the least... It points to commit 11159d2c9d6616497ef4cc62953a5c3cc8454afb bpo-43080: pprint for dataclass instances (GH-24389) * Added pprint support for dataclass instances which don't have a custom __repr__. which doesn't touch

[issue44198] Add flags or function in pathlib.Path

2021-05-20 Thread Mikhail
New submission from Mikhail : Hello! This is a very useful feature when a Path-object gets a list (or generator, as it is now) of files/dirs in self.dir, I think. Right now this is the .iterdir() function, but sometimes you only need `dirs` of that path (for example, I really needed the funct

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Steve Stagg
Steve Stagg added the comment: I got the same result from a bisect: 11159d2c9d6616497ef4cc62953a5c3cc8454afb -- ___ Python tracker ___ ___

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Steve Stagg
Steve Stagg added the comment: So, for me, the single line from 11159d that causes the problem is this: pprint.py: import dataclasses as _dataclasses Obviously importing dataclasses here is having some side-effect -- ___ Python tracker

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Ammar Askar
Ammar Askar added the comment: Just to thicken the mystery a bit further, if you comment out import inspect in dataclasses.py, the error also goes away. -- ___ Python tracker __

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: My bet is because this is caused by the AST module using heap typed here. There is probably a missing strong reference somewhere. -- ___ Python tracker _

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm trying to reproduce on Linux but I am unable to make it fail even with the address sanitizer activated :( -- ___ Python tracker _

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FWIW, I'm also unable to reproduce on macOS (so far). -- ___ Python tracker ___ ___ Python-bug

[issue14965] super() and property inheritance behavior

2021-05-20 Thread Will Razen
Will Razen added the comment: @simonzack Your superprop.py doesn't work for multiple inheritance, because you're using __thisclass__.__mro__ in each step instead of the initial object mro -- nosy: +willrazen ___ Python tracker

[issue44163] IDLE ValueError in HyperParser

2021-05-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: For now, I want to just improve the error message and then close. -- ___ Python tracker ___ ___ P

[issue25625] "chdir" Contex manager for pathlib

2021-05-20 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue44184] crash on windows invoking flake8

2021-05-20 Thread STINNER Victor
STINNER Victor added the comment: This bug is really hard to reproduce on Windows. It depends on flake8 is run. It's a random crash in the last GC collection at Python exit. Crash related to AST in interpreter_clear() remains me bpo-41796. Extract of the code: static void interpreter_clear(

  1   2   >