[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Ned Deily
Ned Deily added the comment: Thanks for the quick response, Marc. The results of testing were mixed. The good news: the new version did seem to solve the Monterey problem of the "UFO" and the loss of keyboard focus. However, the new version causes new problems on other releases. - On 10.14

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Ned Deily
Change by Ned Deily : Added file: https://bugs.python.org/file50400/Python_2021-10-27-231308_pyb15.crash ___ Python tracker ___ ___

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Ned Deily
Change by Ned Deily : Added file: https://bugs.python.org/file50401/Python_2021-10-27-231507_pyb15.crash ___ Python tracker ___ ___

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Dev Kumar
New submission from Dev Kumar : there is an error that is occurring in opening a file or program & after that python is started hanging & not even quitting. And also the file which is open by python is not even saving or executing. -- assignee: terry.reedy components: IDLE, macOS

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Please read: https://stackoverflow.com/help/minimal-reproducible-example http://www.sscce.org/ -- ___ Python tracker ___

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d56375a0dd4cee162081b173310298a3d32af293 by Dennis Sweeney in branch 'main': bpo-30570: Fix segfault on buildbots caused by stack overflow from recursion in tests (GH-29258)

Re: New assignmens ...

2021-10-28 Thread Antoon Pardon
Op 27/10/2021 om 20:20 schreef Avi Gross: I think anyone who suggests we should separate costs from benefits belongs securely within the academic world and should remain there. Practical things need to be built considering costs. Theoretical things, sure, cost is not an issue. Seperating

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: You need to give us some steps to reproduce this error, or we cannot even begin to try to fix it. What are the minimum steps needed to reproduce the error? -- nosy: +steven.daprano ___ Python tracker

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-28 Thread swgmma
swgmma added the comment: Just added a commit implementing `force_hide_console`. What is the most trivial way to test it's behaviour? -- ___ Python tracker ___

Re: walrus with a twist :+= or ...

2021-10-28 Thread Peter J. Holzer
On 2021-10-27 22:15:09 -0400, Avi Gross via Python-list wrote: > But a serious question is now that we sort of have UNICODE, and even many > editors and other programs support it, perhaps it might make sense for some > operations in computer languages to make use of them. I have thought so since

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-28 Thread swgmma
swgmma added the comment: For users who simply want to hide a process' window and do not have intimate knowledge of how the window is created by Windows, is it feasible to just have one option that handles all cases? Or do we have to implement both `force_hide` and `force_hide_console` and

Aw: Re: The task is to invent names for things

2021-10-28 Thread Karsten Hilbert
> > I don't know. A mediocre name conveys at least some information, and > > that seems to be better than none. On the other hand it might be just > > enough to lead the reader astray which wouldn't happen with a > > non-sensical name. I was thinking that a nonsensical name might lead readers to

Re: New assignmens ...

2021-10-28 Thread Antoon Pardon
Op 27/10/2021 om 17:05 schreef Christman, Roger Graydon: I'm going to provide two loop-and-a-half segments to illustrate my interpretation of this PEP and the purpose of the walrus operator: [ first example ] Now contrast with this example: Without the walrus: replay = True while replay:

[issue45627] OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt

2021-10-28 Thread Alexandru Ardelean
Alexandru Ardelean added the comment: > Thanks for you detailed explanation. I kinda agree that it makes sense for > small, embedded systems like OpenWRT to reduce the size of binaries. After > all storage and memory are precious on these systems. So, OpenWrt is not as tiny as it used to be.

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-28 Thread Eryk Sun
Eryk Sun added the comment: > What is the most trivial way to test it's behaviour? With CREATE_NO_WINDOW, the child process is attached to a console that has no window. Thus calling GetConsoleWindow() in the child returns NULL without an error. OTOH, if the child has no console (e.g.

[issue45642] Unable to save

2021-10-28 Thread Craig Dowkes
New submission from Craig Dowkes : I recently updated to Mac OS Montery 12.0.1 and am now unable to open or save any idle files. Running on a 2021 M1 iMac. I get the save dialogue box but then also an error box as shown in the attached picture. Failed to connect to the open and save panel

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Dev Kumar
Dev Kumar added the comment: Ya, I saw it, same thing is happening with me. But now what? what is the solution? -- ___ Python tracker ___

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Dev Kumar
Change by Dev Kumar : Added file: https://bugs.python.org/file50403/Screen Shot 2021-10-28 at 1.41.31 PM.png ___ Python tracker ___ ___

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-28 Thread Stefan Pochmann
Stefan Pochmann added the comment: > This is already faster in pure Python than list.sort() for cases like: Seems to depend on the system, it's slower on my laptop but faster on GCE: Python 3.10.0 on my laptop: 7.42 s lexisort 6.83 s sort 5.07 s groupsort Python 3.9.2 on Google

[issue45627] OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt

2021-10-28 Thread Christian Heimes
Christian Heimes added the comment: Ah, OpenWRT. :) Thanks for you detailed explanation. I kinda agree that it makes sense for small, embedded systems like OpenWRT to reduce the size of binaries. After all storage and memory are precious on these systems. PEP 644 favors usability over

