[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This in an interesting problem. I am going to work on it at the next weekends. -- ___ Python tracker ___

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Complete sets of characters which can be used in identifiers are too large: >>> allchars = ''.join(map(chr, range(0x11))) >>> identstartchars = ''.join(c for c in allchars if c.isidentifier()) >>> identcontchars = ''.join(c for c in allchars if ('a' +

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

2021-11-02 Thread Ned Deily
Ned Deily added the comment: > Subsequent Command-S presses do not cause the file dialog to reappear. Do you mean Command-S after modifying an IDLE edit window that has already been Save (or was Opened, not New)? In that case, the file dialog shouldn't appear: it saves to the existing f

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This set is mostly outdated. In Python 2 it was a set of characters composing identifiers, but in Python 3 identifiers can contain non-ASCII characters. -- nosy: +serhiy.storchaka ___ Python tracker

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

2021-11-02 Thread Marc Culler
Marc Culler added the comment: I found the cause of the zombie dialog window. I was supposed to call [parent endSheet] after calling [parent beginSheet]. Adding that stops the window from reappearing. But it does not solve the whole problem. Subsequent Command-S presses do not cause the

[issue45692] IDLE: define word/id chars in one place.

2021-11-02 Thread Terry J. Reedy
New submission from Terry J. Reedy : IDLE currently defines the same set of chars in 5 places with 5 names. (Listed by Serhiy Storchaka in #45669.) Lib/idlelib/autoexpand.py:20:wordchars = string.ascii_letters + string.digits + "_" Lib/idlelib/undo.py:254:al

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

2021-11-02 Thread Ned Deily
not disappear until IDLE terminates. Here is one sequence of commands I've used: - launch IDLE -> IDLE opens an IDLE shell window - press CMD-N to open a new IDLE edit window - type Python text into the window with a syntax error: x = $1 print(x) - press CMD-S to save the text into a f

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

2021-11-01 Thread Ned Deily
Ned Deily added the comment: As of 2021-11-02, the macOS installer file on python.org for the 3.10.0 release has been updated to include an updated Tk library that includes this fix. All other files installed by the installer are the same as in the original 3.10.0 installer, other than the

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

2021-11-01 Thread Ned Deily
Ned Deily added the comment: Thanks for the heads-up about the "10.16" issue, Marc. Sorry I missed that aspect when reviewing your fix as we had run into that "feature" before. I guess the idea was that it made it easier during the early days of Big Sur to build some products that were not

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

2021-11-01 Thread Marc Culler
Marc Culler added the comment: Heads up! A strange Apple quirk has been identified which could affect the file dialog behavior if the Tk library is compiled on macOS 10.XX and used on macOS 11 or 12. (I am not sure if this applies here.) The fix for the broken file dialog was to use

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

2021-10-29 Thread Sam James
Change by Sam James : -- nosy: +thesamesam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-10-28 Thread primexx
Change by primexx : -- nosy: +primexx ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-10-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f19c1a115f782036edac306de0f3f9968c1e1fd6 by Miss Islington (bot) in branch '3.8': bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276) (GH-29279)

[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 8e5e74e3049875e9d834fe4408263676fe21e890 by Miss Islington (bot) in branch '3.9': bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276) https://github.com/python/cpython/commit/8e5e74e3049875e9d834fe4408263676fe21e890

[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

[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 : -- 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 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 : -- pull_requests: +27541 pull_request: https://github.com/python/cpython/pull/29278 ___ 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: 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 ___

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

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

2021-10-28 Thread Ned Deily
nly not saying there aren't other problems that we haven't run into yet but I'm reasonably confident that, with this Tk fix applied, IDLE behavior with python.org Pythons should be similar on macOS 12 Monterey to macOS 11 Big Sur. I'm going to merge this Tk patch into our macOS installer build scri

[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

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

[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

[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

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

[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 Steven D'Aprano
Steven D'Aprano added the comment: See issue #45642 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

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

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

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

[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 <https://bugs.python.org/iss

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

[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

[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: IDL

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

[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
- On 10.14 and earlier systems, I observed the following new behavior in IDLE: on doing a Save from an Edit Window (either with CMD-S or click on the Save menu item), the Save file pane appears as expected but, after entering the file name and clicking Save on the pane, the Save file pane is not

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

2021-10-27 Thread Marc Culler
Marc Culler added the comment: Hi Ned, I think this problem is fixed now in the tip of the Tk macosx_filedialog branch. I am attaching the tkMacOSXDialog.c file from that branch. I think you should be able to just replace the version in 8.6.11 and be able to build a working version. I

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

2021-10-27 Thread Marc Culler
Marc Culler added the comment: Thanks, Ned, for finding my mistake which you generously called a typo. I have fixed the inequality in the Tk fossil repository. Incidentally, there is now a core-8-6-12-rc branch of Tk, also containing the fix. So it should not be too long before 8.6.12 is

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

2021-10-26 Thread Ned Deily
Change by Ned Deily : -- assignee: terry.reedy -> ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-10-26 Thread Ned Deily
Ned Deily added the comment: Marc, thanks for providing the patch for Tk. There are some issues with it, though, at least when used with IDLE. I built a Python 3.10.0+ universal2 installer, like what we provide on python.org, with just the updated Tk and tested it on macOS 10.9, 10.13

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: #43476 is clearly an enhancement request. It proposes to stash info in the GUI process in a way that lets it be into from the other process by non-standard means. This is closer to a bugfix request in that successive lines have a different response in

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The method to run just code in userspace, without involving the debugger or history list, is runcommand. It needs a code string. The hard part is the code needed to recreate the exception instance in the user space. It will be different for SyntaxError

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Andre Roberge
Andre Roberge added the comment: If this can be implemented, then I believe that https://bugs.python.org/issue43476 could be closed as well. -- ___ Python tracker ___

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is most likely an oversight. It affects both normal and -n mode. The three sys attributes can be written. Given the error instance e caught in the IDLE process, we need to execute, *in the user namespace*, sys.last_type, sys.last_value

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Andre Roberge
runtime error when a standard Python interpreter is used. However, when the IDLE shell is used and a SyntaxError occurs, these are not set. If it is not possible to change this behaviour in IDLE, perhaps the documentation of the sys module should be amended to include this information

[issue45543] IDLE shell Windows EOL

2021-10-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current behavior is documented in Help => IDLE Help "User output in Shell". -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://b

[issue45543] IDLE shell Windows EOL

2021-10-20 Thread Lee Bosch
New submission from Lee Bosch : The IDLE shell for Windows doesn't respect carriage returns in output strings. When using a '\r' as sep, end or as part of the output strings, IDLE ignores it and I get linear output rather than each successive line printing over the previous output. The same

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I emailed the OP reporting the fix, which will be in the next releases of 3.10 and 3.11. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread miss-islington
miss-islington added the comment: New changeset a29470307308f64af9c55263cdd6e1984ba89925 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) (GH-29001) https://github.com/python/cpython/commit

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +27283 pull_request: https://github.com/python/cpython/pull/29001 ___ Python tracker

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 42ac06dcd234bdda989dcfe854ac5173337024c9 by Terry Jan Reedy in branch 'main': bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) https://github.com/python/cpython/commit/42ac06dcd234bdda989dcfe854ac5173337024c9

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +27282 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/29000 ___ Python tracker

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: We can add the mac change once it is manually tested on some system. I may try on my macbook. Windows will be another PR or even issue. -- ___ Python tracker

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: That is because they are not keywords in keyword.kwlist. But we can add them to the completion list. Thanks for transferring the report. -- stage: -> test needed type: -> behavior ___ Python tracker

[issue45495] IDLE: Add match and case to completions

2021-10-16 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: Add match and case -> IDLE: Add match and case to completions ___ Python tracker <https://bugs.python.org/issu

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-16 Thread Alex Waygood
Alex Waygood added the comment: Shall I add the change to the mac file to my PR, or would it be better to leave it for a separate PR? (I'm not confident enough to make the changes to the Windows files.) -- ___ Python tracker

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-16 Thread Steve Dower
Steve Dower added the comment: Bit more complicated. It'll need changes to Tools/msi/launcher/launcher_reg.wxs, Tools/msi/tcltk/tcltk_reg.wxs, and PC/layout/support/appxmanifest.py, but I don't think it's that obvious where (we don't want these files to open with py.exe by default, so

[issue45495] IDLE: Add match and case

2021-10-16 Thread Julien Palard
New submission from Julien Palard : In IDLE, when hitting Ctrl-space on `matc` or `cas`, there's no completion to `match` and `case. References: https://mail.python.org/archives/list/d...@python.org/thread/DRZIHLQU25JUD7IQKCOIIKI4ADB746MA/ -- assignee: terry.reedy components: IDLE

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, how do we make it so that "Edit with IDLE" appears when right-clicking on a .pyi file in Windows explorer? As easy as on mac (see Ronald's answer above)? -- nosy: +steve.dower ___ Python track

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: The most straightforward change for macOS is to add “pyi” to the list of extensions in “Mac/IDLE/IDLE.app/Contents/Info.plist”. That way IDLE will be seen as a valid editor for .pyi files. -- nosy: +ronaldoussoren

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes. After this issue is done, we should open a new issue and nosy Steve Dower, who is in charge of that for Windows, and Ned Deily, in case anything should be done on mac. -- ___ Python tracker

[issue45451] IDLE Shell GUI - remove window border

2021-10-15 Thread jerry chow
Change by jerry chow : -- nosy: +jerrylikerice1s ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread E. Paine
E. Paine added the comment: Would it make sense, since this issue pretty much makes IDLE officially support .pyi files, to add the "Edit with IDLE" menu when right-clicking on a .pyi file in Windows explorer? -- ___ Python track

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-14 Thread Alex Waygood
Alex Waygood added the comment: Have posted my PR. I've tested it manually and run the IDLE test suite on it with the `-u all` setting; it seems fine. The new tests I've written are a bit thin on the ground right now, though. I may need some guidance/help if more extensive tests are needed

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-14 Thread Alex Waygood
Change by Alex Waygood : -- keywords: +patch pull_requests: +27239 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/28950 ___ Python tracker

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-14 Thread E. Paine
Change by E. Paine : -- nosy: +epaine ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45451] IDLE Shell GUI - remove window border

2021-10-14 Thread primexx
primexx added the comment: of course that's fair, colour schemes are a very preferential thing. the main issue really is the border that creates a visual separation between the line indicators and the lines that they should be visually associated with. thanks! --

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-14 Thread Alex Waygood
Alex Waygood added the comment: Oh — I've already nearly finished a PR. Do you mind if I submit mine? Happy to make any changes you like, obviously. -- ___ Python tracker ___

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am going to call the file util.py and will work on a PR. -- ___ Python tracker ___ ___

[issue45451] IDLE Shell GUI - remove window border

2021-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whereas to me, 'not shaded' is easily the worst. Users can customize the sidebar colors, but since the default is the same at the text, I would not want to deliver IDLE with a scheme that I think is awful. On Windows, I agree that the light theme border

[issue45451] IDLE Shell GUI - remove window border

2021-10-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45451] IDLE Shell GUI - remove window border

2021-10-12 Thread primexx
New submission from primexx : Python 3.10 bundled IDLE with a small change in the interactive interpreter shell. Previously, the line indicators ">>>" were in-line with the command line, and a long/multi line command would have the same indentation as the indicator w

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Terry J. Reedy
start with one test: class ExtensionTest(TestCase): def test_stub(self): self.assertIn('.pyi', common.python_extensions) self.assertIn('.pyi', common.extension_string) For IDLE, I can and will backport. -- stage: -> test needed __

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Alex Waygood
Alex Waygood added the comment: It looks like support for .py files is hardcoded into IDLE's source code in the following places: * browser.ModuleBrowserTreeItem.OnDoubleClick * browser.ModuleBrowserTreeItem.IsExpandable * browser.ModuleBrowserTreeItem.listchildren * editor.ispythonsource

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: It should be fairly easy to recognize x.pyi as a python file. Just have to find the place. Something like def f(i:int) -> int: ... would have 'def' and 'int' highlighted. -- ___ Python tracker

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Alex Waygood
Change by Alex Waygood : -- title: Support syntax highlighting for .pyi stub files -> IDLE: Support syntax highlighting for .pyi stub files ___ Python tracker <https://bugs.python.org/issu

[issue45103] IDLE: make configdialog font page survive font failures

2021-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bizarre. The SO OP just reported that deleting FiraCode fixed *his* 3.10 problem. There must be some unobvious difference in systems. -- ___ Python tracker

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

2021-10-08 Thread Terry J. Reedy
user(s) might not want non-admin users to be able to modify IDLE behavior. I am reluctant to open this can of worms and would not do so by myself. -- stage: patch review -> test needed type: behavior -> enhancement versions: +Python 3.11 -Pyth

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

2021-10-08 Thread CoolCat467
CoolCat467 added the comment: Yes, changing settings on ZzDummy works correctly, but this is because an entry for it exists in the default config file. The problem is when if you attempt to add a new extension through the user config file. When IDLE is looking for extensions to load

[issue45103] IDLE: make configdialog font page survive font failures

2021-10-08 Thread E. Paine
E. Paine added the comment: > Did the FiraCode font work for you or merely not work without crashing? It worked fine (other than a few missing features such as context-aware punctuation). The steps I did to test were: - Load IDLE - Enter config dialog - Set IDLE to use Fira Code font -

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

2021-10-07 Thread Terry J. Reedy
on startup. At least on Windows with 3.9 and 3.11. I also tested changing options for test extension zzdummy and that works also. For instance, click enable, exit dialog, exit IDLE, reload, edit something, select Format, and the z options are listed. The default config is not changed. What

[issue45103] IDLE: make configdialog font page survive font failures

2021-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. Did the FiraCode font work for you or merely not work without crashing? -- ___ Python tracker ___

[issue45103] IDLE: make configdialog font page survive font failures

2021-10-07 Thread E. Paine
E. Paine added the comment: I am unable to reproduce on either Python 3.9.6 (Tk 8.6.9) or 3.10.0 (Tk 8.6.10). -- ___ Python tracker ___

[issue45103] IDLE: make configdialog font page survive font failures

2021-10-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: A similar report, https://stackoverflow.com/questions/69466716/python-3-10-idle-does-not-respond-everytime-i-hit-configure-idle-from-options but with FiraCode font https://github.com/tonsky/FiraCode. The compatibility list includes IDLE as 'does not work

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

[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

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

[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

[issue45193] IDLE Show completions pop-up not working on Ubuntu Linux

2021-10-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7f2d049cce6dc749a589424d4fb62ffca0b85b32 by Pablo Galindo (Miss Islington (bot)) in branch '3.10': bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343) https://github.com/python/cpython/commit

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

2021-10-03 Thread CoolCat467
Change by CoolCat467 : -- keywords: +patch pull_requests: +27063 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28713 ___ Python tracker ___

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

2021-10-03 Thread CoolCat467
Change by CoolCat467 : -- nosy: -terry.reedy versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2021-10-03 Thread CoolCat467
New submission from CoolCat467 : I was trying to write an extension for Idle, and was noticing extension keys defined in ~/.idlerc weren't being used, so I looked into it and found that in idlelib.config.idleConf, `GetExtensionKeys`, `__GetRawExtensionKeys`, and `GetKeyBinding` would never

[issue45296] IDLE: Better document close and exit.

2021-09-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unfortunately, I have discovered, the new wording is better but only correct for IDLE when Shell is the only window. On the file menu, I want to: A. Change 'Close' to 'Close Window', so it is clear that 'Close'/Alt-F4 only close the window and not IDLE. B

[issue45296] IDLE: Change Ctrl-Z note in exit/quit repr on Windows

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: The wording chosen by Terry, i.e. "Ctrl-D (end-of-file)", is pretty clear. Merged and fixed. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45296] IDLE: Change Ctrl-Z note in exit/quit repr on Windows

2021-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset acd46feff3c06d3f1d00ab850e530c519445a737 by Miss Islington (bot) in branch '3.10': bpo-45296: Fix exit/quit message on Windows (GH-28577) (GH-28600) https://github.com/python/cpython/commit/acd46feff3c06d3f1d00ab850e530c519445a737 --

<    1   2   3   4   5   6   7   8   9   10   >