[issue45361] Provide a more convenient way to set an exception as "active", from Python code

2021-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: Do you think the API you're looking for is available at the C level? Like PyErr_SetExcInfo()? -- ___ Python tracker ___

[issue29410] Moving to SipHash-1-3

2021-10-05 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +27097 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28752 ___ Python tracker ___

[issue45330] dulwich_log performance regression in 3.10

2021-10-05 Thread Inada Naoki
Inada Naoki added the comment: I can not confirm performance regression between 33ec88ac and 23ae2c3b. ``` Performance version: 1.0.2 Python version: 3.10.0a7+ (64-bit) revision 33ec88ac81 Report on Linux-5.4.0-81-generic-x86_64-with-glibc2.31 Number of logical CPUs: 8 Start date: 2021-10-06

[issue44998] macOS build test failure

2021-10-05 Thread Ned Deily
Ned Deily added the comment: > /Library/Developer/CommandLineTools/usr/bin/make build_all_merge_profile > /usr/local/bin/llvm-profdata merge -output=code.profclangd *.profclangr It looks like your build was trying to use a mixture of llvm tools, probably clang from the Apple-supplied Command

Re: python.exe - System Error

2021-10-05 Thread Dan Stromberg
Hi. You'll likely get more help if you include more context, like more text in your cut and paste. Also, how did you install it? And where did you get the installer from? HTH. On Thu, Sep 30, 2021 at 8:00 AM jitendrabeura001 wrote: >Hello Sir/Madam, please help me to out from this

[issue45381] IDLE: "restart shell" while receiving output disables program

2021-10-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> needs patch title: IDLE cannot kill process. "interupt" ctl+c and "restart shell" freeze program. -> IDLE: "restart shell" while receiving output disables program versions: +Python 3.11 -Python 3.7 ___

[issue45381] IDLE cannot kill process. "interupt" ctl+c and "restart shell" freeze program.

2021-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE uses tk/tkinter text widgets for Editor and Shell windows. A known downside of this is that long lines, greater than about 2000 chars, slow down scrolling. See #1442493 for instance. Part of the Squeezer feature was meant to alleviate this by

[issue40321] urllib.request does not support HTTP response status code 308

2021-10-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +27096 pull_request: https://github.com/python/cpython/pull/28751 ___ Python tracker ___

[issue40321] urllib.request does not support HTTP response status code 308

2021-10-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +27095 pull_request: https://github.com/python/cpython/pull/28750 ___ Python tracker

[issue40321] urllib.request does not support HTTP response status code 308

2021-10-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset c379bc5ec9012cf66424ef3d80612cf13ec51006 by Jochem Schulenklopper in branch 'main': bpo-40321: Support HTTP response status code 308 in urllib.request (#19588) https://github.com/python/cpython/commit/c379bc5ec9012cf66424ef3d80612cf13ec51006

[issue45385] Fix possible reference leak from descr_check

2021-10-05 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +27094 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28719 ___ Python tracker ___

[issue45385] Fix possible reference leak from descr_check

2021-10-05 Thread Dong-hee Na
New submission from Dong-hee Na : Report from @kj: https://github.com/python/cpython/pull/28719#discussion_r721249643 -- components: Interpreter Core messages: 403282 nosy: corona10, kj, vstinner priority: normal severity: normal status: open title: Fix possible reference leak from

[issue45335] Default TIMESTAMP converter in sqlite3 ignores UTC offset

2021-10-05 Thread Ian Fisher
Ian Fisher added the comment: Okay, I started a discussion here: https://discuss.python.org/t/fixing-sqlite-timestamp-converter-to-handle-utc-offsets/10985 -- ___ Python tracker

[issue45357] Idle does not check user config for extention configuration

2021-10-05 Thread CoolCat467
Change by CoolCat467 : -- nosy: +taleinat, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

RE: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread Avi Gross via Python-list
Dave, Just one point. many things are allowed by a language even if normal people would NOT have any reason to do it NOR should use it. Although when used in one context + and - can be considered unary operators, the evaluation may result in successive unary operations being done one after

[issue45377] Default python 3 docs still pointing to 3.9.7

2021-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: You should report this at https://github.com/python/pythondotorg/issues -- nosy: +eric.smith resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread dn via Python-list
On 06/10/2021 10.10, Chris Angelico wrote: > On Wed, Oct 6, 2021 at 7:52 AM hongy...@gmail.com > wrote: >> >> On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name wrote: This thread seems to have been very one-sided. Either I've forgotten selective use of the DEL-key, or the

[issue45335] Default TIMESTAMP converter in sqlite3 ignores UTC offset

2021-10-05 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > I'd be interested in working on this myself, if you think it's something that > a new CPython contributor could handle. Please, go ahead :) However, I think this should be discussed on Discourse first (open a topic in the Core Development category).

[issue45335] Default TIMESTAMP converter in sqlite3 ignores UTC offset

2021-10-05 Thread Ian Fisher
Ian Fisher added the comment: > Another option could be to deprecate the current behaviour and then change it > to being timezone aware in Python 3.13. This sounds like the simplest option. I'd be interested in working on this myself, if you think it's something that a new CPython

[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-05 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-05 Thread Gregory Beauregard
Change by Gregory Beauregard : -- type: enhancement -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-05 Thread Gregory Beauregard
New submission from Gregory Beauregard : PEP 591 for the Final Attribute states "Type checkers should infer a final attribute that is initialized in a class body as being a class variable. Variables should not be annotated with both ClassVar and Final." This is a bit of a typing conflict for

[issue45343] Update bundled pip to 21.2.4 and setuptools to 58.1.0

2021-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45343] Update bundled pip to 21.2.4 and setuptools to 58.1.0

2021-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1374459c9088725e022beab418bced96a825baad by Łukasz Langa in branch '3.9': [3.9] bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28747)

[issue45343] Update bundled pip to 21.2.4 and setuptools to 58.1.0

2021-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 325e4647afffe347cc20747f3dccc6ba9e782636 by Miss Islington (bot) in branch '3.10': bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28746)

[issue45383] PyType_FromSpec API fails to use metaclass of bases

2021-10-05 Thread Sebastian Berg
New submission from Sebastian Berg : The PyType_FromSpec fails to take care about MetaClasses. https://bugs.python.org/issue15870 Asks to create a new API to pass in the MetaClass. This issue is only about "inheriting" the metaclass of the bases correctly. Currently, Python fails to

[issue45343] Update bundled pip to 21.2.4 and setuptools to 58.1.0

2021-10-05 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27092 pull_request: https://github.com/python/cpython/pull/28747 ___ Python tracker ___

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Steve Dower
Steve Dower added the comment: > Hmm, but the "ver" output seems to have more information than those APIs. It's always had build numbers, which the regular APIs do not, because the regular APIs are meant for detecting incompatibilities rather than reporting. Since there are some

[issue45343] Update bundled pip to 21.2.4 and setuptools to 58.1.0

2021-10-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +27091 pull_request: https://github.com/python/cpython/pull/28746 ___ Python tracker

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Eryk Sun
Eryk Sun added the comment: The _WIN32_CLIENT_RELEASES table based on major.minor version number isn't helpful since Windows 10 and 11 have the same version number. win32_ver() needs a workaround to return release "11" if the build number is 22000 or greater. Is there any need/desire to

[issue45343] Update bundled pip to 21.2.4 and setuptools to 58.1.0

2021-10-05 Thread Łukasz Langa
New submission from Łukasz Langa : New changeset 4c8d543823dde5a30615da61727837a48f7ab847 by Illia Volochii in branch 'main': bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) https://github.com/python/cpython/commit/4c8d543823dde5a30615da61727837a48f7ab847

Re: Open a new window by mouse clicking in the QLineEdit field and not by clicking of a button

2021-10-05 Thread Barry
> On 5 Oct 2021, at 22:07, Mohsen Owzar wrote: > > Hi all, > I'm looking for an approach, but couldn't find any appropriate answer to my > problem: > On my GUI on a tablet, I have bunch of QlineEdit widgets for the settings of > my task. > Because we have no keyboard connected to the

[issue45374] sqlite3: Add configure option to set or auto-detect rpath to sqlite3 libs

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

[issue45335] Default TIMESTAMP converter in sqlite3 ignores UTC offset

2021-10-05 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > [...] if sqlite3 starts returning aware datetimes, existing code might break. True. > [...] perhaps this could be fixed in conjunction with changing sqlite3's API > to allow per-database converters and adapters Another option could be to deprecate the

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread Chris Angelico
On Wed, Oct 6, 2021 at 7:52 AM hongy...@gmail.com wrote: > > On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name wrote: > > On Saturday, 2 October 2021 at 10:34:27 UTC+2, hongy...@gmail.com wrote: > > > See the following testings: > > > > > > In [24]:

Re: Big jump in version

2021-10-05 Thread Grant Edwards
On 2021-10-04, Cecil Westerhof via Python-list wrote: > When I run: > pip3 list --outdated > > I get: > Package Version Latest Type > --- -- - > cryptography 3.4.8 35.0.0 wheel > > The jump from 3 to 35 seems a bit excessive to me. Or is it correct?

Open a new window by mouse clicking in the QLineEdit field and not by clicking of a button

2021-10-05 Thread Mohsen Owzar
Hi all, I'm looking for an approach, but couldn't find any appropriate answer to my problem: On my GUI on a tablet, I have bunch of QlineEdit widgets for the settings of my task. Because we have no keyboard connected to the tablet, I have put two buttons ("+" and "-") around each QLineEdit

Re: matplotlib graph white space

2021-10-05 Thread Michel Alwan
u can adjust any side with the other options... (margins) if you don t want to use tight layout... On 21/10/04 11:39AM, Steve wrote: > > Yes, I saw that but it is a change for all sides. > Is there a setting to change just the left and right padding? > > > > > -Original Message- >

Re: matplotlib graph white space

2021-10-05 Thread Michel Alwan
In the plot window, you can click on the settings (up), and select the option "tight layout" by pressing that button... I think this is what you are looking for... On 21/10/04 04:39AM, Steve wrote: > > I am using the first bar graph listed at this site: >

Does loading PDB slow down execution?

2021-10-05 Thread Unixnut
Hi all, If I run a python3 program with "import pdb" in the code, would it execute slower than without loading the debugger? The program I am running is computationally expensive and mathematically orientated. It is expected to run for a few months (I am a few days in). I found out today

Big jump in version

2021-10-05 Thread Cecil Westerhof via Python-list
When I run: pip3 list --outdated I get: Package Version Latest Type --- -- - cryptography 3.4.8 35.0.0 wheel pyzstd 0.14.4 0.15.0 wheel The jump from 3 to 35 seems a bit excessive to me. Or is it correct? On a side node. I have not

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Sunday, October 3, 2021 at 9:55:15 PM UTC+8, hongy...@gmail.com wrote: > On Sunday, October 3, 2021 at 8:38:16 PM UTC+8, ju...@diegidio.name wrote: > > On Sunday, 3 October 2021 at 14:21:13 UTC+2, hongy...@gmail.com wrote: > > > On Sunday, October 3, 2021 at 6:31:05 PM UTC+8,

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Sunday, October 3, 2021 at 8:38:16 PM UTC+8, ju...@diegidio.name wrote: > On Sunday, 3 October 2021 at 14:21:13 UTC+2, hongy...@gmail.com wrote: > > On Sunday, October 3, 2021 at 6:31:05 PM UTC+8, ju...@diegidio.name wrote: > > > > Then you can guess that numpy overrides it and gives you

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Sunday, October 3, 2021 at 6:31:05 PM UTC+8, ju...@diegidio.name wrote: > On Sunday, 3 October 2021 at 11:24:58 UTC+2, hongy...@gmail.com wrote: > > On Sunday, October 3, 2021 at 2:18:17 PM UTC+8, hongy...@gmail.com wrote: > > > On Saturday, October 2, 2021 at 4:59:54 PM UTC+8,

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name wrote: > On Saturday, 2 October 2021 at 10:34:27 UTC+2, hongy...@gmail.com wrote: > > See the following testings: > > > > In [24]: a=3.1415926535897932384626433832795028841971 > > In [27]: -a > > Out[27]: -3.141592653589793

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Sunday, October 3, 2021 at 2:18:17 PM UTC+8, hongy...@gmail.com wrote: > On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name wrote: > > On Saturday, 2 October 2021 at 10:34:27 UTC+2, hongy...@gmail.com wrote: > > > See the following testings: > > > > > > In [24]:

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Sunday, October 3, 2021 at 3:05:23 AM UTC+8, ju...@diegidio.name wrote: > On Saturday, 2 October 2021 at 14:48:39 UTC+2, hongy...@gmail.com wrote: > > On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name > > wrote: > > > On Saturday, 2 October 2021 at 10:34:27 UTC+2,

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Hai Shi! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Definitive guide for Regex

2021-10-05 Thread Karsten Hilbert
Am Thu, Sep 30, 2021 at 12:29:16PM +0100 schrieb Shaozhong SHI: > I am trying to look for a definitive guide for Regex in Python. > Can anyone help? If you tell us what you tried in order to look we can perhaps guide you on how to take a better look. Spoonfeeding doesn't seem to be a well-liked

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.10.2021 22:30, Steve Dower wrote: > The version number for "Windows 11" still starts with 10.0. Just like how > Windows 5.x and 6.x were around for a very long time each ;) > > There are tables in platform module that map the specific version to

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 52d9d3b75441ae6038fadead89eac5eecdd34501 by Łukasz Langa in branch '3.9': [3.9] bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794) (GH-28741)

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Steve Dower
Steve Dower added the comment: The version number for "Windows 11" still starts with 10.0. Just like how Windows 5.x and 6.x were around for a very long time each ;) There are tables in platform module that map the specific version to the release name. These probably need to be updated to

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: win32_ver() should be using the internal Windows APIs to figure out the version. I do wonder why those don't return the same version as the "ver" command line tool. Adding our Windows experts to the noisy list. -- nosy: +lemburg, paul.moore,

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: demo.py contains dirty hack that can be used as a fix for some time before microsoft will not fix it. -- Added file: https://bugs.python.org/file50327/demo.py ___ Python tracker

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: The bug comes from Microsoft terminal bug : If I type there : ver it will return Microsoft Windows [Version 10.0.22000.194] only one patch is if that will check the build . so : info = subprocess.check_output(cmd,

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: The platform.win32_ver() returns same answer -- ___ Python tracker ___ ___ Python-bugs-list

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Alex Zaslavskis
New submission from Alex Zaslavskis : I am updated to windows 11 . Now I am trying to write script that will detect is user use windows 11 or windows 10 . I was using the simplest way as possible: import platform print(platform.platform()) The result I got is : Windows-10-10.0.22000-SP0

[issue45381] IDLE cannot kill process. "interupt" ctl+c and "restart shell" freeze program.

2021-10-05 Thread A A
New submission from A A : Idle3 with python 3.7.3 on Debian Buster and XFCE. Attempting to run the line 'print ("Hello World" * 8**8)' from either the Idle shell window or Idle editor will cause Idle to hang and one CPU core runs 100%.(allowed it to run for several minutes) ctl+c or menu

[issue45380] help() appears confused about the module of typing.Annotated

2021-10-05 Thread Alex Waygood
New submission from Alex Waygood : `help()` appears confused about the module of `typing.Annotated`. If you call `help()` on a parameterised "instance" of `typing.Annotated`, it will claim that `Annotated` belongs to whatever module the annotated type is from. Additionally, `help()` appears

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-10-05 Thread Sebastian Berg
Sebastian Berg added the comment: Yeah, I will try and have a look. I had posted the patch, because the test looked like a bit of a larger chunk of work ;). > And I'm surprised that you're surprised :) :). I am coming from a completely different angle, probably. Just if you are curious,

[issue45020] Freeze all modules imported during startup.

2021-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: Whoa. os.path is not always an alias for posixpath, is it? -- ___ Python tracker ___ ___

[issue42327] Add PyModule_Add()

2021-10-05 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa nosy_count: 3.0 -> 4.0 pull_requests: +27089 pull_request: https://github.com/python/cpython/pull/28741 ___ Python tracker ___

[issue45020] Freeze all modules imported during startup.

2021-10-05 Thread Eric Snow
Eric Snow added the comment: New changeset 08285d563e64c179a56ab2f952345b3dbcdb54f3 by Eric Snow in branch 'main': bpo-45020: Identify which frozen modules are actually aliases. (gh-28655) https://github.com/python/cpython/commit/08285d563e64c179a56ab2f952345b3dbcdb54f3 --

[issue45378] Can't find "map" with search on docs.python.org

2021-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: > I'm surprised no one else noticed this until now. Most people probably just use Google and read whatever comes up. I was looking whether the official docs for map mentioned that map is actually an iterator class. (They don't.) --

[issue33125] Windows 10 ARM64 platform support

2021-10-05 Thread Steve Dower
Steve Dower added the comment: Yeah, we're getting close. I'll reopen this issue for tracking. We still need that pip release and it'll have to be merged into ensurepip. We'll also need better access to test systems than any of us currently have (the buildbot is great, but we need

[issue39573] [C API] Avoid accessing PyObject and PyVarObject members directly: add Py_SET_TYPE() and Py_IS_TYPE(), disallow Py_TYPE(obj)=type

2021-10-05 Thread STINNER Victor
STINNER Victor added the comment: I wrote an article about these changes: https://vstinner.github.io/c-api-abstract-pyobject.html It elaborates the rationale for making these changes. -- ___ Python tracker

[issue45378] Can't find "map" with search on docs.python.org

2021-10-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm surprised no one else noticed this until now. The doc search finds some entries such as: "sum", "min", "max", and "enumerate". However, it is missing others such as: "map" and "filter". -- nosy: +rhettinger

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-10-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d0d29655ffc43d426ad68542d8de8304f7f1346a by Miss Islington (bot) in branch '3.10': bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794) (GH-28738)

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-10-05 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27088 pull_request: https://github.com/python/cpython/pull/28741 ___ Python tracker ___

[issue45373] ./configure --enable-optimizations should enable LTO

2021-10-05 Thread Ned Deily
Ned Deily added the comment: I don't think you need llvm-ar anymore with the Apple Tool Chain but let me look into it as I have all the relevant previous macOS releases as VMs to test with. -- ___ Python tracker

[issue45373] ./configure --enable-optimizations should enable LTO

2021-10-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yeah, I had problems in the past to get llvm-ar or some other component. I still need time to reproduce and to see if this still happens on new versions. -- ___ Python tracker

[issue45324] The frozen importer should capture info in find_spec().

2021-10-05 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +27087 pull_request: https://github.com/python/cpython/pull/28740 ___ Python tracker ___

[issue45324] The frozen importer should capture info in find_spec().

2021-10-05 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45324] The frozen importer should capture info in find_spec().

2021-10-05 Thread Eric Snow
Eric Snow added the comment: New changeset c3d9ac8b340fcbf54cee865737e67f11fcd70ed3 by Eric Snow in branch 'main': bpo-45324: Capture data in FrozenImporter.find_spec() to use in exec_module(). (gh-28633) https://github.com/python/cpython/commit/c3d9ac8b340fcbf54cee865737e67f11fcd70ed3

[issue45378] Can't find "map" with search on docs.python.org

2021-10-05 Thread Raúl Cumplido
Change by Raúl Cumplido : -- nosy: +raulcd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45379] Improve errors related to frozen modules.

2021-10-05 Thread Eric Snow
New submission from Eric Snow : In Python/import.c there are various situations in which an error state related to frozen modules might result and even lead to an exception. In gh-28633 we consolidated these cases into a new "frozen_status" enum and added "set_frozen_error()" to set a

[issue45378] Can't find "map" with search on docs.python.org

2021-10-05 Thread Guido van Rossum
New submission from Guido van Rossum : I was looking for the docs for 'map' and tried to use the search box on docs.python.org. This gave a lot of things whose name started with or contained 'map', but the entry for the builtin map() function was hidden really far down under the heading

[issue45373] ./configure --enable-optimizations should enable LTO

2021-10-05 Thread Ned Deily
Ned Deily added the comment: > IIRC activating lto is specially annoying on MacOS due to the need of some > llvm components that are a bit hard to get Can you say more? We are currently using --with-lto with a vanilla Apple Command Line Tools (or Xcode) for macOS installer builds when

[issue45375] Windows assertion in out-of-tree debug build

2021-10-05 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-10-05 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix. I don't understand well this code :-( -- ___ Python tracker ___ ___

[issue45367] Specialize BINARY_MULTIPLY

2021-10-05 Thread Dennis Sweeney
Dennis Sweeney added the comment: Hm the above was not PGO. I tried again with PGO and it is not so good: Mean +- std dev: [nbody_main_pgo] 177 ms +- 4 ms -> [nbody_specialized_pgo] 190 ms +- 2 ms: 1.07x slower Mean +- std dev: [pidigits_main_pgo] 208 ms +- 1 ms ->

[issue45362] dis does not work with the new optimized ops

2021-10-05 Thread Ken Jin
Ken Jin added the comment: Closing this issue as the behavior in dis module is as intended. For any potential issues to 3rd party packages discovered in the future, consider opening an issue in that package's issue tracker, or submitting a brand new issue to bugs.python.org. --

[issue45367] Specialize BINARY_MULTIPLY

2021-10-05 Thread Ken Jin
Ken Jin added the comment: > (Windows doesn't want to install greenlet for pyperformance) I had the *exact* same issues, I eventually found a workaround for it after many hours spent guessing. Initially, setuptools complained that I needed MSVC++ 14.0 or later (even after I had the latest

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-10-05 Thread miss-islington
miss-islington added the comment: New changeset b9bb74871b27d9226df2dd3fce9d42bda8b43c2b by Hai Shi in branch 'main': bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794)

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-10-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +27086 pull_request: https://github.com/python/cpython/pull/28738 ___ Python tracker ___

[issue45354] test_winconsoleio fails on Windows 11

2021-10-05 Thread miss-islington
miss-islington added the comment: New changeset 63c9a6cc8b48740c88199b5150c9948b1a61756b by Miss Islington (bot) in branch '3.9': bpo-45354: Skip obsolete device name tests on Windows 11 (GH-28712) https://github.com/python/cpython/commit/63c9a6cc8b48740c88199b5150c9948b1a61756b --

[issue45354] test_winconsoleio fails on Windows 11

2021-10-05 Thread Steve Dower
Change by Steve Dower : -- stage: backport needed -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45354] test_winconsoleio fails on Windows 11

2021-10-05 Thread Steve Dower
Steve Dower added the comment: New changeset d0d0909a3a0b553826d1ddbb04a676fdabb61359 by Miss Islington (bot) in branch '3.10': bpo-45354: Skip obsolete device name tests on Windows 11 (GH-28712) https://github.com/python/cpython/commit/d0d0909a3a0b553826d1ddbb04a676fdabb61359 --

[issue45375] Windows assertion in out-of-tree debug build

2021-10-05 Thread Steve Dower
Steve Dower added the comment: New changeset 5146877623ebe8a2806411703b0de9c0aba179a1 by Steve Dower in branch 'main': bpo-45375: Fix assertion failure due to searching for stdlib in unnormalised paths (GH-28735)

[issue45377] Default python 3 docs still pointing to 3.9.7

2021-10-05 Thread Raúl Cumplido
New submission from Raúl Cumplido : We are going to start the python 3.10 work on the python-docs-es and we have realised that when accessing: https://docs.python.org/3/ It is still redirecting to Python 3.9.7 documentation As Python 3.10 was released yesterday shouldn't the default docs point

[issue45354] test_winconsoleio fails on Windows 11

2021-10-05 Thread Steve Dower
Steve Dower added the comment: Thanks, Jeremy! And thanks for being on top of getting the Win11 buildbot set up! -- resolution: -> fixed stage: patch review -> backport needed versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker

[issue45354] test_winconsoleio fails on Windows 11

2021-10-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27084 pull_request: https://github.com/python/cpython/pull/28736 ___ Python tracker

[issue45354] test_winconsoleio fails on Windows 11

2021-10-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +27085 pull_request: https://github.com/python/cpython/pull/28737 ___ Python tracker ___

[issue45354] test_winconsoleio fails on Windows 11

2021-10-05 Thread Steve Dower
Steve Dower added the comment: New changeset de4052fe0633e3a053e66c8477f13677054d6ede by Jeremy Kloth in branch 'main': bpo-45354: Skip obsolete device name tests on Windows 11 (GH-28712) https://github.com/python/cpython/commit/de4052fe0633e3a053e66c8477f13677054d6ede --

[issue45376] Run Windows release docs build on regular CI

2021-10-05 Thread Steve Dower
New submission from Steve Dower : Currently the release build of the CHM file runs on my dedicated build machine, which means there's no way to do a test run without starting the machine (normally clearing the code signing and PGO properties allows a build without needing it). Originally

[issue45375] Windows assertion in out-of-tree debug build

2021-10-05 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +27083 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28735 ___ Python tracker ___

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-10-05 Thread Petr Viktorin
Petr Viktorin added the comment: > I am slightly surprised we actually care about static C-definitions? And I'm surprised that you're surprised :) AFAIK, supporting dynamically allocated specs/slots was an afterthought. I do agree they should be supported, though! Thanks for filing

[issue45375] Windows assertion in out-of-tree debug build

2021-10-05 Thread Steve Dower
Steve Dower added the comment: I believe this is because getpath has hit its final fallback case of looking in ".\DLLs" and ".\Lib" for the standard library, and has not performed proper normalisation on these paths. So after removing the last segment, the result is "." which does not end

[issue45375] Windows assertion in out-of-tree debug build

2021-10-05 Thread Steve Dower
New submission from Steve Dower : As seen in the release build for 3.11a1, an assertion is raised when attempting to launch the debug build out of tree. _RegenTestFrozenmain: Regenerate test_frozenmain.h D:\a\1\b\bin\amd64\python_d.exe

  1   2   >