[issue45548] Update Modules/Setup

2021-10-28 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27528 pull_request: https://github.com/python/cpython/pull/29263 ___ Python tracker ___

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Craig Dowkes
Craig Dowkes added the comment: Same issue for me on Mac OS 12.0.1 hoping for a quick solution to this -- nosy: +craig.dowkes ___ Python tracker ___

[issue45627] OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt

2021-10-28 Thread Alexandru Ardelean
Alexandru Ardelean added the comment: Apologies for the slow reply. It was the end of work-day when I submitted the bug & patch. I know, not a good method, but I do what I can :) So, OpenWrt's OpenSSL does not build BLAKE2 by default. See:

[issue44904] Classmethod properties are erroneously "called" in multiple modules

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

[issue44904] Classmethod properties are erroneously "called" in multiple modules

2021-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +27527 pull_request: https://github.com/python/cpython/pull/29262 ___ Python tracker ___

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Dev Kumar
Change by Dev Kumar : Added file: https://bugs.python.org/file50402/Screen Shot 2021-10-28 at 1.39.08 PM.png ___ Python tracker ___ ___

[issue44904] Classmethod properties are erroneously "called" in multiple modules

2021-10-28 Thread miss-islington
miss-islington added the comment: New changeset 1f45cc0dfa9a8febfc256411c803b4536719db97 by Miss Islington (bot) in branch '3.10': bpo-44904: Fix classmethod property bug in doctest module (GH-28838) https://github.com/python/cpython/commit/1f45cc0dfa9a8febfc256411c803b4536719db97

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: Are you using macOS 12 (Monterey)? I get an error as well using that version of the OS (see open-error). The error happens within a second or two after opening the open dialog, without interacting with the dialog in any way. This is on an M1 laptop running

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Dev Kumar
Dev Kumar added the comment: Yes, I also have a MacBook Air M1 & I recently updated it to macOS 12.0.1. How to get rid of this error ?? -- ___ Python tracker ___

[issue45643] SIGSTKFLT is missing from the signals module on Linux

2021-10-28 Thread Gareth Rees
Change by Gareth Rees : -- keywords: +patch pull_requests: +27529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29266 ___ Python tracker ___

Aw: Re: The task is to invent names for things

2021-10-28 Thread Karsten Hilbert
> Karsten Hilbert writes: > >ite is the -te form (in some uses like a gerundium) of aru > >(to go, to walk) > > This form, "行って", is written with two "t", as "itte", > in many transcriptions to convey the gemination (っ) of > the "t". There is, however, "ite", "居て", the -te form of > "居る"

Re: walrus with a twist :+= or ...

2021-10-28 Thread Abdur-Rahmaan Janhangeer
The proposal is very interesting, my only concern is readability unless a team has a tool check and flag it out as a process. Else i fear one day i'll be seeing =+_+= in Python code. But jokes aside @Avi why would someone want to immediately add a 2 after walrus defining it? in :+=2 Kind

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Dev Kumar
Dev Kumar added the comment: For that, First, open IDlE Then click file & then click on Open After that it's showing the error THE OPEN FILE OPERATION FAILED. Note: I didn't open any file -- ___ Python tracker

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > issubclass(x, list[int]) rejects the second argument for reasons explained in > the PEP. 1. One problem is that isinstance(x, type) != issubclass(type(x), type) if x is list[int]. It is unprecedented, I cannot recall any other case in which isinstance()

[issue44904] Classmethod properties are erroneously "called" in multiple modules

