[issue14169] compiler.compile fails on "if" statement in attached file

2012-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. 'deprecated' pretty much means "We do not think this is worth the effort of maintaining it. Don't use it unless it is already in old code." -- resolution: -> wont fix status: open -> closed ___

[issue14332] Better explain "junk" concept in difflib doc

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reproduced the observed behavior in 3.3.0a. However, I am rather sure it is not a bug. In any case, linejunk is not ignored. Passing 'lambda x: 1/0' causes ZeroDivisionError, proving that it gets called. The body of ndiff(linejunk,charju

[issue14245] float rounding examples in FAQ are outdated

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The last version in the message above looks good to me. Ready to markup and apply? -- keywords: +patch nosy: +terry.reedy stage: -> patch review ___ Python tracker <http://bugs.python.org/issu

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue14250> ___ ___ Python-bugs-list mai

[issue14297] Custom string formatter doesn't work like builtin str.format

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: We know that string.Formatter does not properly duplicate str.format. #13598 is specifically about use of {}. Search "string Formatter" for other related issues. -- nosy: +terry.reedy resolution: -> duplicate status: open -> c

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +giampaolo.rodola ___ Python tracker <http://bugs.python.org/issue14269> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14306] try/except block is both efficient and expensive?

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think it would be sufficient to add ' if no exceptions are raised' to the first sentence. The example that follows in the entry clarifies the implications of "cheap to try, expensive to catch". -- keywords: +patc

[issue14315] zipfile.ZipFile() unable to open zip File

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: .apk is primarily used for Android Package files https://en.wikipedia.org/wiki/APK_%28file_format%29 which are zipped JAR-based archives. By changing .apk to .zip, I can open the file in Win7 explorer, which has zip built in. A 'crash' is a s

[issue14323] Normalize math precision in RGB/YIQ conversion

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The idea seems reasonable. Do you have a link or reference to a Matlab doc with the coefficients? Enhancements only go in new versions. -- nosy: +terry.reedy versions: -Python 2.7, Python 3.2 ___ Python tracker

[issue14323] Normalize math precision in RGB/YIQ conversion

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, put reference in source. I checked that you copied correctly. I think there is some controversy, which I do not understand, about adding tests to maintenance releases without a bug fix. I will ask, so do not do it yet

[issue14323] Normalize math precision in RGB/YIQ conversion

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, I know you have worked on numerical algorithms. 1. Do you agree that this is a reasonable change? 2. Should new tests go in maintenance release? -- nosy: +mark.dickinson ___ Python tracker <h

[issue14315] zipfile.ZipFile() unable to open zip File

2012-03-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. There must be multiple extra fields allowed. This output suggests that a) zipfile mis-parses the extra field in some peculiar case (which I doubt) or b) the file either gives a bad field length or third extra field is mal-formed and that other tools

[issue14351] Script error in 3.2.3rc1 Windows doc

2012-03-17 Thread Terry J. Reedy
New submission from Terry J. Reedy : 3.2.3rc1: When I click the Python manuals Start Menu icon, the Windows help version of the docs comes up, but with a Script Error box. Contents of the box: A error has occurred in the script on this page Line : 1 Char : 1 Error : The value of the

[issue14351] Script error in 3.2.3rc1 Windows doc

