[issue13847] Catch time(), ftime(), localtime() and clock() errors

2012-01-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch type: -> enhancement ___ Python tracker <http://bugs.python.org/issue13847> ___ ___ Python-bugs-list

[issue13848] io.open() doesn't check for embedded NUL characters

2012-01-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: See also #13849 -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13848> ___ ___ Python-bugs-list mailin

[issue13849] Add tests for NUL checking in certain strs

2012-01-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a bit related to #13848 files 2 seconds earlier. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2012-01-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +orsenthil stage: -> test needed type: -> enhancement versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Python tracker <http://bugs.python.org/i

[issue13867] misleading comment in weakrefobject.h

2012-01-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Library (Lib) -Documentation, Extension Modules nosy: +fdrake, pitrou ___ Python tracker <http://bugs.python.org/issue13

[issue13703] Hash collision security issue

2012-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: > I think you should check with randomization enabled, if only to see the > nature of the failures and if they are expected. Including the list of when-enabled expected failures in the release notes would help those who compile an

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the initial comment, 'Dummy' to 'Deleted' here but only here: - Holds an active (key, value) pair. Active can transition to Dummy + Holds an active (key, value) pair. Active can transition to Deleted Im Lib/test/tes

[issue4966] Improving Lib Doc Sequence Types Section

2012-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with 3.3 only. This might not be ready for 3.2.3 anyway, depending on how soon hash patch is ready, and if not, it becomes a somewhat moot point as new people should then download 3.3.0 instead of 3.2.4 next August

[issue13506] IDLE sys.path does not contain Current Working Directory

2012-01-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tested on 3.2, Win 7. sys.path starts with '' on startup, after restart, and after ^c interrupt of 'while True: pass'. It start with absolute path when running a file from the editor. I believe this is as should be. I simplified the pa

[issue13506] IDLE sys.path does not contain Current Working Directory

2012-01-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file24376/issue13506c.diff ___ Python tracker <http://bugs.python.org/issue13506> ___ ___ Python-bug

[issue13506] IDLE sys.path does not contain Current Working Directory

2012-01-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whoops, hit submit too soon, before saving tab to space change. -- Added file: http://bugs.python.org/file24377/issue13506d.diff ___ Python tracker <http://bugs.python.org/issue13

[issue13506] IDLE sys.path does not contain Current Working Directory

2012-01-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I noticed that the script in ScriptBinding.py already dereferences interp and calls 3 interp functions directly, so I decided that calling a 4th on interp was fine. That lets restart_shell be specialized to the one purpose of being bound to Restart Shell on

[issue13915] Update Tutorial 6.1.3 for PEP 3145

2012-01-31 Thread Terry J. Reedy
New submission from Terry J. Reedy : http://docs.python.org/py3k/tutorial/modules.html#compiled-python-files needs to be updated for 3.2+ to reflect http://python.org/dev/peps/pep-3147/ The first sentence is still technically correct, but finding x.pyc in the same directory as x.py is now an

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Phillip J. Eby
Phillip J. Eby added the comment: The problem might be that you're iterating over more than just the top level; if you look for submodules then the parent package has to be imported... and that might make that window load, if there's module-level code in the package __init__ that

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Phillip J. Eby
Phillip J. Eby added the comment: I don't have the code you're talking about in front of me; just wanted to give you a lead on the likely cause. -- ___ Python tracker <http://bugs.python.o

[issue12902] help("modules") executes module code

2012-02-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: #13902 is essentially a duplicate of this and I may close it. I am thinking now that executing unknown amounts of unknown code from unknown modules is a really bad idea. If a module just crashes the system, as happened with the OP of the above, there is no

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is essentially a duplicate of #12092. For the OP there, the stall happens because something on Gnome pops up a configuration GUI and, I presume, waits for response. I am thinking now that 'modules' is simply a bad idea and should be

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- superseder: Clarify sentence in tutorial -> help("modules") executes module code ___ Python tracker <http://bugs.pytho