2021-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b1302abcc8a4be5f39b4d60a1ce28032b77655b3 by Alex Waygood in branch 'main': bpo-44904: Fix classmethod property bug in doctest module (GH-28838) https://github.com/python/cpython/commit/b1302abcc8a4be5f39b4d60a1ce28032b77655b3 --

[issue44904] Classmethod properties are erroneously "called" in multiple modules

2021-10-28 Thread miss-islington
miss-islington added the comment: New changeset 8365a5b5abe51cbe4151d89a5d0a993273320067 by Miss Islington (bot) in branch '3.9': bpo-44904: Fix classmethod property bug in doctest module (GH-28838) https://github.com/python/cpython/commit/8365a5b5abe51cbe4151d89a5d0a993273320067

FlaskCon 2021: The Last Call

2021-10-28 Thread Abdur-Rahmaan Janhangeer
Greetings everybody, FlaskCon's CFP closes soon. If you plan to push in some talks, please do so. Don't worry about reviewing and push it in, like it's very simple to get started with and this year might be the last online one. This year it's pre-recorded with optional live QnA. So internet

[issue45627] OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt

2021-10-28 Thread Alexandru Ardelean
Alexandru Ardelean added the comment: So, I've read through: https://www.python.org/dev/peps/pep-0644/#compatibility I also stumbled over: https://lwn.net/Articles/841664/ Which also led to: https://www.python.org/dev/peps/pep-0644/#libressl-support The answer is loud and clear now: will

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Dev Kumar
Dev Kumar added the comment: This is the File which is opening every time and not even saving it. -- Added file: https://bugs.python.org/file50404/Screen Shot 2021-10-28 at 1.40.04 PM.png ___ Python tracker

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue40296. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45641] Error In opening a file through Idle

2021-10-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: See issue #45642 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45642] Unable to save

2021-10-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: See issue #45641 -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45548] Update Modules/Setup

2021-10-28 Thread Christian Heimes
Christian Heimes added the comment: New changeset 4c95fb4640c0247903562dae4478158b348cea6d by Christian Heimes in branch 'main': bpo-45548: Fix out-of-tree and Debian builds (GH-29263) https://github.com/python/cpython/commit/4c95fb4640c0247903562dae4478158b348cea6d --

[issue45643] SIGSTKFLT is missing from the signals module on Linux

2021-10-28 Thread Gareth Rees
New submission from Gareth Rees : BACKGROUND On Linux, "man 7 signal" includes SIGSTKFLT in its table of "various other signals": Signal Value Action Comment ─── SIGSTKFLT -,16,- Term Stack fault on

[issue45562] python -d creates lots of tokenizer messages

2021-10-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Hi Pablo, I think you missed one instance: print_escape(stdout, tok->cur, tok->inp - tok->cur); Cheers -- ___ Python tracker ___

[issue45641] Error In opening a file through Idle

2021-10-28 Thread E. Paine
E. Paine added the comment: > This is likely the same issue as described in #44828 I agree; Ned and Marc are working on it. I doubt the patch will be ready for 3.9.8, but it'll probably be in 3.9.9 and 3.10.1. -- nosy: +epaine ___ Python tracker

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Marc Culler
Marc Culler added the comment: Hmmm, the 10.15 segfault seems to occur when writing the filename into the entry widget on the dialog. So maybe it is actually an issue with reference counting an NSString. I will have to look at that more carefully. --

[issue45548] Update Modules/Setup

2021-10-28 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27531 pull_request: https://github.com/python/cpython/pull/29268 ___ Python tracker ___

[issue45644] Make json.tool soak up input before opening output for writing

2021-10-28 Thread Chris Wesseling
Change by Chris Wesseling : -- keywords: +patch pull_requests: +27532 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29269 ___ Python tracker ___

[issue45630] Dump CodeObject API for debugging

2021-10-28 Thread Mark Shannon
Mark Shannon added the comment: What is the motivation for this? I see it could be useful when modifying the compiler, but there is already code for dumping the CFG in the compiler. https://github.com/python/cpython/blob/main/Python/compile.c#L7565 -- nosy: +Mark.Shannon

[issue45647] "expression" is erroneous in the doc

2021-10-28 Thread Arthur Milchior
New submission from Arthur Milchior : https://docs.python.org/3/reference/expressions.html#grammar-token-python-grammar-expression is wrong This line state: `expression ::= conditional_expression | lambda_expr` and it is a problem because, by the way sphinx understand reference,

[issue45646] "expression" is erroneous in the doc