2012-03-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I hope you are right. The module docs server is also not working for me. Has that also been found and fixed (I don't see any issues) or should I file a separate report? -- ___ Python tracker

[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2012-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Stefan, since you have been working on Memoryview, any opinions? -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue10

[issue14378] __future__ imports fail when compiling from python ast

2012-03-20 Thread J. D. Bartlett
New submission from J. D. Bartlett : GOAL I am trying to compile an AST which contains an ImportFrom node which performs a __future__ import. The ImportFrom node in question is the first node within the AST's body (as it should be, because __future__ imports must occur at the beginni

[issue14378] __future__ imports fail when compiling from python ast

2012-03-20 Thread J. D. Bartlett
J. D. Bartlett added the comment: Incidentally, the workaround that I'm using for the time being is to run the following code before attempting to compile root_node. for node in ast.walk(root_node): if isinstance(node, ast.ImportFrom) and node.module == '__future__':

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2012-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for applying. Just note that unlike with svn, with hg it is stronly recommended to apply to 3.2 first and forward port to 3.3. Something about the DAGs working better. -- ___ Python tracker <h

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not know or directly use tkinter enough to judge the proposed removal. (Although they do look like they might be useless.) I would like to see a little more explanation on the record. Who wrote "# XXX I don't like these -- take them aw

[issue1222721] tk + setlocale problems...

2012-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for retesting. Closing until there is a clear problem with current releases. -- resolution: -> out of date status: open -> closed versions: -Python 2.4 ___ Python tracker <http://bugs.p

[issue1752252] tkFileDialog closes Python when used

2012-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Without a specific claimed failing program and contemporary verification, it is hard to know whether one has reproduced or not. With 3.3 I did import tkinter.filedialog as tkf import tkinter as tk fd=tkf.FileDialog(tk.Tk()) fd.go() and got a file dialog

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2012-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is an issue, not a bug, and the status is as it was: unclear just what to do; would require some major work. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2012-03-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue13657> ___ ___ Python-bugs-list mai

[issue14350] Strange Exception from copying an iterator

2012-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Title corrected. Non-iterator iterables are usually easy to copy. I think this is in the category of "don't do that" ;-) I believe the idea of making iterators copyable has been rejected on one of the lists because it is probably not possible

[issue14361] No link to issue tracker on Python home page

2012-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue seems 'off-topic' in that core developers do not control the main site and cannot patch it. My understanding is that that is why the dev guide was separated from the main site (so we could patch it). On the other hand, we can suggest ch

[issue14374] Compiling Python 2.7.2 on HP11i PA-RISC ends with segmentation fault in Python executable

2012-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This does not seem to clearly be a bug in the core codebase. An enquiry on python-list or maybe even stackoverflow might get a response from someone with HP11i PA-RISC experience. -- nosy: +terry.reedy ___ Python

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2012-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch in first message; patch file needed. I don't know if sys.exit is actually tested. This is really 2.7 specific. -- keywords: +patch nosy: +terry.reedy stage: -> test needed ___ Python tracke

[issue14391] misc TYPO in argparse.Action docstring

2012-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch, to an unspecified version of 2.7, changes 'str' to 'string', so I presume that is what you meant. The current repository code already says 'string' for 2.7, 3.2, and 3.3. This is what you should see in the current

[issue14392] type=bool doesn't raise error in argparse.Action

2012-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This change maked the error message wrong if bool is rejected. -- nosy: +bethard, terry.reedy stage: -> test needed type: -> behavior ___ Python tracker <http://bugs.python.org/i

[issue14392] type=bool doesn't raise error in argparse.Action

2012-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The corresponding current code in 3.2 and 3.3 is the same. -- versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue14

[issue14393] Incorporate Guide to Magic Methods?

2012-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: If one searches for the informal name 'Python magic methods', RafeKettler's doc and 3. Data model — Python v2.7.2 documentation come in 1,2. Given that the latter does not even contain the word 'magic', that means that is actually

[issue14375] Add socketserver running property

2012-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: (I have not used socketserver so my response is somewhat theoretical.) .__running seems partly if not completely redundant as the negation of .__is_shutdown. However, I do not see that exposed. I suspect that this was not thought to be needed because the api

[issue14433] Python 3 interpreter crash on windows when stdin closed in Python shell

2012-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 64 bit win 7, 3.3.0a1 crashes also. Idle shell just says that fd 0 is not valid, which I expect is correct for the socket replacement for sys.stdout. -- nosy: +terry.reedy ___ Python tracker <h

[issue14440] Close background process if IDLE closes abnormally.

2012-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: You need to specify os (with version) *nix? There have been issues like this before, for earlier Python version, at least for Windows XP, which have been fixed, at least for Windows. I think last patch (a year ago? before 3.2 I think) switched to using

[issue14440] Close background process if IDLE closes abnormally.

2012-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Andrew: I strongly agree with the goal that IDLE should not leave zombie processes. The background process should die if either 1) IDLE restarts the shell with a new background process, as with every edit-run cycle, or 2) IDLE dies. The desired behavior

