[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upon further thought, not a problem. Stephen considered the case: class myint(int): # inherit __init__ def added_func(self): "some new function of an int" In this case, fob = myint.__init__ would not be FunctionType and inspect would not

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The weird behavior was as if the cursor were moved to the beginning of the line and pressed. I cannot duplicate it. I had elif not isinstance(ob, (types.FunctionType, types.MethodType)): instead elif isinstance(ob.__call__, types.MethodType

[issue6160] Tkinter.Spinbox: fix for bbox and removed some uninteresting returns

2012-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that for 3.x, Lib/lib-tk/Tkinter.py is not Lib/tkinter/__init__.py. I will put this on my list of issues to look at if possible. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue6

[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: > File , save as, libraries, documents - then I save the file there. Ok, I agree now that this seems to be a duplicate of #12988 I will make a note there that another user had the same problem. -- resolution: -> duplicate status: open -&g

[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Maureen, as I explain on #12988, I believe that this was a tcl/tk problem that was fixed by the recent release of version 8.5.11 (last March). The Windows installer for Python 3.3.0a4 release (a week ago) seems to have solved the problem for me. So give that

[issue12988] Tkinter File Dialog crashes on Win7 when saving to Documents Library

2012-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #14996 as a duplicate of this. The OP there claimed that behavior changed between 3.2.1 and 3.2.3 and that she had same problem with 32 bit installation. It is hard to know the exact circumstances of the problem until we find its cause. Looking

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-06-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided to commit the current patch (i12510c.test.diff + NEWS changes) as is. Another change is needed to correctly delete the first arg of all methods, not just instance methods with the first arg named 'self'. (In the current new classmethod te

[issue1167300] Error "exec"ing python code

2012-06-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- superseder: -> An inconsistency with nested scopes ___ Python tracker <http://bugs.python.org/issue1167300> ___ ___ Python-

[issue15019] String termination on Linux

2012-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jānis, please present examples as proper python -- indentation and comment char -- so others can copy/paste to run without editing. In Idle (tkinter -- tk), '\0' is displayed as a wider space than ' '. The console is fixed pitch, so i

[issue15041] tkinter documentation: update "see also" list

2012-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 2.7 doc can also be updated. Here is a couple to add or replace. Tcl/Tk 8.5 Manual http://www.tcl.tk/man/tcl8.5/ The the current tcl/tk reference manual. The Tk Commands section is the most relevant for tkinter. TKDocs http://www.tkdocs.com/ Extensive

[issue15041] tkinter documentation: update "see also" list

2012-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Kevin Walzer, who uses tk/inter regularly, sent me the following effbot has a more recent work-in-progress update of his Tkinter docs here: http://effbot.org/tkinterbook/ I refer to this a lot. "Programming Python" by Mark Lutz (Amazon link h

[issue12982] Document that importing .pyo files needs python -O

2012-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Michael, you should ask the closed source library distributor to distribute all files as .pyc so you have access to docstrings while programming and to avoid the problem with reading them. He could also distribute an all-.pyo version. A mixture seems

[issue12982] Document that importing .pyo files needs python -O

2012-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The response from pydev is that running .pyc with -O or running .pyo without is not officially supported. Even if mixing usually works now, it does not always work properly for code with __debug__, assert, or __doc__. The scope of possible malfunctions may

[issue12982] Document that importing .pyo files needs python -O

2012-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eric, can you find a place in the current doc where -O and .pyo are mentioned, and where you think a sentence should go. What sentence(s) would you like to see. Other comments: __debug__ is intended to be a process-global compilation value (implemented as

[issue14997] IDLE tries to run shell window if line is completed with F5 rather than Enter

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

[issue15050] Python 3.2.3 fail to make

2012-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Martin, do I understand that you are saying that this is not a Python problem, and should be closed? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue15

[issue1229239] optionally allow mutable builtin types

2012-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Greg, I am closing this because you seem to have found an alternate solution and have dropped the issue. If you do want to pursue a change for 3.4, I suggest you refresh your patch and post to python-ideas (new list since you posted this). As a limited

[issue730473] Add Py_AtInit() startup hook for extenders

2012-06-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patrick, its been 5 years since you promised a 2nd patch (which would now have to be against the current 3.3 tip). If you have lost interested, perhaps we should close this. -- nosy: +terry.reedy versions: +Python 3.4 -Python 3.2

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: > the interfaces of the v4 and v6 variants are deliberately very similar I am hoping that means 'identical, once the obvious translations are made': v4 to v6, xxx.xxx.xxx.xxx to , and anything else? > documenting everything twice seems li

[issue15113] IDLE Shell: delattr(__builtins__, "getattr") causes shell to stop working

2012-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: To put it another way, IDLE is written for standard Python. A standard Python interpreter has a getattr builtin that works as documented in the library manual. Deleting that or any other builtin makes the interpreter non-standard. So would replacing or

[issue3982] support .format for bytes

2012-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you want to discuss this issue further, I think you post to python-ideas list with concrete examples. -- ___ Python tracker <http://bugs.python.org/issue3

[issue15079] pickle: Possibly misplaced test

2012-06-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue15079> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15080] Cookie library doesn't parse date properly

2012-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jeremy, when reporting bugs, please first check the latest release. This works in current 2.7.3 (as well as latest 2.6.8 and 3.3.0). >>> import Cookie >>> cookie = Cookie.SimpleCookie('bcookie="123"; Expires=Sat, 14-Jun-201

[issue15091] ImportError when package is symlinked on Unix

2012-06-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Tests stage: -> test needed type: -> behavior ___ Python tracker <http://bugs.python.org/issue15091> ___ ___

[issue15092] Using enum PyUnicode_Kind

2012-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since we have defined an enum, I think we should use it consistently. (Am I correct in thinking it was added after the initial patches.) So I did a sanity check of -/+ lines for perhaps unintended changes. The only things I found to comment on, mostly

[issue15104] Unclear language in __main__ description

2012-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: As a native speaker, I agree that the sentence, in isolation, is hardly comprehensible. The previous one is also a bit flakey. The situation is that top-level code executes in a module named __main__, which has one joint global/local namespace that is the

[issue15117] Please document top-level sqlite3 module variables

2012-06-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ghaering ___ Python tracker <http://bugs.python.org/issue15117> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: (OT, but since you brought it up: In my opinion, deprecating the iterability of any builtin class is a horrible idea. It is a Python feature, especially in 3.x, that all *are* iterable. However, I would agree that named tuples should be iterable by name

[issue11205] Evaluation order of dictionary display is different from reference manual.

2012-06-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Interpreter Core -None ___ Python tracker <http://bugs.python.org/issue11205> ___ ___ Python-bugs-list mailin

[issue15121] devguide doesn't document all bug tracker components

2012-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: None has over 1300 issues, mostly old (historical). It could be removed from current use, I think (if it is possible to hide such a thing). Cross-build has just 6 issues collected together in last three months. I do not think that is really enough to justify

[issue15135] HOWTOs doesn't link to "Idioms and Anti-Idioms" article

2012-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The file is 'controversial'. The link was intentionally removed (and the file deleted and restored but not relinked, pending update) in #7391 (which was closed and re-opened). Your links do not work because the comma/period that follow are consi

[issue15136] Decimal accepting Fraction

2012-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think *both* proposals are sensible. Fraction already has .from_decimal (using Decimal), so .to_decimal (also using Decimal) is sensible. It also has .from_float, with 'f.to_float' spelled f.__float__, normally called as float(f). On the other

[issue15137] Cleaned source of `cmd` module

2012-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do read PEP 8 Python style guide. http://python.org/dev/peps/pep-0008/ You violated the following: (Peeves) More than one space around an assignment (or other) operator to align it with another. Yes: x = 1 y = 2 long_variable = 3 No: x = 1 y

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The bug is the mismatch between doc and behavior. Unless someone can explain why the seemingly reasonable docstring is wrong, I would consider changing the behavior a possible fix. Can you add minimal test code that gives you an int? I should check windows

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Just that, which I used to verify with 2.7.3 and 3.3.0a4 in Win7 and do some more experiments: bv.set/get happily accept *and return* 2, -1, bv.set(2.2) 'works' bv.get() then raises TypeError: must be str, not float This will annoy you ;-)

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

2012-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is currently marked as a bugfix for current releases also. Since the proposal seems to be to introduce a new flag, should it be re-classified as enhancement (for 3.4)? -- ___ Python tracker <h

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark: "Variable.get(self) returns self._tk.globalgetvar(self._name). String/Int/Double/Var call str/int/float as appropriate." was meant to say that String/Int/Double/Var.get(self) already call str/int/float on the result of self._tk.globalgetvar(

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

2012-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that the overall trend in the stdlib seems to be to be more lenient in parsing, as with htmlparser, and that the not-really-strict 'strict' parameter for that is being removed, (#15114) I do not understand the objection to acceptin

[issue13799] Base 16 should be hexadecimal in Unicode HOWTO

2012-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I learned about different number bases in 8th grade math class (a long time ago) and how to use base 2 to win nim. I learned 'octal' and 'hexadecimal' much later. In the absence of an official, documented vocabulary for such non-Python co

[issue5765] stack overflow evaluating eval("()" * 30000)

2012-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.3.3a4 and b1, with original 3, I no longer get TypeError, but box "python(w).exe has stopped working". So either Win7, 64 bit, on machine with much more memory makes a diffence, or something in code reverted. Is this really a security iss

[issue15034] Devguide should document best practices for stdlib exceptions

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Raymond that this, especially super() is not tutorial material. I agree with David that we need something somewhere else. Just today a commit was pushed about IOException subclasses causing problems because they have an __init__ but don't

[issue1207613] Bottom Scroll Bar

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: #15141, which I will close as a duplicate, makes the same request (for the edit window). Roger Serwy notes that his extension package http://idlex.sourceforge.net/extensions.html has horizontal.py, which does what is requested. He is willing for that (or

[issue15141] IDLE horizontal scroll bar missing (Win-XPsp3)

2012-06-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> Bottom Scroll Bar ___ Python tracker <http://bugs.python.or

[issue15158] Add support for multi-character delimiters in csv

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Did you read "Unfortunately, delimiter is represented by a character in C." in one of the answers? If so, this should be rejected. For the posted problem, I added the following. >>> list(s[1:-1] for s in '"1234"||"abc

[issue15178] Doctest should handle situations when test files are not readable

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Failure modes tend to get less attention that successful behavior. If I wrote a program that used doctest/unittest to test multiple files, I should like it to run an many as possible. If a filename is bad, print name as usual, say 'aborted', and

[issue15180] Cryptic traceback from os.path.join when mixing str & bytes

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: This strikes me as a bugfix that does not get backported because code might depend on the bug. If the policy for exception messages, such as it is, documented somewhere? -- nosy: +terry.reedy ___ Python tracker

[issue15189] tkinter.messagebox does not use the application's icon

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is not clear to me what change your are proposing. -- nosy: +gpolo, terry.reedy type: -> enhancement versions: +Python 3.4 -Python 3.2 ___ Python tracker <http://bugs.python.org/issu

[issue15191] tkinter convenience dialogs don't use themed widgets

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: It has been agreed that IDLE could assume tk8.5 (or possibly 8.4 + tile extension) and use themed widgets (though it is not yet) and not run otherwise. Further discussion would be needed to do the same for tkinter, but maybe by 3.4 that might be reasonable

[issue15180] Cryptic traceback from os.path.join when mixing str & bytes

2012-07-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is definitely a motivated change ;-). I would like this re-typed as behavior and applied to 2.7, 3.2, and 3.3. I see the current message as being much like a garbled sentence in the docs that people can only understand if they already understand the

[issue1602] windows console doesn't print or input Unicode

2012-07-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.3b0, Win7, 64 bit. Original test script stops at File "C:\Programs\Python33\lib\encodings\cp437.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't e

[issue1602] windows console doesn't print or input Unicode

2012-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was reporting stock, as distributed 3.3b0. Is unicode3.py something to run once or import in each app that wants unicode output? Either way, if it is possible to fix the console, why is it not distribute it with the fix? >Terry, applications for

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2012-07-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue12967> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 3.3b0, Win7, 64-64 bit, run from IDLE, script brings up empty tk window. Closing it gives prompt back in Shell window. Maslach, can you retry with 2.7.3 (bug fix is generally a good idea anyway) and maybe 64 bit version (you can install both 32 bit and 64

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Raymond. You might, however, emphasize 'normal' in 'normal interpreter termination'. That is the key point. The 'note' merely explains 'abnormal'. -- nosy: +terry.reedy _

[issue15248] In "TypeError: 'tuple' object is not callable", explain that a comma may be missing

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Stephen is right; this sort of guess-the-bug heuristic is out of scope for the CPython interpreter. I believe you grossly under estimate the difficulty of such a this. Consider that idea rejected. What *is* disconcerting is the exact form of the error

[issue15248] Better explain "TypeError: 'tuple' object is not callable"

2012-07-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch title: In "TypeError: 'tuple' object is not callable", explain that a comma may be missing -> Better explain "TypeError: 'tuple' object is not callable" versions: +Python 3.4

[issue15251] new.code and new.function crashes Python iterpretter

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: In Py3, new.code and new.function become types.CodeType and types.FunctionType. The 'documentation' of their signatures is only available with help(types.xxx). So the library doc issue is 2.7 only. Running with IDLE, 3.3b0, Win7, the converted ex

[issue15256] Typo in error message

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

[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args

2012-07-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue15258> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15262] Idle does not show traceback in other threads

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.3, you do not need it >>> Unhandled exception in thread started by Traceback (most recent call last): File "F:\Python\mypy\tem.py", line 2, in f def f(): typo #there is no variable called typo NameError: global name 'typo

[issue5931] Python runtime name hardcoded in wsgiref.simple_server

2012-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Phillip, this is a trivial wsgiref patch. Do you have any opinion? -- versions: +Python 3.4 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue5

[issue13248] deprecated in 3.2, should be removed in 3.3

2012-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: We do not document removals after they are done as they are not an issue for back-compatibility (unlike changes and additions). Deprecation Warnings are optionally available for checking forward-compatibility. Deprecations are sometimes noted in the regular

[issue5931] Python runtime name hardcoded in wsgiref.simple_server

2012-07-07 Thread Phillip J. Eby
Phillip J. Eby added the comment: On Sat, Jul 7, 2012 at 2:37 PM, Terry J. Reedy wrote: > Phillip, this is a trivial wsgiref patch. Do you have any opinion? > Nope. -- ___ Python tracker <http://bugs.python.org/

[issue15262] Idle does not show traceback in other threads

2012-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unless this could have been just as easily fixed in IDLE as in the core (Roger?), no, don't hold your breath ;-). -- nosy: +serwy ___ Python tracker <http://bugs.python.org/is

[issue15262] Idle does not show traceback in other threads

2012-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Roger. So this should be fixed in the upcoming 2.7.4 and probably 3.2.4. -- ___ Python tracker <http://bugs.python.org/issue15

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the 'positive lookbehind assertion' for anchoring the match after '('. That is what I was missing. '[^,]' is too broad as, in particular, it matches the ')' in 'a(self)'. We don't want the

[issue1757057] Unexpected "maximum recursion depth exceeded" in IDLE shell with objects that cannot be pickled

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

[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch (to my production Idle, with name fix) prevents crashing and raises an error instead when an object *can* be pickled, so I will apply before 3.3 if no problems appear and we cannot do better. But written objects are still pickled, so

[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Martin. I was thinking of adding special-casing inside the rpcproxy class, but the wrapping is pretty clean and clear. Works great in 3.3 Win7-64. The 2.7 message 'expected a character buffer object' is technically correct*, but opaque, esp

[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tested and pushed the change to allow bytestrings. If anyone is printing other character buffer objects in 2.7 with Idle, they can explicitly convert to str/bytes, patch run.py, and/or post here or on a new issue for further expansion. I am otherwise done

[issue4832] idle filename extension

2012-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tested with defaultextension='' on Windows and it works well. If no extension is entered (no '.' in name), .py or .txt is added for the .py/w and .txt filetype choices. If there is a . in the name, nothing is added. If one wants x.y.p

[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2012-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would like to broaden this to add other missing features to the menus. I have no need for this, but I would like history-next/prev added (to shell, as they only apply there). I never learned them because at first I did not know about them and now it is

[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2012-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was thinking about #12387 about caps lock and shortcuts. -- ___ Python tracker <http://bugs.python.org/issue15308> ___ ___

[issue15313] IDLE - remove all bare excepts

2012-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: And possibly change the except clause. The except clause at PyShell 1245 was 'pass', which masked the issue of #13532 and was changed to 'raise' to effectively remove the try: except: to make the unknown problem more visible. It shou

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the _RPCFile wrapping of the stdin proxy should be undone unless and until there is a positive reason for it -- it solves a problem -- and it is better tested. But reversion does not solve pre-existing problems. As noted by Roger, sys.stdin

[issue15318] IDLE - sys.stdin is writeable

2012-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, this is part of #15319. sys.stdin is broken in being writable but not readable. Unwrapping is just the first, trivial step to fixing it. So I think we should close this in favor of the other. -- ___ Python

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ah, sys.stdin.readline() works. So the object being proxied has readline (and write and writelines) but not read and readlines. I presume the proxy is in the user process and the actual stdin/out/err objects are in the idle process, interacting with the

[issue15319] IDLE - sys.stdin is broken.

2012-07-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: IDLE - input() is broken. -> IDLE - sys.stdin is broken. ___ Python tracker <http://bugs.python.org/issue15319> ___ ___ Py

[issue4832] idle filename extension

2012-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. Go ahead. But what do you think of applying to 2.7 and or 3.2? I want to add a sentence to Idle help, which I want to edit for the tooltips issue also. But that is not a rush. -- ___ Python tracker <h

[issue15275] isinstance is called a more times that needed in ntpath

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

[issue15280] Don't use builtins as variable names in urllib.request

2012-07-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue15280> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2012-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I guess I should try to come up with something that is an improvement, even if not perfect. -- ___ Python tracker <http://bugs.python.org/issue14

[issue15363] Idle/tkinter ~x.py 'save as' fails. closes idle

2012-07-15 Thread Terry J. Reedy
New submission from Terry J. Reedy : I have (had ;-) a project file ~template.py with common boilerplate. To start a new project file, I want to open the above and save as xyz.py. I can edit and 'save' the template to update it just fine. But trying to do a 'save as' to

[issue14513] IDLE icon switched and switches on Windows taskbar

2012-07-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the next alpha release, everything was fine and I though about closing this. When I first installed b1, the problem came back. But in a few days, 3.3.0b1 started working right. I did two things since to my installed idlelib, beside just using it. First

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-07-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: The original patches were to all 3 versions. The later patches were to both 3.x versions and mostly involved get_argspec and expanding the tests. Get_argspec is somewhat different from get_arg_text, the 2.x function it replaced. The main difference I could

[issue15392] Create a unittest framework for IDLE

2012-07-18 Thread Terry J. Reedy
New submission from Terry J. Reedy : Idle needs a unittest framework for module test modules. This means a test directory with at least one test module, a runtest module that successfully runs that test module, any new support functions needed for that test module, and inclusion of test_idle

[issue13888] test_builtin failure when run after test_tk

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not a problem on Windows because the failing tests are skipped. test_input_tty (test.test_builtin.BuiltinTest) ... skipped 'the pty and signal modules must be available' test_input_tty_non_ascii (test.test_builtin.BuiltinTest) ... skipped &#x

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this test disabling and failure issue should get some attention. Do the failures happen on non-Windows systems too? With installed 3.3.0b1 on Win7, test___all__, test_tcl, test_tk, test_ttk_textonly, and test_ttk_guionly all run if run first (_tk and

[issue15392] Create a unittest framework for IDLE

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have not really used unittest, so I only know to blindly copy what has been done. Hence I need help to do better. Do you actually get gui tests for test_tk? When I run test/test_tk from Idle editor, and hence as __main__, I only get non-gui tests in spite

[issue13592] repr(regex) doesn't include actual regex

2012-07-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 is on extended maintenance for normal bugs, but does not get new features/enhancements. It is too late for 3.3 also. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue13

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would like to see my patch (cut and paste from message above) or something like it in the next beta. It fixes the problem (since forever?) of tcl/tk/ttk tests not running properly (at least on windows) as part of the test suite. (I presume the buildbots

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tested this on Windows in my installed 3.3.0b1. Copying the inserted lines to my repository copy (where I cannot test it) gives the attached patch. On 3.2.3, the insertion line would be 1056 instead of 1158. -- Added file: http://bugs.python.org

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hirokazu's original patch was to restore sys.modules after *every* test, not just sys.modules. That *did* cause problems because (at minimum) of references in importlib. Restoring only after __all__ would only let test_tcl run but not test_tk. And th

[issue10654] test_datetime sometimes fails on Python3.x windows binary

2012-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not see the error with installed 3.2.3. I **DO** see it consistently, when running the test with installed 3.3.0b1 on 64 bit Win 7. The only failure is == FAIL: test_computations

[issue10654] test_datetime sometimes fails on Python3.x windows binary

2012-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Both subclasses return NotImplemented for d+1. Otherwise, TypeError or NotImplemented as expected. See file. -- Added file: http://bugs.python.org/file26519/datetimetest.py ___ Python tracker <h

[issue15439] Include Misc/ACKS names into the documentation

2012-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Martin also. A short paragraph and link to the (combined) online file is quite sufficient. There is no need for the file to be in offline copies. And I would make the change in all current versions. -- nosy: +terry.reedy

[issue15444] Incorrectly written contributor's names

2012-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I basically agree with Marc-André. Indeed, I think Acks, at least, should contain names in native spelling plus, if that is not Latin-based, a romanization. Three reasons: 1. I want English-speaking Python programmers to feel welcome to contribute and be

[issue15451] PATH is not honored in subprocess.Popen in win32

2012-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Richard is correct. From 17.1.1.2. Popen Constructor "If env is not None, it must be a mapping that defines the environment variables for the new process; these are used instead of inheriting the current process’ environment, which is the default beh

[issue15457] consistent treatment of generator terminology

2012-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think the current entry calling a generator function a generator is wrong, so I appreciate your patch. Generator functions return instances of class 'generator'*. I personally refer to generators as generator-iterators about as often as I refer t

[issue15453] ctype with packed bitfields does not match native compiler

2012-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you have not, please check other ctypes bitfields issues, especially #15119 "ctypes mixed-types bitfield layout nonsensical; doesn't match compiler." to see if this is the same problem. -- nosy: +terry.reedy version

<    80   81   82   83   84   85   86   87   88   89   >