2021-10-28 Thread Arthur Milchior
Arthur Milchior added the comment: https://docs.python.org/3/reference/expressions.html#grammar-token-python-grammar-expression is wrong This line state: `expression ::= conditional_expression | lambda_expr` and it is a problem because, by the way sphinx understand reference,

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Marc Culler
Marc Culler added the comment: Thanks for doing all the testing, Ned. I guess that the path forward is now clear. I will revert to the 8.6.11 code for 10.15 and earlier and use the new code for 11 and later. Of course the 8.6.11 code already has two cases, for 10.14 and earlier and 10.15

[issue45645] Deep recursion terminates script execution with no error (Windows, Python 3.9)

2021-10-28 Thread PABLO LOBATO DE LA CRUZ
New submission from PABLO LOBATO DE LA CRUZ : Deep recursion crashes on Windows (Python 3.9) when the depth limit is increased and no error is shown. Seems to work fine on other systems that I have tried (Linux and MacOS). Please find attached the script to reproduce the error. Expected and

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2021-10-28 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +27535 pull_request: https://github.com/python/cpython/pull/29271 ___ Python tracker ___ ___

[issue45646] The documentation wrongly uses or_expr for star expresion in displays

2021-10-28 Thread Arthur Milchior
New submission from Arthur Milchior : According to the current documentation, I believe there is an error in list_display, set_display and dict_display. According to list display, this is a valid expression [* l1 ^ l2] parsed as list_display: "[" starred_list: starred_item: "*"

[issue45637] The fallback to find the current frame in the gdb helpers fails for inlined frames

2021-10-28 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +27530 pull_request: https://github.com/python/cpython/pull/29267 ___ Python tracker ___

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-10-28 Thread Arthur Milchior
Change by Arthur Milchior : -- title: "expression" is erroneous in the doc -> Star expression in comprehension wrongly indicates to use or_expression after the star ___ Python tracker

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP/INPLACE_OP

2021-10-28 Thread Mark Shannon
Mark Shannon added the comment: Do you have results for pyperformance? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45644] Make json.tool soak up input before opening output for writing

2021-10-28 Thread Chris Wesseling
New submission from Chris Wesseling : json.tool is very cute and handy for making json readable. But rewriting a file in place requires tools like sponge (on POSIX) or a tmpfile, because $ python -m json.tool foo.json foo.json results in an empty foo.json. I propose soaking up the infile

[issue45637] The fallback to find the current frame in the gdb helpers fails for inlined frames

2021-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f291404a802d6a1bc50f817c7a26ff3ac9a199ff by Mark Shannon in branch 'main': bpo-45637: Store the frame pointer in the cframe (GH-29267) https://github.com/python/cpython/commit/f291404a802d6a1bc50f817c7a26ff3ac9a199ff --

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-10-28 Thread Arthur Milchior
Arthur Milchior added the comment: Message 405188 was supposed to be another bug report. My bad. -- ___ Python tracker ___ ___

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Marc Culler
Marc Culler added the comment: Hi Ned. Here is one more attempt, hopefully the final one. I tested with IDLE on 10.14 (VM), 10.15(hard), 11(hard), 12(VM). I used Python 3.10.0. I replaced libtk8.6.dylib with the Tk lib compiled from the tip of the macosx_filedialog branch. I could not

[issue45648] Better tp_version_tag overflow checks in specializer

2021-10-28 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +27536 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29272 ___ Python tracker ___

[issue45648] Better tp_version_tag overflow checks in specializer

2021-10-28 Thread Ken Jin
New submission from Ken Jin : Unless I'm mistaken, the current code in Python/specialize.c doesn't check for valid tp_version_tag, so version tag could overflow and it wouldn't know any better. Ideally, we should add more robust tests for when tp_version_tag overflows, but that's a project

[issue45562] python -d creates lots of tokenizer messages

2021-10-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27534 pull_request: https://github.com/python/cpython/pull/29270 ___ Python tracker ___

Python and Flask Book

2021-10-28 Thread Bruno Oliveira
Hello all, I would like to spread the word about a new Python book I have released, on how to develop a web application using Flask and deploying it on Heroku. It's geared more towards beginners or towards anyone who is willing to learn Python and Flask! I would be very glad if you know of

Re: New assignmens ...

