[issue11440] fix_callable should be dropped from lib2to3 / changed

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect that this will not be the last time that a fix is version dependent. I think that the 2to3 distributed with 3.x should fix to 3.x. Otherwise, the fix would have to do an 'if version...' dance. (Perhaps the version distributed with 2.7

[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Chris: I appreciate you wanting use IDLE. I love it, hope to improve it, and am sorry that people occasionally have a problem starting it. However, this is not a bug report but a usage question that would better have been posted to our python-list email list

[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: It also appears that you are submitting messages as HTML rather than plain text. Hence the junk 'unknown' files. Please do not do that. (Messages to a mailing list or newsgroup should also be

[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21038/unnamed ___ Python tracker <http://bugs.python.org/issue11413> ___ ___ Python-bugs-list mailin

[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21048/unnamed ___ Python tracker <http://bugs.python.org/issue11413> ___ ___ Python-bugs-list mailin

[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21049/unnamed ___ Python tracker <http://bugs.python.org/issue11413> ___ ___ Python-bugs-list mailin

[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21050/unnamed ___ Python tracker <http://bugs.python.org/issue11413> ___ ___ Python-bugs-list mailin

[issue11413] Idle doesn't start

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21051/unnamed ___ Python tracker <http://bugs.python.org/issue11413> ___ ___ Python-bugs-list mailin

[issue11437] IDLE crash on startup with typo in config-keys.cfg

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume 'silently' means when starting with an icon or shortcut, so that there is no window left to contain the traceback. The standard key customization is by clicking, which makes errors impossible. How did you get the error? By using the &qu

[issue6818] remove/delete method for zipfile/tarfile objects

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please feel free to test, revise, and write. Though 'removed', the file is still accessible via the history list. (Click 'zipfile_remove.patch' and then 'download'.) -- nosy: +terry.reedy ___

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: There has been discussion of this before, but it must have been on one of the lists, (possibly py3k list) as searching tracker for 'listdir generator' only returns this. I believe I pointed out then that Miscrosoft C (also) has (did once) a

[issue11443] Zip password issue

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I meant 2.5/2.6 of course. -- ___ Python tracker <http://bugs.python.org/issue11443> ___ ___ Python-bugs-list mailing list Unsub

[issue5714] CGIHTTPServer._url_collapse_path_split should live elsewhere

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue5714> ___ ___ Python-bugs-list mailin

[issue5880] Remove unneeded "context" pointer from getters and setters

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue5880> ___ ___ Python-bugs-list mailing list Unsub

[issue6743] pprint.pprint should support no objects to print blank lines & allow args

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue6743> ___ ___ Python-bugs-list mailing list Unsub

[issue2897] include structmember.h in Python.h

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue2897> ___ ___ Python-bugs-list mailing list Unsub

[issue5420] Queue deprecation warning patch

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue5420> ___ ___ Python-bugs-list mailing list Unsub

[issue5594] IDLE startup configuration

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue5594> ___ ___ Pytho

[issue9307] Py_TPFLAGS_LONG_SUBCLASS is not documented

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

[issue4832] idle filename extension

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue4832> ___ ___ Pytho

[issue4832] idle filename extension

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The behavior (for Windows) I expect and would like is that the default extension would be .py, .txt, or nothing, depending on the selection in the 'save as type' box in the SaveAS dialog. (.pyw, being rare, would have to be explicitly typed.)

[issue9398] Unify sys.settrace and sys.setprofile tests

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

[issue5784] raw deflate format and zlib module

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

[issue4965] Can doc index of html version be separately scrollable?

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

[issue7798] Make generally useful pydoc functions public

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have looked at the pydoc module. Everything except help() is intended to be private. The author says within the file that __all__, when present, defines public interface and uses that definition within help() to decide what to display. So I do not think

[issue8722] Documentation for __getattr__

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

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: A.B, I believe you have looked at other areas of missing C-API docs. What do you think of this one? Is it still missing? -- nosy: +belopolsky, terry.reedy versions: +Python 3.3 ___ Python tracker <h

[issue3565] array documentation, method names not 3.x-compliant

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.2, a change *was* committed (by who?) but not recorded here: .from/.tostring were renamed .from/.tobytes and kept as deprecated aliases. Is there anything more to this issue other than removing the deprecated aliases in 3.3 (which could be done now if

[issue9254] __import__ docstring should recommend importlib.import_module()

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

[issue4966] Improving Lib Doc Sequence Types Section

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

[issue9998] find_library should search LD_LIBRARY_PATH on linux

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue9998> ___ ___ Python-bug

[issue10175] vs version for win32 compilation of extension modules is undocumented.

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

[issue4758] Python 3.x internet documentation needs work

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe 3.2 has many code and doc improvements with respect to bytes/string usage. So it is hard to know what is still needed. I think the way for anyone to advance this is to review just one of the modules listed and either report here that all is ok or

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue6570> ___ ___ Python-bug

[issue7460] extended slicing not sufficiently covered in docs

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

[issue8269] Missing return values for PyUnicode C/API functions

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

[issue9796] Add summary tables for unittest API

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just read through the 3.2 unittest doc and found and will find the new tables very helpful. I hope you get them into the upcoming 3.1.3 and 2.7.2 releases, even if you think them not complete ;-). -- nosy: +terry.reedy versions: +Python 3.3

[issue935117] pkgutil doesn't understand case-senseless filesystems

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue935117> ___ ___ Python-bug

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue1043134> ___ ___ Pytho

[issue1528154] New sequences for Unicode groups and block ranges needed

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is there a practical issue left here? Mathew says his regex module does as requested, but adding that to the stdlib is a separate issue. Martin would like an implementation of Unicode TR18, but that is also another issue. -- nosy: +terry.reedy

[issue4819] Misc/cheatsheet needs updating

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

[issue11007] stack tracebacks should give the relevant class name

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not sure that traceback changes should be made in bug-fix releases, though it is a moot point until a change is ready for 3.3. That said, having a bit more info in tracebacks so they can more often be understood without looking through possibly many

[issue4216] subprocess.Popen hangs at communicate() when child exits

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Closing as suggested by Ross -- nosy: +terry.reedy resolution: -> rejected status: open -> closed versions: +Python 3.3 -Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/

[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

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

[issue3722] print followed by exception eats print with doctest

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: For the purpose of this tracker, a 'bug' (behavior issue) is a discrepancy between doc and behavior. Micro ('bugfix') releases fix such discrepancies, which are all unintentional. Every feature request addresses what someone considers a

[issue3722] print followed by exception eats print with doctest

2011-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Temporary output will break all doctests, not just those with exception traceback. One should fix, disable debug output, and then rerun doctest to make sure fix did not break anything else. A function that prints and raises *can* be tested as by separately

[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have started learning .rst, so I hope to work on this in the not too distant future. Ezio -- I have also noticed that some chapters are too long to be easily scrolled around in (unittest is another), and either need an index at the top (like with built-in

[issue11477] Bug in code dispatching based on internal slots

2011-03-12 Thread Terry J. Reedy
New submission from Terry J. Reedy : Example (which can serve as testcase with buggy output corrected). class C(object): def __iter__(self): yield 'yes!' def __radd__(self, other): other.append('bug!') return other def __rmul__(self, o

[issue11477] Bug in code dispatching based on internal slots

2011-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Second link to pydev should be http://mail.python.org/pipermail/python-dev/2011-March/109130.html -- ___ Python tracker <http://bugs.python.org/issue11

[issue11477] Bug in code dispatching based on internal slots

2011-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: It seems to me that the underlying (design) flaw is having duplicate slots in the C type structure*. I presume that having two different functions in num-add and seq-add (concat) (I know, not quite the proper names), etc, is an error. I also assume that

[issue11477] Bug in code dispatching based on internal slots

2011-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: And if num-add is present and seq-add not, copy the other way, even if it were recommended to only use the former. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11477] Bug in code dispatching based on internal slots

2011-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think Nick's point, and one I agree with, is (or amounts to): 'somelist += ob' == 'somelist.__iadd__(ob)' == 'somelist.extend(ob)' == 'somelist[len(somelist):len(somelist)]=ob' is defined and should be imple

[issue11515] Misspelled actually

2011-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I want to thank you all too, both for the changes themselves and for the bundling. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue11

[issue11477] Bug in code dispatching based on internal slots

2011-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: b9b7d4c10bc4.diff is a huge compilation of all commits from the last few days, with the abstract.c diff buried about 3/4ths of the way through. -- ___ Python tracker <http://bugs.python.org/issue11

[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

[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

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