[issue14440] Close background process if IDLE closes abnormally.

2012-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Just a bit more info: ^D and ^\ in Command Prompt interpreter print '^D' or '^\'. Return causes syntax error. ^Z\n in interpreter causes silent close. (Because DOS used ^Z as end-of-file.) ^D in IDLE causes silent close. IDLE ig

[issue14512] Pydocs module docs server not working on Windows.

2012-04-05 Thread Terry J. Reedy
New submission from Terry J. Reedy : 3.2.3rc2 and 3.3.0a2, freshly downloaded and installed, Win7, 64 bit Start Menue/Pythonxx/Module Docs Brings up tkinter pydoc box. [open browser] brings up *empty* localhost:7464 window. Search 'tkinter' and double-click tkinter entry or select

[issue14513] IDLE icon switched and switches on Windows taskbar

2012-04-05 Thread Terry J. Reedy
New submission from Terry J. Reedy : IDLE has an icon that is, appropriately, a white page with text overlaid with the Python logo on lower right. (Module docs uses the same icon.) For a long time, this has been used everywhere for IDLE -- start menu, desktop, taskbar. In the latest 3.2.3rc2

[issue14513] IDLE icon switched and switches on Windows taskbar

2012-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tried again and 3.2.3rc2 is working. The IDLE icon appears and right clicking gives its title as IDLE (Python GUI). 3.3.0a2 is worse than I reported. The reason the icon changes to the pythonw icon is because that is what gets pinned, not IDLE. Right

[issue14468] Update cloning guidelines in devguide

2012-04-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree, for reasons stated. Having to skip over the wrong instructions made getting started a bit harder for me. I also think TortoiseHG should get more than just a mention. The initial re-creation of the recent DAG for each branch when starting up

[issue14488] Can't install Python2.7.2

2012-04-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: What version of Windows? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue14488> ___ ___ Python-bugs-list m

[issue14503] docs: 2 code examples not Pygmented (syntax color coded)

2012-04-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch title: docs:Code not highlighted -> docs: 2 code examples not Pygmented (syntax color coded) type: -> behavior versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python track

[issue14507] Segfault with starmap and izip combo

2012-04-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Win7, 64 bit, IDLE shell and editor, 3.2.3c2, 24 gb machine, added print(): I got no response for about 10 secs until a process restart happens, which I believe means that the background pythonw process stopped. If I hit ^C before that, I get the Windows

[issue14507] Segfault with starmap and izip combo

2012-04-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.3.0a2, command prompt window: 'python has stopped working' in about 2 secs. -- ___ Python tracker <http://bugs.python.o

[issue12805] Optimizations for bytes.join() et. al

2012-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Side note: Windows requires that args be quoted with ", not ', to work properly, at least with these args. Main note: the patched test adds a space to the separator, but that is not enough to account for the difference. c:\Programs\Python32>pyt

[issue14512] Pydocs module docs server not working on Windows.

2012-04-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: C:\Programs\Python32\Tools\Scripts>..\..\pythonw pydocgui.pyw -b has the same behavior I described. So does -g. The shortcut has been part of the Windows installation for many versions. It obviously uses pydocgui.py. C:\Programs\Python32\Lib>pydoc

[issue14519] In re's examples the example with scanf() contains wrong analog for %x, %X specifiers

2012-04-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I checked Standard C by Plauger & Brodie and as I read it, it agrees with py.user and his C compiler. For stdlib strtol() and strtoul(), the 0x/0X prefixes are accepted but optional for explicit base 16. If base is given as 0, they are accepted and set

[issue14525] ia64-hp-hpux11.31 won't compile Python-2.6.8rc2 without -D_TERMIOS_INCLUDED

2012-04-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: patch should be for 2.7 or 3.2/3 as 2.6 only gets security fixes. -- nosy: +terry.reedy stage: -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker <http://bugs.pyth

[issue14544] Limit "global" keyword name conflicts in language spec to those enforced by CPython

2012-04-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue14544> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14542] reverse() doesn't reverse sort correctly