2021-10-28 Thread Jon Ribbens via Python-list
On 2021-10-28, Paul Rubin wrote: > Chris Angelico writes: >> But it all depends on the exact process being done, which is why I've >> been asking for real examples. > > My most frequent use case for walrus is so common that I have sometimes > implemented a special class for it: > >if g :=

[issue45629] Tools/freeze needs tests in the test suite.

2021-10-28 Thread Eric Snow
Eric Snow added the comment: New changeset 13d9205f4057f80a25d410ad123876dc60cd by Eric Snow in branch 'main': bpo-45629: Add a test for the "freeze" tool. (gh-29222) https://github.com/python/cpython/commit/13d9205f4057f80a25d410ad123876dc60cd --

[issue45629] Tools/freeze needs tests in the test suite.

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

[issue45650] cgitb does not emit CGI headers when format='text'

2021-10-28 Thread Kier Davis
New submission from Kier Davis : ## Context ## * Python is executing a script on behalf of a web server (e.g. Apache httpd) following the CGI protocol. * cgitb is enabled and configured to use the 'text' format. * An unhandled exception occurs before any CGI response headers have been

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Ned Deily
Ned Deily added the comment: > Here is one more attempt, hopefully the final one. I think we have a winner! The issues I've seen all seem to be resolved in this latest round. Thank you, Marc! For the record, my testing for this has been very rudimentary manual testing so I'm certainly not

RE: Re: The task is to invent names for things

2021-10-28 Thread Avi Gross via Python-list
Names can be taken too far as the same variable may have different connotations in one place than another. Say I am counting how many of something and incrementing variable HowMany as I go along and initialized to zero. Then I want to test if I have any and instead of: if (HowMany > 0)

RE: New assignmens ...

2021-10-28 Thread Avi Gross via Python-list
Antoon, You keep beating a dead horse. NOBODY denies there are benefits to suggestions like the one we are describing. It is a logical fallacy to keep arguing this way. And nobody (meaning me) suggests costs are a dominant factor in decisions no matter the benefits. The realistic

[issue45656] argparse bug: prefix_chars argument to add_argument_group doesn't really work

2021-10-28 Thread Samwyse
New submission from Samwyse : Using the prefix_chars argument to parser.add_argument_group causes usage information to print correctly, but the resulting parser doesn't recognize the options. The included program reproduces the issue; it produces the following output on my system. ---

[issue45657] Enum behavior when values are functions

2021-10-28 Thread Ronald Pandolfi
New submission from Ronald Pandolfi : Enum members assigned values that are functions don't remember those members. For example: def my_func(): ... class Test(enum.Enum): a=1 b=my_func Test.__members__ Out[7]: mappingproxy({'a': }) Test.b Out[8]: Even though b doesn't show

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread miss-islington
miss-islington added the comment: New changeset 54579087c69f95531cbe7a97401c67f104a3e52f by Miss Islington (bot) in branch '3.10': bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276) https://github.com/python/cpython/commit/54579087c69f95531cbe7a97401c67f104a3e52f

[issue45657] Enum behavior when values are functions

2021-10-28 Thread Alex Waygood
Alex Waygood added the comment: It would be difficult to define methods in Enum classes if functions in the class namespace were automatically converted into members. You can get around this by wrapping your functions in `functools.partial` objects; see

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2021-10-28 Thread Mark Shannon
Mark Shannon added the comment: New changeset 0a1a36b74bdf8da286924a1c9652853b1c46f536 by Ken Jin in branch 'main': bpo-44525: Add recursive checks for `CALL_FUNCTION_BUILTIN_O` (GH-29271) https://github.com/python/cpython/commit/0a1a36b74bdf8da286924a1c9652853b1c46f536 --

[issue45649] Add tarinfo.Path

2021-10-28 Thread Filipe Laíns
New submission from Filipe Laíns : It would be helpful to have a pathlib-compatible object in tarfile, similarly to zipfile.Path. -- components: Library (Lib) messages: 405194 nosy: FFY00, jaraco priority: normal severity: normal status: open title: Add tarinfo.Path type: enhancement

[issue45020] Freeze all modules imported during startup.

2021-10-28 Thread Eric Snow
Eric Snow added the comment: On Mon, Oct 18, 2021 at 7:14 PM Guido van Rossum wrote: > Is gh-28940 only for UNIX? > I built on Windows with default options (PCbuild\build.bat) and it looks like > the frozen modules are used by default even though I am running in the source > directory. (I

[issue45562] python -d creates lots of tokenizer messages

2021-10-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks, Pablo :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45651] -X frozen_modules not defaulting to "off" on Windows when running in source tree?

