[issue42612] Software Designer

2020-12-09 Thread Deepanshu Garg
New submission from Deepanshu Garg : I am calling and executing python script from C++ code using "PyRun_SimpleFile". This API is being called from windows thread and every thread intializes and finalizes the python interpreter. However, it works fine for single thread but if intiate a

[issue42611] PEP 594

2020-12-09 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Property type hints?

2020-12-09 Thread dn via Python-list
On 10/12/2020 13:06, Paul Bryan wrote: Thanks for the comprehensive response, dn! I guess I'm influenced by data classes here, where the object's attribute type hints are represented by class variable annotations. I'm a great fan of them too - the saving of 'boilerplate code' does it for

[issue42611] PEP 594

2020-12-09 Thread Kyle Stanley
New submission from Kyle Stanley : This issue was created for the purpose of tracking any changes related to PEP 594 (Removing dead batteries from stdlib), and any relevant discussions about the modules being removed. -- components: Library (Lib) messages: 382815 nosy: aeros,

PyCA cryptography 3.3.1 released

2020-12-09 Thread Paul Kehrer
PyCA cryptography 3.3.1 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 2.7,

Re: Python idle did not open even after trying many times

2020-12-09 Thread Terry Reedy
On 12/9/2020 11:08 AM, avinash gaur wrote: Dear Sir/Mam, I am facing a problem with Python Idle. I am unable to open python idle even after clicking on it so many times. I am using Python 3.7 on Windows. What are you clicking on? Did IDLE work before? (If you just installed 3.7, why?) Can

[issue42385] Should enum.auto's behavior be adjusted for StrEnum to return the enum name?

2020-12-09 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +22587 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23727 ___ Python tracker

Re: Unable to download

2020-12-09 Thread Siddarth Adiga
Thank you for your concern. I use windows 10. But I was able to download it. The fifth time I tried, it worked. But then I had a prolem opening Jupyter Notebook, it said "Fatal error in launcher: unable to create process using. The system cannot find the file specified." So I had to download

[issue42517] Enum: do not convert private names into members

2020-12-09 Thread Ethan Furman
Ethan Furman added the comment: New changeset 7cf0aad96d1d20f07d7f0e374885f327c2d5ff27 by Ethan Furman in branch 'master': bpo-42517: [Enum] do not convert private names into members (GH-23722) https://github.com/python/cpython/commit/7cf0aad96d1d20f07d7f0e374885f327c2d5ff27 --

[issue42567] Enum: manually call __init_subclass__ after members are added

2020-12-09 Thread Ethan Furman
Change by Ethan Furman : -- stage: patch review -> backport needed versions: +Python 3.9 ___ Python tracker ___ ___

[issue42567] Enum: manually call __init_subclass__ after members are added

2020-12-09 Thread Ethan Furman
Ethan Furman added the comment: New changeset 6bd94de168b58ac9358277ed6f200490ab26c174 by Ethan Furman in branch 'master': bpo-42567: [Enum] call __init_subclass__ after members are added (GH-23714) https://github.com/python/cpython/commit/6bd94de168b58ac9358277ed6f200490ab26c174

Re: Property type hints?

2020-12-09 Thread Paul Bryan
Thanks for the comprehensive response, dn! I guess I'm influenced by data classes here, where the object's attribute type hints are represented by class variable annotations. On Thu, 2020-12-10 at 07:49 +1300, dn via Python-list wrote: > On 09/12/2020 13:17, Paul Bryan wrote: > > Would this be

[issue39791] New `files()` api from importlib_resources.

2020-12-09 Thread Jason R. Coombs
Jason R. Coombs added the comment: This issue was implemented, just not as fully as I'd have hoped. Still lacking is native support for .files on the built-in package providers and removing the legacy APIs or at least configuring them to rely on the files API, but as far as supplying the

[issue39707] Abstract property setter/deleter implementation not enforced, but documented as such

2020-12-09 Thread Guido van Rossum
Guido van Rossum added the comment: Josh, feel free to submit a PR (make sure it mentions this issue). -- ___ Python tracker ___

[issue39707] Abstract property setter/deleter implementation not enforced, but documented as such