2012-04-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bill, when you reply by email, please snip the signature and quoted message. They are just noise. (Exception: quote a line or two if you are specifically responding to such.) Signatures are inappropriate, and the message you are responding to is already

[issue8900] IDLE crashes if Preference set to At Startup -> Open Edit Window

2012-04-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Brett C. just today pushed http://hg.python.org/cpython/rev/556b9bafdee8 changeset: 76310:556b9bafdee8 user:Brett Cannon date:Sat Apr 14 20:44:23 2012 -0400 summary: IDLE was relying on implicit relative imports which have gone away in

[issue12387] IDLE save keyboard shortcut problem

2012-04-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree; lets be consistently lenient. -- ___ Python tracker <http://bugs.python.org/issue12387> ___ ___ Python-bugs-list mailin

[issue14507] Segfault with deeply nested starmap calls

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: [Raymond: I presume you meant that C iterators have not been a problem in the wild and have done fine.] The RuntimeError message "maximum recursion depth exceeded" is not exactly correct. As Kristján implied in his first message, what has been reac

[issue8900] IDLE crashes if Preference set to At Startup -> Open Edit Window

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.2.3, after selecting open edit on startup and using ^O to select a file, I got a silent close of the editor window. Opening from the file menu worked. After the change of adding '0', ^O worked also. However, without a test suite, I am a litt

[issue12387] IDLE save keyboard shortcut problem

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changes look complete and correct as far as I can tell, except that I have some confusion about the relation of Shift and CapsLock key. For instance, Control-C and Control-Shift-C (using the key labels) both interrupt a loop whether or not CapsLock is on. In

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2012-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2.3 and 2.7.3 are out. And I am running on win7 without problems. I have not tried running multiple shells of the same Python version, but I have occasionally run 2.7 and 3.2 simultaneously without problems that I noticed. Roger, does IDLE get any info at

[issue36958] IDLE should print exit message or status if one is provided

2019-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/library/exceptions.html#SystemExit says: skip traceback, convert default None to 0, print any other non-int and convert to 1, and pass unprinted int to C exit(). I agree that IDLE should also print non-ints. The IDLE doc should

[issue36958] IDLE should print exit message or status if one is provided

2019-05-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +13345 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue36958> ___ ___ Python-

[issue36958] IDLE should print exit message or status if one is provided

2019-05-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6d965b39b7a486dd9e96a60b19ee92382d668299 by Terry Jan Reedy in branch 'master': bpo-36958: In IDLE, print exit message (GH-13435) https://github.com/python/cpython/commit/6d965b39b7a486dd9e96a60b19ee92

[issue36958] IDLE should print exit message or status if one is provided

2019-05-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the report. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36878] ast.parse with type_comments=True should allow extra text after # type: ignore

2019-05-22 Thread Michael J. Sullivan
Change by Michael J. Sullivan : -- pull_requests: +13419 ___ Python tracker <https://bugs.python.org/issue36878> ___ ___ Python-bugs-list mailing list Unsub

[issue36878] ast.parse with type_comments=True should allow extra text after # type: ignore

2019-05-22 Thread Michael J. Sullivan
Michael J. Sullivan added the comment: I think this is done! -- ___ Python tracker <https://bugs.python.org/issue36878> ___ ___ Python-bugs-list mailin

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-22 Thread Michael J. Sullivan
New submission from Michael J. Sullivan : The different varieties of PyObject_CallMethod* routines all operate by doing a PyObject_GetAttr to fetch an object to call. It seems likely to be worthwhile to take advantage of the LOAD_METHOD optimization that avoids creating a bound method object

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-22 Thread Michael J. Sullivan
Change by Michael J. Sullivan : -- keywords: +patch pull_requests: +13433 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue37017> ___ _

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-22 Thread Michael J. Sullivan
Change by Michael J. Sullivan : -- nosy: +brett.cannon, serhiy.storchaka, vstinner, yselivanov ___ Python tracker <https://bugs.python.org/issue37017> ___ ___

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-23 Thread Michael J. Sullivan
Michael J. Sullivan added the comment: I believe that this is orthogonal to PEP 590. PyObject_CallMethodObjArgs and friends take varargs which need to be copied into an array one way or another. It is easy (and efficient) to prepend the base while copying the function arguments into the