2021-10-28 Thread Eric Snow
Change by Eric Snow : -- title: -X frozen_modules not defaulting to "on" on Windows? -> -X frozen_modules not defaulting to "off" on Windows when running in source tree? ___ Python tracker

[issue45652] co_filename does not match __file__ for frozen stdlib modules

2021-10-28 Thread Eric Snow
New submission from Eric Snow : Frozen modules currently have co_filename set to "". It would be good to have it match __file__ instead. This will require require also fixing any code objects in the module's co_consts (and so on). It may make sense to take care of the while unmarshaling,

[issue45658] Implement FrozenImporter.get_source()

2021-10-28 Thread Eric Snow
New submission from Eric Snow : FrozenImporter (in Lib/importlib/_bootstrap.py) has a get_source() method but it always returns None. Now that __file__ is set on frozen (stdlib) modules, we can implement FrozenImporter.get_source() appropriately. -- components: Library (Lib)

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-28 Thread Mark Shannon
Mark Shannon added the comment: New changeset 7f61d9d84843e3445f62eb00c47902f0daa30a72 by Mark Shannon in branch 'main': bpo-45256: Rationalize code around Python-to-Python calls a bit. (GH-29235) https://github.com/python/cpython/commit/7f61d9d84843e3445f62eb00c47902f0daa30a72 --

Re: Why so fast a web framework?

2021-10-28 Thread Abdur-Rahmaan Janhangeer
Me Like why exactly is that the case, i would not be surprised for rust, C, CPP etc But as to where the difference comes for two comparatively similar langs. Kind Regards, Abdur-Rahmaan Janhangeer about | blog github

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-28 Thread Eryk Sun
Eryk Sun added the comment: > is it feasible to just have one option that handles all cases? I'm in favor of whatever has broad support and is least surprising for users. I like CREATE_NO_WINDOW, which is restricted to console applications. The alternative is hiding the window, like what we

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Marc Culler
Marc Culler added the comment: That is great news! I will now merge the changes into the Tk core-8-6-branch and core-8-6-12-rc branches. -- ___ Python tracker ___

[issue45649] Add tarinfo.Path

2021-10-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: I vaguely recall exploring this concept and finding that tarfiles don’t supply the requisite interface because they’re not random access. I’m only 10% confident in that recollection, so worth exploring. -- ___

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +27539 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29276 ___ Python tracker ___

Re: The task is to invent names for things

2021-10-28 Thread Martin Di Paola
IMHO, I prefer really weird names. For example if I'm not sure how to name a class that I'm coding, I name it like XXXYYY (literally). Really ugly. This is a way to avoid the so called "naming paralysis". Once I finish coding the class I look back and it should be easy to see "what it does"

[issue45653] Freeze the encodings module.

2021-10-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: encodings is a package. I think you first have to check whether mixing frozen and non-frozen submodules are even supported. I've never tried having only part of a package frozen. Freezing the whole package certainly works. -- nosy: +lemburg

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-28 Thread Joe Wells
Joe Wells added the comment: 1. As background, it is worth remembering that a major motivation for why FrameSummary.__init__ stringifies the local variable values in its parameter locals is to prevent the resulting data structure from keeping those values live. This enables them to be

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Ned Deily
Ned Deily added the comment: New changeset be8318be05e1a874215fa75b8845ede74b2c69b6 by Ned Deily in branch 'main': bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276) https://github.com/python/cpython/commit/be8318be05e1a874215fa75b8845ede74b2c69b6 --

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 16.0 -> 17.0 pull_requests: +27540 pull_request: https://github.com/python/cpython/pull/29277 ___ Python tracker

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +27542 pull_request: https://github.com/python/cpython/pull/29279 ___ Python tracker ___

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +27541 pull_request: https://github.com/python/cpython/pull/29278 ___ Python tracker ___

[issue39679] functools: singledispatchmethod doesn't work with classmethod

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

[issue45522] Allow to build Python without freelists

2021-10-28 Thread Mark Shannon
Mark Shannon added the comment: I think we should revert this. It just makes working with freelists more cumbersome. Having more configure options just makes it more likely that we will fail to test some configuration. If you want to disable freelists in your experiments, feel free to do

  1   2   3   >