[issue10058] Unclear PyString_AsStringAndSize return value

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not much familiar with the C api but I presume that all functions return -1 on error and that this is documented somewhere in the beginning. I also presume that functions that return values thru passed in pointers and that are documented as returning an

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file19192/unnamed ___ Python tracker <http://bugs.python.org/issue10060> ___ ___ Python-bugs-list mailin

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The unnamed quasi-html file loaded with msg118397 was a unless, essentially unreadable duplicate of that message, hence removed. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue10

[issue10073] calendar.isleap() not checking parameter type

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, Alexander's example >>> calendar.isleap("%d") False is a buggy result. So I would reclassify the issue. The rationale for not checking input types is that bad types result in an error, but that does not happen here due t

[issue10109] itertools.product with infinite iterator cause MemoryError.

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The input to itertools.product must be a finite sequence of finite iterables. itertools.count(startvalue) produces an infinite sequence of ints (which are not iterable). Passing the latter to the former causes the latter to run until memory is exhausted. You

[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think the title is slightly misleading. As I read the patch, the issue is that PyArg_ParseTupleAndKeywords requires that string args to C functions be valid Unicode strings (and that it does this by trying to encode to utf-8). Your patch subverts this by

[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pardon my ignorance, but given that code.co_filename is a string attribute given as a string, which is to say, unicode in 3.x, I do not see what filesystem encodings, or any other encoding to bytes should really have to do with the attribute. I actually

[issue10058] C-API Intro should be more explicit about error return codes

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Assuming it is true, the rewrite strikes me as an improvement. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10137] Patch to IDLE for Python 2.7, at Guido's request

2010-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bruce, what Ned suggests is what I intended with my IDLE-list message, and in accord with usual tracker practice. Issues often apply to multiple versions and thereby require multiple patches and commits. I know you are relatively new at this and very much

[issue10137] Patch to IDLE for Python 2.7, at Guido's request

2010-10-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> idlelib for Python 3 with Guilherme Polo GSoC enhancements ___ Python tracker <http://bugs.python.or

[issue2193] Cookie Colon Name Bug

2010-10-19 Thread John J Lee
John J Lee added the comment: dstanek> Would it be better to file bugs against buggy implementations instead of changing Python's implementation to be more lenient? No. Another app running on the same domain that knows nothing about RFC 2109 (and why should it?) shouldn'

[issue10118] Tkinter does not find font

2010-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 is in security-fix only mode. I am assuming that this is still a problem in 2.7 (and possibly 3.x). It would be good to confirm this. -- nosy: +terry.reedy versions: +Python 2.7 -Python 2.6 ___ Python tracker

[issue10160] operator.attrgetter slower than lambda after adding dotted names ability

2010-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: >I am not sure whether I should attach a zip/tar file with both the attachments >(the sample benchmark and the diff); so I'll attach the diff in a further >comment. Uploading separate files with .py, .diff extensions that can be viewed in

[issue10172] code block has no syntax coloring

2010-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 only (verified); 3.1 and 3.2 are fine. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue10172> ___ ___

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Various comments: I usually expect things in stdlib to be usefully importable. Idlelib is clearly an exception. >> Also many people don't expect to find any code in a file named >> __init__.py (and most of the time I agree with this).

[issue10177] PyUnicode_AsWideCharString and PyMem_Free

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think questions like this are better answered on python-list or even pydev. In the absence of an observed problem, I would presume it is ok. This question should be answered in the C-API doc. If it is not, you could reopen this as a doc issue

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Shutdown has been a 'forever' problem ;-). It would seem sensible to me to have a fixed end-of-shutdown sequence for essential modules. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.o

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

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the absence of doc references in this and #10211 that would *clearly* settle the bug vs. feature issue, it strikes me as a bit murky. So I am inclined to agree with MAL that failure to achieve the stated, documented purpose is a bug. I strongly suspect

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have not tried your testcase yet, but agree that issue 4 sounds pretty bad. I guess what you are looking for is either a patch to tkinter that solves at least one of the listed problems (even if only a workaround for a TK bug) or a determination that

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran testcase.py with stock 3.1.2 on winxp (under IDLE). Changes needed (one place each) were Tkinter -> tkinter print x -> print(x) <> -> !=# <> is long since deprecated! I get 3 line box windowing 10 lines. If I enlarge window,

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Éric, go ahead and consolidate to one issue if you can get to it. Do the other issues shows problems with 3.1 or 3.2 also? I wonder because I have never seen the box in the posted .png and wonder if that is a new 'feature' with 2.7 and possibly 3.