[issue37038] Make idlelib/run.py runnable.

2019-05-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : Slightly simplified, pyshell.ModifiedInterpreter.built_subprocess runs f'{sys.executable} -c "__import__('idlelib.run').run.main()"'. "__import__('idlelib.run')" creates sys.modules['idlelib']

[issue37038] Make idlelib/run.py runnable.

2019-05-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +13471 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13560 ___ Python tracker <https://bugs.python.org/issu

[issue37039] IDLE: Zoomheight restores to default, not previous size

2019-05-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : On both Windows and Mac -- messages: 343448 nosy: cheryl.sabella, terry.reedy priority: normal severity: normal status: open title: IDLE: Zoomheight restores to default, not previous size type: behavior

[issue37039] IDLE: Zoomheight restores to default, not previous size

2019-05-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg343448 ___ Python tracker <https://bugs.python.org/issue37039> ___ ___ Python-bug

[issue37038] Make idlelib/run.py runnable.

2019-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 81bb97df6138c755e229dcdac9bed747e31b61b3 by Terry Jan Reedy in branch 'master': bpo-37038: Make idlelib.run runnable; add test clause (GH-13560) https://github.com/python/cpython/commit/81bb97df6138c755e229dcdac9bed7

[issue37039] IDLE: Zoom Height Restore restores to default, not previous size

2019-05-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : Restore Height restores to default, not previous size. This is a bit surprising, but is documented. "Toggles the window between normal size and maximum height. The initial size defaults to 40 lines by 80 chars unless changed on the General tab o

[issue37039] IDLE: Zoom Height Restore restores to default, not previous size

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Andre Roberge reported on idle-dev that Restore Height has no effect for him with Python 3.7.3, 32 bit, on Windows 10. Since it works for me on Win 10, 3.7.3-32 bit local debug build and 3.7.3-64 bit installed and ditto for 3.8, I am initially baffled

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have a 27" 2560X1440 screen. For me: >>> import tkinter; tkinter.Tk().tk.call('tk', 'scaling') 1.333... I presume 3200x200 should be 3200x2000 and that the diagonal size is small enough that the screen is a HiDPI screen,

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +13483 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13576 ___ Python tracker <https://bugs.python.org/issu

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, how is zoom/restore height working on your Mac? On my updated Macbook Air Mohave, the zoom bottom margin of 88 is too large. Since IDLE starts fully zoomed on this small screen, I determined this by shrinking Shell and then zooming it. The result

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current patch fixed the hidden status bar on Windows. I just had to increase the margin reserved for the taskbar from 76 to 114. This will also work if the taskbar is moved to the top of the screen. If the taskbar is moved to either side or if it is

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you. Along with your path browser report, things are much clearer. With variable pixel densities and custom settings, we cannot use fixed pixel or even mm numbers. 114 is right for me because I have Display Setting "Change the size of text, apps

[issue37041] IDLE: path browser unusable on some displays

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another reason to replace IDLE's custom tree widget with hard-coded constants with ttk.Treeview. I am closing this because I believe that #31552 will solve this problem. For an initial check, run the following test code, extracted from https://tkdoc

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed the type to behavior because the hard-coded pixel heights prevent the browsers form being usable on at least one HiDPI monitor. I closed #37041 in favor of this on the presumption that ttk.Treeview will work on such monitors, at least after

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Andre, we need to severely trim quotes when posting by email. A summary with added info. Andre: 2000 pixels / 183 mm = 10.9 pixels / mm Terry: 1440 pixels / 336 mm = 4.3 pixels / mm Andre: Windows Display setting text size, custom scaling = 200%, 200% Terry

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: When you start, it should say 'Zoom Height', then 'Restore Height' after you maximize. But if on a screen small enough that the initial height is the same as zoomed, IDLE might get confused. No change on Linux in the PR is the intent

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset df9b032f47e4edaf306d95449370e565ee470018 by Terry Jan Reedy in branch 'master': bpo-37039: IDLE - zoomheight fixes (GH-13576) https://github.com/python/cpython/commit/df9b032f47e4edaf306d95449370e5

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, please go ahead after updating your repository. I just merged PR 13576 after reverting the change from 72 to 114 that only works for me and adding Skip News. Include a blurb with your patch. It only needs to include something like "Fix zoom h