[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: digit transposition corrected 12902 -- ___ Python tracker <http://bugs.python.org/issue13926> ___ ___ Python-bugs-list mailin

[issue12955] urllib.request example should use "with ... as:"

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Senthil: http://docs.python.org/dev/library/contextlib.html#contextlib.closing currently has this example: from urllib.request import urlopen with closing(urlopen('http://www.python.org')) as page: which is misleading in that the object returned fr

[issue13896] Make shelf instances work with 'with' as context managers

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: contextlib.closing is an adapter for using objects that have a close method but have not be modernized to be context managers by having _enter__ and __exit__ methods added. Its doc gives the example with closing(urlopen('http://www.python.org')) as

[issue13899] re pattern r"[\A]" should work like "A" but matches nothing. Ditto B and Z.

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does anyone have regex installed, to see what it does? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13

[issue11944] Function call with * and generator hide exception raised by generator.

2012-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> Function calls taking a generator as star argument can mask TypeErrors in the generator ___ Python tracker <http://bugs.python.or

[issue13904] Generator as *args: TypeError replaced

2012-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file24358/typeerror-replaced-in-stararg.diff ___ Python tracker <http://bugs.python.org/issue13

[issue13904] Generator as *args: TypeError replaced

2012-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file24358/typeerror-replaced-in-stararg.diff ___ Python tracker <http://bugs.python.org/issue13904> ___ ___

[issue13904] Generator as *args: TypeError replaced

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I unlinked to see if I could link it to 4806 instead. Did not work. Please nosy yourself there and upload your files to *that* issue. -- nosy: +terry.reedy resolution: -> duplicate status: open -> closed superseder: -> Function calls

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: #13904 is another dup, with patches to test and ceval. I asked that they be reloaded to this issue. -- nosy: +ncoghlan versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue4

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

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

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is one of 4 duplicate issues, 3 with somewhat similar patches, with nearly disjoint nosy lists. Consolidating. -- nosy: +terry.reedy resolution: -> duplicate status: open -> closed superseder: -> Function calls taking a generato

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: #5218 is a 4th duplicate, also with a patch to the ceval loop and test. -- nosy: +georg.brandl, gpolo, pitrou ___ Python tracker <http://bugs.python.org/issue4

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry Martin, I see you already said that. Anyway, I closed other three in favor of this one. -- ___ Python tracker <http://bugs.python.org/issue4

[issue13909] Ordering of free variables in dis is dependent on dict ordering.

2012-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ncoghlan stage: -> test needed versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue13909> ___ ___ Py

[issue13910] test_packaging is dependent on dict ordering.

2012-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +alexis, eric.araujo, tarek stage: -> test needed versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue13911] test_trace depends on dict repr() ordering

2012-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +belopolsky stage: -> test needed versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue13911> ___ ___ Py

[issue13933] IDLE:not able to complete the hashlib module

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ramchandra: what OS and Python version? Please always include in reports. I verified on win7,3.2.2, with hashlib versus itertools, idlelib, heapq, trace. (On my new machine, popup is so fast I do not need .) In fact, 'hashlib.' and results in a t

[issue13932] If some test module fails to import another module unittest reports a very misleading message

2012-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Tests nosy: +ezio.melotti, michael.foord ___ Python tracker <http://bugs.python.org/issue13932> ___ ___ Python-bug

[issue13929] fnmatch to support escape characters

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The doc chapters are entitled "fnmatch — Unix filename pattern matching" and "glob — Unix style pathname pattern expansion". The first explicitly disclaims the feature you request: "Be aware there is no way to quote meta-characters.

[issue13899] re pattern r"[\A]" should work like "A" but matches nothing. Ditto B and Z.

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you intend regex to match the spec rather than bugs. So if re has a bug in an obsure corner case and the spec is ambiguous, as I have the impression is the case here, using the interpretation embodied in regex would avoid creating a conflict

[issue13929] fnmatch to support escape characters

2012-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: If indeed fnmatch does not match current shells, then I would agree that it should. It looks to me so easy to add that I though it must be a deliberate decision to exclude. In translate: ... elif c == '\': if i < n-1:

[issue13896] Make shelf instances work with 'with' as context managers

2012-02-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: test needed -> patch review ___ Python tracker <http://bugs.python.org/issue13896> ___ ___ Python-bugs-list mai

[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you both. I saw the answer (hashlib.__all__ is, unusally, a tuple) but did not see how it was the answer. -- ___ Python tracker <http://bugs.python.org/issue13

[issue964437] idle help is modal

2012-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Download, tested on W7, 3.2.2. Started help, brought to front, stopped, restarted, in both shell and edit window and all fine *except* when I closed edit window with help attached, which closes help also, and tried to open help in shell, idle 'sil

[issue964437] idle help is modal

2012-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I retried and get same behavior: help closes with closing of edit window and trying to reopen from shell closes idle with about 2 second delay. Does this +if self.root: +parent = self.root +else: +parent = self.top

[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: 6.11 Import statement says " __all__; if defined, it must be a sequence of strings which are names defined or imported by that module." I am tempted to open an issue to change 'sequence' to 'list', or even 'sorted sequence

[issue964437] idle help is modal

2012-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was sure I had reverted, but did again, redownloaded, applied, and tested, and all well, so committed and pushed. 2.7 required hand-patching of ', modal' for chunk 5 due to 3rd argument being 'textFile.read()' instead of 'conte

[issue4356] Add "key" argument to "bisect" module functions

2012-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: On python-ideas, thread "Optional key to `bisect`'s functions?" Guido wrote "Bingo. That clinches it. We need to add key=." 'That' being the fact that values that have keys may not be comparable themselves (in py3), so th

[issue4356] Add "key" argument to "bisect" module functions

2012-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Already on tracker as #13742 Add a key parameter (like sorted) to heapq.merge -- ___ Python tracker <http://bugs.python.org/issue4

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, Guido approves of the idea, msg152969 in #4356 -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13

[issue1528593] Printing: No print dialog or page setup

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

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-02-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Option 1 is to fix the regression in the 2.7/3.2 Python versions and change the C version to conform to the doc and older Python versions., even though it is the wrong error, and even though Python asserts disappear with -O (which is why it is the wrong

[issue12297] Clarifications to atexit.register and unregister doc

2012-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I assume the patch is an improved description of reality. The old 'without binding the original name to ``None``.' is confusing to me in that context, so good riddance. However, I am not familiar with atexit or how it is intended to work. If you ar

[issue13946] readline completer could return an iterable

2012-02-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue13946> ___ ___ Python-bugs-list mailing list Unsub

[issue13952] mimetypes doesn't recognize .csv

2012-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: One solution would be to update our mimetypes file just before a new version, and then leave it until the next, just as we update unicodedata to current unicode and then leave it alone for bugfix releases. Rather than the entire IANA file, which has a lot of

[issue13963] dev guide has no mention of mechanics of patch review

2012-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: At one time, reviews (or the fact of a review) were posted back here automatically (or perhaps it is an option?) just like push messages. But I am not much familiar with the process either. -- nosy: +terry.reedy

[issue13972] set and frozenset constructors don't accept multiple iterables

2012-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe s = set(); s.update(s1, s2, s3, ...) a) does what is requested; b) is the proper spelling, as the request *is* for a union of input collections. So I recommend closing. -- nosy: +terry.reedy ___ Python

[issue13986] ValueError: cannot convert float NaN to integer

2012-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I believe the error message, os.fstat(f.fileno()).st_mtime is returning a NaN, which would be a bug in our function or your system. Since os.fstat should be a thin wrapper over the system call, I would lean to the latter. I do not know if writing to

[issue3905] subprocess failing in GUI applications on Windows

2012-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.2.2, starting IDLE from a Command Prompt, I get the same error as Denver. Starting IDLE 'normally', from the icon, there is no error. So even though Command Prompt detaches pythonw in some way and gives me a new prompt to do something else

[issue12297] Clarifications to atexit.register and unregister doc

2012-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: + This function returns *func* which makes it possible add , after 'func'. +This obviously only works with functions that ... I think I would like this better without 'obviously' (which you inherited). Otherwise, se

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-02-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doc/library/string.rst string.Formatter().format(fmt, 10)needs a couple of changes also. 1. "format(format_string, *args, **kwargs) format() is the primary API method. It takes a format template string," I think 'template' should be rem

[issue13579] string.Formatter doesn't understand the !a conversion specifier

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

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just noticed two more minor errors that were and remain in "It takes a format string, and an arbitrary set of positional and keyword argument." Remove the comma and make 'argument' plural. As near as I can tell, the two change block

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: However, I have not actually applied and run test_string.py. -- ___ Python tracker <http://bugs.python.org/issue13579> ___ ___

[issue14019] Unify tests for str.format and string.Formatter

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

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with no new builtin and appreciate that being taken off the table. I think the place is the Unicode How-to. I think that document should be renamed Encodings and Unicode How-to. The reasons are 1) one has to first understand the concept of encoding