2020-12-09 Thread Josh Rosenberg
Josh Rosenberg added the comment: If this is going to be closed as rejected, I think it still needs some improvement to the documentation. Right now, the docs for abstractproperty (deprecated in favor of combining property and abstractmethod) state: "If only some components are abstract,

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2020-12-09 Thread Ethan Furman
Ethan Furman added the comment: Okay, you convinced me. I would ask two things, though: - use vars() instead of locals() - split the one-liner ;) class Foo(Enum): vars().update({ k: v for k, v in foo_defines.items() if

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2020-12-09 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +22586 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23725 ___ Python tracker

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2020-12-09 Thread Ethan Furman
Change by Ethan Furman : -- stage: -> needs patch type: -> enhancement versions: +Python 3.10 -Python 3.8 ___ Python tracker ___

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-09 Thread Andrei Kulakov
Andrei Kulakov added the comment: I cannot reproduce with 3.9.0, using attached files -- I do not get either 400 or 405; I get "None received" message: ```python3 flask_client.py

[issue31904] Python should support VxWorks RTOS

2020-12-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset d5dcb653176387b72c8630f1a5464571f538a639 by pxinwr in branch 'master': bpo-31904: Define THREAD_STACK_SIZE for VxWorks (GH-23718) https://github.com/python/cpython/commit/d5dcb653176387b72c8630f1a5464571f538a639 --

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22585 pull_request: https://github.com/python/cpython/pull/23724 ___ Python tracker ___

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset a82f63f5af027a0eab0f0812d750b804368cbd25 by Victor Stinner in branch 'master': bpo-32381: Add _PyRun_AnyFileObject() (GH-23723) https://github.com/python/cpython/commit/a82f63f5af027a0eab0f0812d750b804368cbd25 --

[issue41559] Add support for PEP 612 to typing.py

2020-12-09 Thread Guido van Rossum
Guido van Rossum added the comment: I wrote class C(Generic[T, P]): ... and was surprised that C.__parameters__ was (T,) instead of (T, P). -- ___ Python tracker ___

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22584 pull_request: https://github.com/python/cpython/pull/23723 ___ Python tracker ___

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset ca064402079f889226cb107b26b329891431c319 by Victor Stinner in branch 'master': bpo-32381: Remove unused _Py_fopen() function (GH-23711) https://github.com/python/cpython/commit/ca064402079f889226cb107b26b329891431c319 --

[issue40084] HTTPStatus has incomplete dir() listing

2020-12-09 Thread Ethan Furman
Ethan Furman added the comment: New changeset f6d1520219899874d78e7710934c9b21af880f9a by Miss Islington (bot) in branch '3.8': bpo-40084: [Enum] dir() includes member attributes (GH-19219) (GH-22853) https://github.com/python/cpython/commit/f6d1520219899874d78e7710934c9b21af880f9a

[issue42560] Improve Tkinter Documentation

2020-12-09 Thread E. Paine
E. Paine added the comment: @Fredrik, can you comment on when we might expect effbot.org to become available again? (i.e. is it worth us updating the docs to note that its down / changing the link to the Wayback Machine?) -- nosy: +effbot ___

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-12-09 Thread Brandt Bucher
Brandt Bucher added the comment: Yep, looks like that was it. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42560] Improve Tkinter Documentation

2020-12-09 Thread Mason Ginter
Mason Ginter added the comment: Would it then be a good idea to add a link to the archive.org version of effbot? If so how best to add it to the documentation. The only other instances I can find links to archive.org in the documentation reference webpages that are down permanently, unlike

Re: Property type hints?

2020-12-09 Thread dn via Python-list
On 09/12/2020 13:17, Paul Bryan wrote: Would this be a reasonably correct way to annotate a property with a type hint? class Foo: ... bar: int If we build a class with (only) the above two lines, Python's help lookup offers the following documentation: <<< Help on Foo in module

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-12-09 Thread Brett Cannon
Brett Cannon added the comment: What is "VendorImporter" (see the message of the ImportWarning)? That's not in the stdlib, so it looks like your system is injecting something via some `.pth` file or environment variable that doesn't define exec_module(). --

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-09 Thread Bhushan Shelke
Bhushan Shelke added the comment: Any update on this? Did the files I submitted help in reproducing/identifying the issue? -- ___ Python tracker ___

Re: Unable to download

2020-12-09 Thread Bob Gailer
On Wed, Dec 9, 2020, 11:46 AM Siddarth Adiga wrote: > Hello. I wanted to download the Python Version 3.9.1 but it said there was > already another version of Python already installed. But I have deleted the > program from the ADD OR REMOVE PROGRAMS option. But still I am unable to > download it.

[issue40747] sysconfig.get_config_var("py_version_nodot") should return 3_10

2020-12-09 Thread Mark Shannon
Mark Shannon added the comment: What's blocking this? It is a real pain not to be able to install packages for 3.10. I don't much care what the format is, but since there seems to be some difficulty in changing it, why not leave the output as `310`? It isn't ambiguous, as long as we specify

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-12-09 Thread Brandt Bucher
Brandt Bucher added the comment: I'm seeing the following test failure locally on master (doesn't seem to be showing up in CI though). I'm not too familiar with this stuff, but it looks related to this change: == FAIL:

Re: numpy/python (image) problem

2020-12-09 Thread Paulo da Silva
Às 05:55 de 09/12/20, Paulo da Silva escreveu: > Hi! > > I am looking at some code, that I found somewhere in the internet, to > compute DCT for each 8x8 block in an gray (2D) image (512x512). > > This is the code: > > def dct2(a): > return >

[issue41928] ZipFile does not supports Unicode Path Extra Field (0x7075) zip header field

2020-12-09 Thread Andrea Giudiceandrea
Change by Andrea Giudiceandrea : -- nosy: +andreaerdna ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42517] Enum: do not convert private names into members

2020-12-09 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +22583 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23722 ___ Python tracker

Unable to download

2020-12-09 Thread Siddarth Adiga
Hello. I wanted to download the Python Version 3.9.1 but it said there was already another version of Python already installed. But I have deleted the program from the ADD OR REMOVE PROGRAMS option. But still I am unable to download it. Please help... --

Python idle did not open even after trying many times

2020-12-09 Thread avinash gaur
Dear Sir/Mam, I am facing a problem with Python Idle. I am unable to open python idle even after clicking on it so many times. I am using Python 3.7 on Windows. I have already installed and uninstalled python 3.7 so many times. But it is not working Any help will be appreciated Thanking you --

[issue42517] Enum: do not convert private names into members

2020-12-09 Thread Ethan Furman
Ethan Furman added the comment: Make that deprecate in 3.9, work correctly in 3.10. -- ___ Python tracker ___ ___ Python-bugs-list

[issue42603] Tkinter: pkg-config is not used to get location of tcl and tk headers/libraries

2020-12-09 Thread Manolis Stamatogiannakis
Change by Manolis Stamatogiannakis : -- keywords: +patch pull_requests: +22581 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23721 ___ Python tracker

[issue38893] broken container/selinux integration

2020-12-09 Thread Christian Heimes
Christian Heimes added the comment: I have created a new PR that introduces preserve_security_context argument and changes the default behavior of copy operations. All copy operations behave now similar to "cp -p --preserve=xattr" by default. copy2(src, dst, preserve_security_context=True)

[issue38893] broken container/selinux integration

2020-12-09 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +22580 pull_request: https://github.com/python/cpython/pull/23720 ___ Python tracker ___

[issue31904] Python should support VxWorks RTOS

2020-12-09 Thread dimitri.wei
dimitri.wei added the comment: test comment -- components: +Build -Cross-Build nosy: +wlf100220 ___ Python tracker ___ ___

[issue42610] Get the type from a variable

2020-12-09 Thread dimitri.wei
Change by dimitri.wei : -- title: Get the type from a var -> Get the type from a variable ___ Python tracker ___ ___

[issue42610] Get the type from a var

2020-12-09 Thread dimitri.wei
Change by dimitri.wei : -- title: Get the type of from a var -> Get the type from a var ___ Python tracker ___ ___ Python-bugs-list

[issue42610] Get the type of from a var

2020-12-09 Thread dimitri.wei
Change by dimitri.wei : -- components: -Demos and Tools ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42610] Get the type of from a var

2020-12-09 Thread dimitri.wei
New submission from dimitri.wei : **Feature** A similar feature in typescript ```ts const foo: number = 1 type Foo = typeof foo // type Foo = number function bar(x: string): void { } type Bar = typeof bar // type Bar = (x: string) => void ``` **Pitch** The expected way in future python.

[issue42609] Eval with too high string multiplication crashes newer Python versions

2020-12-09 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31904] Python should support VxWorks RTOS

2020-12-09 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +22579 pull_request: https://github.com/python/cpython/pull/23718 ___ Python tracker ___

[issue42609] Eval with too high string multiplication crashes newer Python versions

2020-12-09 Thread Erik Lamers
Change by Erik Lamers : -- title: Eval with two high string multiplication crashes newer Python versions -> Eval with too high string multiplication crashes newer Python versions ___ Python tracker

[issue42609] Eval with two high string multiplication crashes newer Python versions

2020-12-09 Thread Erik Lamers
Change by Erik Lamers : -- versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42609] Eval with two high string multiplication crashes newer Python versions

2020-12-09 Thread Erik Lamers
New submission from Erik Lamers : For Python version 3.7 and above the following statement will end up in a segfault. eval("1 + 100"*100) Whereas Python versions 3.6 and below would tread this as a Recursion error. -- components: Interpreter Core messages: 382791 nosy:

[issue42608] Installation failed from source code on Debian ([307/416] test_socket)

2020-12-09 Thread ali
New submission from ali : I'm following guide below to install Python3.7 from source on Debian-64Bit. https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/ I'm installing Python3.7.9-final-64bit. But `make -j 8` hanged out more than 2 hours on: 0:22:43 load avg: 1.29