[issue21314] Document '/' in signatures

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hooray! Now that PEP570 is implemented in 3.8: >>> def f(a, /, *, b): return 3 ... >>> f(0, b=2) 3 # other combinations raise and somewhat documented, ('/' in grammar of '8.6 Function definitions', though not explain

[issue36896] clarify in types.rst that FunctionTypes & co constructors don't have stable signature

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: In msg342227 Pablo Galindo Salgado said "I am +1 to such a sentence, but I think this is a decision that more core devs should agree on." > "These types are not supposed to be instantiated outside of CPython internals" At least Petr

[issue23667] IDLE to provide option for making trailing whitespace visible

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, which definition of 'whitespace' do you intent? Git gui also marks trailing spaces in frozen diffs. This is much harder to do while editing as text can be read, keyed, and pasted. Most spaces and blank lines are only temporarily traili

[issue36896] clarify in types.rst that FunctionTypes & co constructors don't have stable signature

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pablo, I am all for respectfully preserving implementation freedom where we can. From idlelib.__init__: [idlelib files other than idle*.*] "are private implementations. Their details are subject to change. See PEP 434 for more. Import them at you

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Dan, please leave this closed. It duplicates #31815 and should be closed on that grounds alone, regardless of the status of the latter. #31815 was closed in favor of #33939, which is open, with ongoing discussion. Resolution either way is blocked because

[issue37068] Emit SyntaxWarning for f-strings without expressions ?

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: An f-string is equivalent to a format string and call. The exact details are not important. An field with no value is an error either way. (I prefer the compile-time exception.) >>> f'{}a' SyntaxError: f-string: empty expression n

[issue37071] HTMLParser mistakenly inventing new tags while parsing

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please verify with 3.7.3+ and the latest version of Sphinx. Even if there is a problem, Sphinx is not an stdlib package. The problem would only be relevant to this tracker, rather than the Sphinx tracker, if it were due to our customizations or use of

[issue37073] clarify functions docs in IO modules and Bytes Objects

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can you prepare a PR? -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue37073> ___ ___ Python-bugs-list m

[issue37080] Cannot compile Python3.7.3 on Alt-F (ARM)

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you are trying to compile CPython. Perhaps you might do better with MicroPython, designed for micro devices. Steve, do you know anything about CPython on Arm with linux? -- nosy: +steve.dower, terry.reedy

[issue37082] Assignment expression symbol (walrus) not in built-in help()

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The augmented assignment symbol, like that for plain assignment, is not, properly speaking, an operator. But it definitely is a symbol that needs to be documented. 1. Generally update the help symbol list. 2. Document :=, assignment expression, in the

[issue37089] `import Lib.os` works on windows (but shouldn't)

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: If .../Tools and its subdirectories had __init__.py files, the presence of sys.prefix on sys.path, on Windows, would allow imports from those subdirs. Otherwise, it only provides a second way to import stdlib modules. This seems like a bit of a bug

[issue36896] clarify in types.rst that FunctionTypes & co constructors don't have stable signature

2019-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, I think " Not for the faint of heart." could be replaced or augmented by 'api may change' -- ___ Python tracker <https://bug

[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1a4d9ffa1aecd7e750195f2be06d3d16c7a3a88f by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-32411: IDLE: Remove line number sort in browser.py (#5011) https://github.com/python/cpython/commit/1a4d9ffa1aecd7e750195f2be06d3d

[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: yes ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3 recent 'doit' requests (2 on PR 1589) raise my priority for this issue. When a user runs a file from an editor, IDLE simulates, as well as it can, the user entering 'python -i path' in a system command line shell. Both on a command l

[issue5680] Simulate command-line arguments for program run in IDLE

2019-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: When running IDLE normally, with a subprocess, it would be possible to pass arguments to python itself when IDLE restarts the user process (with shell.restart_shell()). That would be another issue. We would have to look at whether any options would disable

<    41   42   43   44   45   46   47   48   49   50   >