[issue7061] Improve 24.5. turtle doc

2010-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: On initialization: the json doc has 6 examples. Each starts with 'import json' so each is independent. However, I agree that doing the same for turtle examples would be a bit much. On the other hand, I think 24.5.3. *Methods of RawTurtle/

[issue7061] Improve 24.5. turtle doc

2010-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: GREGOR, I think we need your help to answer a few of these. Subissues from my opening post not resolved in rev85732 "version of python installed with Tk support.": cap 'python' to 'Python' Is there any st

[issue10286] URLOpener => URLopener x2 in fix_urllib.py

2010-11-01 Thread Terry J. Reedy
New submission from Terry J. Reedy : Lib/lib2to3/fixes/fix_urllib.py, near the top, has ''' MAPPING = {'urllib': [ ('urllib.request', ['URLOpener', 'FancyURLOpener', 'urlretrieve', ''

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: For me, with a standard Python install, 'use tix' would be a good answer. After thanking the respondent, you could try answering 'why' ('I am using a custom build.'). Just remember that python-list and mirrors are like the Wi

[issue8805] urllib should support SSL contexts

2010-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #10050 you suggest deprecating *URLopener (not *Opener, the misspelling also in fix_urllib.py #10286) and other stuff. Which do you actually prefer, upgrade or degrade? -- nosy: +terry.reedy ___ Python tracker

[issue10155] Add fixups for encoding problems to wsgiref

2010-11-03 Thread Phillip J. Eby
Phillip J. Eby added the comment: Committed to Py3K in r86146, with added docs and a larger list of transcodable CGI variables. -- ___ Python tracker <http://bugs.python.org/issue10

[issue960325] "--require " option for configure/make (fail if building not possible)

2010-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing this as some combination of wrong, inapplicable, out-of-date, and postponed. 1. In 3.1, ssl *is* documented as optional in the sense of dependent on an external library. "This module uses the OpenSSL library. It is available on all m

[issue6305] islice doesn't accept large stop values

2010-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.1.2, range handles large numbers. >>> list(range(10, 500, 100)) [10, 110, 210, 310, 410] # those are all billions This means that the 'equivalent' code in the doc will wor

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Robert, I interpret your response to Hirokazu to mean that his suggestion works. Hence I am following his suggestion. Reopen is I erred. -- resolution: -> works for me status: open -> closed ___ Python t

[issue10245] Fix resource warnings in test_telnetlib

2010-11-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review ___ Python tracker <http://bugs.python.org/issue10245> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10245] Fix resource warnings in test_telnetlib

2010-11-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue10245> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10270] Fix resource warnings in test_threading

2010-11-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review type: -> behavior ___ Python tracker <http://bugs.python.org/issue10270> ___ ___ Python-bugs-list

[issue10299] Add index with links section for built-in functions

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: +1 from me on a table at the top of the functions page. I am assuming that the markup will induce hotlinks. The main problem I see is the need to hand rewrite when another function is added -- nosy: +terry.reedy

[issue10303] small inconsistency in tutorial

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The sentence should be deleted. Print is *not* used in any of the previous examples. This is the first mention of print() in the chapter and is nonsensical in context. -- keywords: +easy nosy: +terry.reedy stage: -> needs patch versions: +Python

[issue10304] error in tutorial triple-string example

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: 1. Rather than add a blank line to the output, the input should have the newline suppressed with \ (which has been done in previous examples). print("""\ 2. It is rather difficult to see that there is no blank at the end (highlight wit

[issue10304] error in tutorial triple-string example

2010-11-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +easy ___ Python tracker <http://bugs.python.org/issue10304> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10324] Modules/binascii.c: simplify expressions

2010-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: As near as I can tell, since && and || are logical rather than bitwise, and since the variable reference 'quotetabs' has no side effect, you are correct. Have you run the unittest on a patched build? -- nosy: +terry.reedy stage:

[issue10328] re.sub[n] doesn't seem to handle /Z replacements correctly in all cases

2010-11-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue10328> ___ ___ Python-bugs-list mailing list Unsub

[issue11603] Python crashes or hangs when rebinding __repr__ as __str__

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.2 on WinXP, I get no error report in interactive mode, with either IDLE or plain interpreter, nor from 'python file' in Command Prompt window. But now with the print added to what I ran before, I see no print output, and I see that IDLE is

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2011-03-18 Thread Terry J. Reedy
New submission from Terry J. Reedy : People occasionally ask on python-list about the following error message when trying to create a class: > TypeError: Error when calling the metaclass bases > module.__init__() takes at most 2 arguments (3 given) It is a bit cryptic. It is also acci

[issue11397] os.path.realpath() may produce incorrect results

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.5 and 2.6 are only open for security issues. I am guessing that 2.7, 3.1, and 3.3 are affected. I cannot test as I only have Windows currently. -- nosy: +terry.reedy stage: -> test needed versions: +Python 2.7, Python 3.1, Python 3.3 -Python

[issue11412] Section numbers in the Library Reference have a trailing period

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: My haphazard sample gave 8 without, 5 with. I suspect trailing dot is analogy with lists: 1. something. 2. something else. 2.1. detail of else 2.2. more detail Books without generally have extra space instead of '.'. -- nosy: +t

[issue11415] ZipFile don't overwrite compresed files at create

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is only open for security fixes. -- nosy: +terry.reedy resolution: -> invalid status: open -> closed superseder: -> remove/delete method for zipfile/tarfile objects versions: -Python 2.6 ___ Pytho

[issue11418] Method's global scope is module containing function definition, not class.

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: "Methods defined within a class may reference..." would make the tutorial correct without introducing the complication of methods defined outside a class, let alone in another module. -- nosy: +t

[issue11432] webbrowser.open on unix fails.

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: With fix, test, and news in 3.2 and 3.3, is anything left to do? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue11

[issue11462] Peephole creates duplicate and unused constants

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eugene has started work on AST optimizer in #11549 -- nosy: +terry.reedy superseder: -> Rewrite peephole to work on AST ___ Python tracker <http://bugs.python.org/issu

[issue11549] Rewrite peephole to work on AST

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: A couple of somewhat related issues: #10399 AST Optimization: inlining of function calls #1346238 A constant folding optimization pass for the AST Obviously, ast optimizers should work together and not duplicate. Nice to see increased attention

[issue1346238] A constant folding optimization pass for the AST

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: #11549 Rewrite peephole to work on AST includes constant folding. I have not compared. -- nosy: +terry.reedy versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue1346

[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is only open for security issues, so any verification should use later version. -- nosy: +terry.reedy status: pending -> open versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issu

[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue11463> ___ ___ Python-bugs-list mailing list Unsubscri

[issue11465] Set documentation: Link to wikipedia

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is no end of helpful articles at Wikipedia and elsewhere. Wikipedia articles are especially easy to find with a special search in some browsers and on the site. In my experience on python-list, for instance, people have much more problem with floats

[issue10954] No warning for csv.writer API change

2011-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since this is not a doc issue, doc people would not especially see it. That aside... What is *your* review. Does it satisfy you? Answer on #7198 if you want. And please be a bit patient as people are learning the new hg system

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2011-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whoops. That should be 'Cannot subclass a module' or 'Cannot subclass module %s' % modulename. Types.ModuleType can indeed by subclassed. I agree that this is not a pressing issue, but it will at least provide an answer to anyone searc

[issue11397] os.path.realpath() may produce incorrect results

2011-03-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: test needed -> needs patch ___ Python tracker <http://bugs.python.org/issue11397> ___ ___ Python-bugs-list mailing list Un

[issue3722] print followed by exception eats print with doctest

2011-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: You misunderstood my last response. The first paragraph *dismisses* the case of temporary print (raised by Charles-Axle) as out of scope for doctests and hence this issue. The next ones addresses *your* case of code *permanently* intended to print and raise

[issue10828] Python 3 doesn't support non-ASCII module names with a locale encoding different than UTF-8

2011-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: As Victor noted, this issue is essentially a duplicate of #3080 (and others) and now #11619 and needs no independent action apart from the latter. Since the discussion with ingemar seems finished, I am now closing. -- resolution: -> duplicate sta

[issue11619] On Windows, don't encode filenames in the import machinery

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

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python 3.2, WinXP, IDLE edit window, F5 Run: 'Processing ...' appears immediately, 'Done' 3 sec later. The only difference between printtest2/3 is where 'Done' appears. Behavior is same when pasting into interactive interpreter

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file21350/ebe5760afa08.diff ___ Python tracker <http://bugs.python.org/issue11591> ___ ___ Python-bug

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21350/ebe5760afa08.diff ___ Python tracker <http://bugs.python.org/issue11591> ___ ___ Python-bug

[issue11633] regression: print buffers output when end=''

2011-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I completely agree that file/socket output should be left alone. Flushing char by char to either is a bit insane. The two interactive to screen use cases I can think of are text progress meters, mentioned by Anatoly, such as : Working (1 dot printed at

[issue11549] Rewrite peephole to work on AST

2011-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect someone will sometime. There is bit of a backlog of older issues. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11671] Security hole in wsgiref.headers.Headers

2011-03-25 Thread Phillip J. Eby
Phillip J. Eby added the comment: > It is not uncommon that developers provide web applications to the public in which the HTTP response headers are not filtered for newlines but are controlled by the user. Really? Which applications, and which response headers? > Therefore, I sugg

[issue5135] Expose simplegeneric function in functools module

2011-03-25 Thread Phillip J. Eby
Phillip J. Eby added the comment: Just as an FYI, it *is* possible to do generic functions that work with Python's ABCs (PEAK-Rules supports it for Python 2.6), but it requires caching, and a way of handling ambiguities. In PEAK-Rules' case, unregistering is simply ignored, and

[issue11549] Rewrite peephole to work on AST

2011-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: While I would not be happy to use class X above, the 3.2 manual explicitly says "There are no implied relationships among the comparison operators. The truth of x==y does not imply that x!=y is

[issue11632] difflib.unified_diff loses context

2011-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 only gets security fixes now. -- nosy: +terry.reedy versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue11

[issue11655] map() must not swallow exceptions from PyObject_GetIter

2011-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Ray. This is essentially a feature request which you say has already been implemented in Py 3 but which cannot go into Py2.7. Only fixes for bugs (discrepancies between doc and behavior) can go into 2.7. I suspect 2.6 and before acted the same

[issue11643] Use |version| instead of X.Y in the doc

2011-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the docs literally use "X.Y", so that that can be grepped, then attaching a grep result would make this even easier for someone on Windows without grep. -- nosy: +terry.reedy ___ Python trac

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Terry J. Reedy
New submission from Terry J. Reedy : l=[1,3,2] l.sort(cmp=lambda x,y:y-x, key=lambda x: x) print(l) With CPython 2.7 this 1) could raise an exception like TypeError: conflicting arguments passed; 2) could ignore cmp= and print [1,2,3] on the basis that the new should override the old; 3) does

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: On pydev, Mathew Woodcraft says the actual rule is 4) Neither 'wins': cmp is applied to the output of key. which is consistent with my experiment also. -- ___ Python tracker <http://bugs.python.o

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 2.7 doc actually says that the two arguments to cmp are list items, rather than list items or keys "cmp specifies a custom comparison function of two arguments (list items)". And this "In general, the key and reverse conversion processes

[issue5114] 2.7: test_threading hangs on Solaris

2011-03-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: 2.5.4.3 and 2.6.2 / test_threading hangs on Solaris -> 2.7: test_threading hangs on Solaris ___ Python tracker <http://bugs.python.org/iss

[issue1777398] IDLE Freezes After Running Scripts

2011-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Closing until there is a confirmed problem with current Python. -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue2657] Curses sometimes fails to initialize terminal

2011-03-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> out of date status: pending -> closed ___ Python tracker <http://bugs.python.org/issue2657> ___ ___ Pyth

[issue3154] "Quick search" box renders too wide if font size is large

2011-03-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker <http://bugs.python.org/issue3154> ___ ___ Python-bugs-list mailin

[issue11674] list(obj), tuple(obj) swallow TypeError (in _PyObject_LengthHint)

2011-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Elvis, I agree that the masking is not nice. To call it a tracker bug (as opposed to design bug), you need to show that the behavior is different from what is documented. Of course, This issue illustrates why one should have unit tests that try to test each

[issue11676] Improve imp.load_module and submodules doc

2011-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified this for 3.2 (and IDLE) with import sys, tkinter "ttk" in dir(sys.modules['tkinter']) # False import tkinter.ttk "ttk" in dir(sys.modules['tkinter']) # True reload import sys,imp imp.load_mo

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: If today's multi-site message is not a joke, Arch, Debian, Gentoo, Grml, and openSUSE are about to be joined into the Canterbury distribution. -- nosy: +terry.reedy stage: -> patch review ___ Python tracke

[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-04-01 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Documentation for get_option_group is wrong -> Doc for optparse.OptionParser.get_option_group is wrong ___ Python tracker <http://bugs.python.org/issu

[issue11718] Teach IDLE's open-module command to find packages

2011-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I strongly agree. This would make it easy to see modules of 3rd party packages loaded, for instance, in site-packages. Once pack/__init__.py is opened, selecting File/Open in its edit window displays the package directory. Dotted names work, but must be

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The help(linecache) Description is more specific as to the intention (based on traceback usage): "This is intended to read lines from modules imported -- hence if a filename is not found, it will look down the module search path for a file by that name.

[issue11730] Setting Invalid sys.stdin in interactive mode => loop forever.

2011-04-01 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed title: Setting sys.stdin to an invalid input stream causes interpreter run loop forever. -> Setting Invalid sys.stdin in interactive mode => loop forever. ___ Python track

[issue1294232] Error in metaclass search order

2011-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would make the same guess about 'winner calculation'. I am surprised that the class statement does not result in the same calculation (why else would type_new do it). Perhaps __build_class__ (which I have not read) should either call type_ne

[issue1294232] Error in metaclass search order

2011-04-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue1294232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11762] Ast doc: warning and version number

2011-04-04 Thread Terry J. Reedy
New submission from Terry J. Reedy : Two related proposals. 1. Add a warning similar to the one for the dis module. As modified: "CPython implementation detail: The ast definition is specific to the CPython interpreter! Ast nodes may be added, removed, or changed between versions. Use

[issue11762] Ast doc: warning and version number

2011-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Modify entry slightly to String constant with version number of the abstract grammar file. 3.1: '67616'; 3.2: '82163'; 3.3: 'x' -- keywords: +patch ___ Python tr

[issue11707] Create C version of functools.cmp_to_key()

2011-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: [Question from python-list] Would a C version only be for 3.3 or backported to 3.2 and 2.7. The rationale for backport to 2.7 is that .cmp_to_key was added to 2.7 to aid transition to 3.x. A faster version would make use in 2.7 more inviting. I understand

[issue11795] Better core dev guidelines for committing submitted patches

2011-04-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I had some of the same questions, so I agree this would be a good addition. -- nosy: +terry.reedy stage: -> needs patch ___ Python tracker <http://bugs.python.org/issu

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Filip, you can look at the changed Benjamin made. One needs to be OP or have admin privileges to change the headers. Could you reupload your patch to this issue? -- versions: +Python 3.3 -Python 3.2 ___ Python

[issue9904] Cosmetic issues that may warrant a fix in symtable.h/c

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would say yes (if you are sure changes are correct) unless Nick speaks up to say he wants to review first. -- ___ Python tracker <http://bugs.python.org/issue9

[issue11747] unified_diff function product incorrect range information

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: @Tim: was it your intention that difflib track gnu diff? I am on the fence with this issue. Without input from Tim other than the doc, I am tempted to call this a feature request and retitle it "Make unified_diff match gnu diff for [] input". The d

[issue11754] Changed test to check calculated constants in test_string.py

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not understand 'circular'. The change is from 'attribute exists' to 'attribute has correct value'. If any are changed, I would think all should be changed. -- nosy: +terry.reedy ___

[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: All the types in the types module are, being types, potentially callable to produce instances of that type. But they are in types rather than builtins precisely because it is not expected that they be called directly. They are bound to names in types

[issue11782] email.generator.Generator.flatten() fails

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The error message suggests that somehow a str string has gotten mixed in with the bytes. Something like '\n' or ' '? Steffen, if you want to help track this down: 1. What is a minimal msgdata that gives the same error; post it. 2. Add &#x

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Devs are aware that there is an exception to the general rule for the 'for' clause. There is a technical reason why the exception is possible, though I have forgotten it. Since you already know that changing the general behavior has been rejected

[issue11796] Comprehensions in a class definition mostly cannot access class variable

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Title changed. Generator expressions had the same limitation in 2.x. All comprehensions have the same limitation in 3.x. -- title: list and generator expressions in a class definition fail if expression condition refers to a class variable

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Elsewhere, Guido said that this appears *not* to be a security bug since the crash is "triggered by a logic bug in the user's code, not by bad data." Hence, not eligible for backport to 2.5/6, which are in security-fix only mode.

[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Messages that only consist of links are classified that way. To refer to other issues, use #x, as with #6040, but I have no idea which of the many messages you were referring to, so use msgxx. The stack overflow link http://stackoverflow.com

[issue11776] types.MethodType() params and usage is not documented

2011-04-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg133353 ___ Python tracker <http://bugs.python.org/issue11776> ___ ___ Python-bugs-list m

<    6   7   8   9   10   11   12   13   14   15   >