[issue14003] __self__ on built-in functions is not as documented

2012-02-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python-coded functions do not have .__self__. >>> def f(): pass >>> f.__self__ ... AttributeError: 'function' object has no attribute '__self__' Unbound builtin methods, which are simply builtins functions attached to a

[issue14005] IDLE Crash when running/saving a file

2012-02-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: With Win7 now, XP previously, I routinely run programs from the IDLE editor window. So do other people, So there is something different on your machine. -- nosy: +terry.reedy ___ Python tracker <h

[issue14023] bytes implied to be mutable

2012-02-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: applied to 3.3 also -- assignee: docs@python -> terry.reedy nosy: +terry.reedy resolution: -> fixed status: open -> closed versions: +Python 3.3 ___ Python tracker <http://bugs.python.or

[issue14042] json.dumps() documentation is slightly incorrect.

2012-02-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Entry for dump says "If ensure_ascii is False (default: True), then some chunks written to fp may be unicode instances," Entry for dumps says "If ensure_ascii is False, then the return value will be a unicode instance." Entry for

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

2012-02-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, the 'how to' alternatives, with + and -, should be included in the doc addition. I thought it the best thing to come out of the python-ideas thread. -- ___ Python tracker <http://bugs.python.o

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

2012-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Some changes have been made to the subprocess connection code since my last message here. I believe they occurred after the last releases. There should be new 2.7.3 and 3.2.3 releases in about a month, after PyCon. Larry, if you can semi-deterministically

[issue14117] Turtledemo: exception and minor glitches.

2012-02-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : Win7, 3.2.2, python -m turtledemo in Command Prompt Window After running clock example, hitting Stop results in following: Clock face, including hands, is erased. Day and date are left (intentional?), and the following appears back in command prompt window

[issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +bethard ___ Python tracker <http://bugs.python.org/issue14046> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14049] execfile() fails on files that use global variables inside functions

2012-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Searching on 'exec NameError' shows that this issue is a duplicate of (behavior issue) #1167300 which contained an essentially identical example" >>> exec """\ ... x = 3 ... def f(): ... print x ... f() ...

[issue13557] exec of list comprehension fails on NameError

2012-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Issues like this, about exec, have come up multiple times. I just closed #14049 as a duplicate of this, and listed there some other issues. So I think that the doc for exec (and execfile in 2.7) could be better still. I would like to see something like the

[issue14074] argparse does not allow nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2012-02-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +bethard ___ Python tracker <http://bugs.python.org/issue14074> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14076] sqlite3 module ignores placeholers in CREATE TRIGGER code

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

[issue14089] Patch to increase fractions lib test coverage

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

[issue14092] __name__ inconsistently applied in class definition

2012-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not a bug report, as Python works as documented. Double underscore names are defined as *reserved* for the interpreter, with the ones actually in use having defined meanings. type.__new__ sets several internally used attributes on new classes. The

[issue14105] Breakpoints in debug lost if line is inserted; IDLE

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

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Shallow' is a common English word: "Stay in shallow water until you learn to swim!" But that is not the issue here. I think the underlying issue is that the first sentence "All slice operations return a new list containing the requ

[issue14097] Improve the "introduction" page of the tutorial

2012-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: In English, calling someone or something 'degenerate' is a major insult. In means that x is not really human or what it seems or what it was. I remember being initially startled or puzzled at the mathematical usage, but it actually is similar, ju

[issue14097] Improve the "introduction" page of the tutorial

2012-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think we should feel free to change 'variable' to 'name', especially in the Intro, if it can be done gracefully in context. In my experience with python-list, the former seems a source of confusion for Python newbies. I try to avoid i

[issue14163] tkinter: problems with hello doc example

2012-02-29 Thread Terry J. Reedy
New submission from Terry J. Reedy : After an intro, the tkinter docs start with a traditional 'Hello World'. http://docs.python.org/py3k/library/tkinter.html#a-simple-hello-world-program Problem 1. The example ends with root.destroy John Salerno, today, on python-list thread "

[issue14163] tkinter: problems with hello doc example

2012-02-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Rick Johnson anwered question 1b on python-list: simply move root.destroy to the button. I make other changes also: use import...as; show that options can be set in constructor call. File uploaded. -- stage: -> patch review Added file: h

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do you know anything about spaces in the button text causing the addition of {bra ces}? I would prefer not to have to use an underscore in Hello_World. I fixed the long line and also updated pack calls pass options by name instead of a dict

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file24693/tk_hello.py ___ Python tracker <http://bugs.python.org/issue14163> ___ ___ Python-bugs-list m

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file24712/tk_hello.py ___ Python tracker <http://bugs.python.org/issue14163> ___ ___ Python-bugs-list m

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: G, another but in the original ;-) Thank you! I will incorporate into the doc now. -- Added file: http://bugs.python.org/file24713/tk_hello.py ___ Python tracker <http://bugs.python.org/issue14

[issue14126] Speed up list comprehensions by preallocating the list where possible

2012-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this proposal should be rejected for three reasons. 1. I believe the idea is faulty in that it can only work if the single source iterable *has* a known length. The compiler cannot, in general, determine that and in practice seldom would be able to

[issue14141] 2.7.2 64-bit Windows library has __impt_Py* for several symbols instead of __imp__Py*

2012-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am building and running 2.7.2 on 64-bit Win 7 from the repository but not linking to anything else. Please look at the 2.7.3 release candidate. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.

[issue14146] IDLE: source line in editor doesn't highlight when debugging

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

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

2012-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please provide a *minimal* example that exhibits the problem. 'Minimal' means that if a single line is removed, the problem disappears. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.o

[issue14176] Fix unicode literals

2012-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I explained to J-M when he posted much the same to python-list, Idle's French keyboard support is faulty because tcl/tk's French keyboard support is faulty. A patch for this was recently applied to tcl/tk. I hope it will be in a released versi

[issue14176] Fix unicode literals

2012-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: > That would mean in Python 3, '...' works and u'...' will not work. You misunderstand the PEP: in 3.3, '...' and u'...' will be *exactly* the same. The only change is that the interpreter will ignore the u prefix

[issue14200] Idle shell crash on printing non-BMP unicode character

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

[issue12342] characters with ord above 65535 fail to display in IDLE

2012-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: In responding to #14200, it occurred to me that better than an exception would be doing what the interpreter does in Command Prompt window, which is expand high chars to '\U0001' escaped form. --

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 3.2.2, Win7, the length is 2 and printing in Idle prints a square, as it usually does for chars it cannot print. I presume Tk recognizes surrogate pairs. Printing to the screen should not raise an exception, so the square would be better. Even better

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

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

[issue14218] include rendered output in addition to markup

2012-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is not unusual and perhaps common for markup documentation to give rendered output for example input. This is similar to what we do in the tutorial and elsewhere with interactive examples: >>> 2 + 2 # input code 4 # output of running the c

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

2012-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Many issues take a while, depending on volunteers time and choice of priority. -- ___ Python tracker <http://bugs.python.org/issue13

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