[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another example from #11307 import re r = re.compile(r'(\w+)*=.*') r.match("abcdefghijklmnopqrstuvwxyz") -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7 ___ Python tracker <

[issue11307] re engine exhaustively explores more than necessary

2011-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: 13 secs on my 7 year old windows machine. -- nosy: +terry.reedy resolution: -> duplicate status: open -> closed superseder: -> the re module can perform poorly: O(2**n) versus O(n**2) versions: +Python 2.7, Python 3.3 -Python 2.6, P

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Alexandre, Do the considerations against pickling apply to deep copying? It would seem that copying bytecode and pointer within a run should be ok. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11400] Remove reference to pre 1.5 assignment behavior

2011-03-04 Thread Terry J. Reedy
New submission from Terry J. Reedy : In Language Ref, 6.2 assignments, delete "(This rule is relaxed as of Python 1.5; in earlier versions, the object had to be a tuple. Since strings are sequences, an assignment like a, b = "xy" is now legal as long as the string has t

[issue11337] Nothing refers to footnote [1] on page "6. Simple Statements" in Language Reference

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Agreed. The footnote is "[1] It may occur within an except or else clause. The restriction on occurring in the try clause is implementor’s laziness and will eventually be lifted. " I searched chapter for all occurences of '1' and als

[issue11337] Nothing refers to footnote [1] on page "6. Simple Statements" in Language Reference

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

[issue11338] No list of Python hg repositories

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Conversion is underway today. Completion should be announced at least on the pydev list. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue11

[issue11339] annotation for class being defined

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: >The basic problem is that the class object is defined after the class >definitions have been made, I have sometimes thought the the class statement could start with binding the name to a blank object or new, blank class object. But then people might

[issue11343] Make errors due to full parser stack identifiable

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that compile-time stack exhaustion is different from runtime object-heap exhaustion and could/should have a different error. I agree with Martin (from 2000) that SyntaxError is not right either. Perhaps a new ParseError subclass thereof. I believe

[issue11344] Add height argument to os.path.dirname()

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am inclined to -1 also. a. The proposed behavior is anti-obvious to me: the higher the height, the shorter the result. Calling param 'drop' would be better. b. Not every one-liner should be wrapped. >>> path.rsplit('/',0)

[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: os.makedir (and, I presume, makedirat) are intentionally thin wrapperws around the libc system calls >From #9299, msg111014 (Guido) "I wonder if os.mkdir() should not be left alone (so as to continue to match the system call most exactly, as is our co

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

2011-03-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: suggestion for os.kill(pid,CTRL_C_EVENT) -> suggestion for os.kill(pid,CTRL_C_EVENT) in tests ___ Python tracker <http://bugs.python.org/issu

[issue11362] image/webp missing from mimetypes.py

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: No IANA registration. According to https://secure.wikimedia.org/wikipedia/en/wiki/Webp this is a Google-specific proposal rather than a standard. Thus addition would seem premature at this time. -- nosy: +terry.reedy

[issue11380] "close failed in file object destructor" when "Broken pipe" happens on stdout

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Have you tried this with 3.2 (or 3.1)? What behavior do you expect when pipe goes first? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue11

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: -> performance versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue11382> ___ ___ Python-bugs-list mai

[issue11383] compilation seg faults on insanely large expressions

2011-03-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: -> crash versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue11383> ___ ___ Python-bugs-lis

[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doc issues should be 'tested' and reported against the latest versions. 2.6.6 doc is effectively the last 2.6 version. TextTextRunner is not completely undocumented. In 3.2 >>> help(t.run) Help on function run in module unittest.runn

[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I also see that TextTestRunner has an attribute resultclass, which is TextTestResult. Is this intended to be ever changed? The docstring for TTRunner says "It prints out the names of tests as they are run, errors as they occur, and a summary of the re

[issue11387] Tkinter, callback functions

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 2.7 or 3.2, winxp, when I enclose your code with from tkinter import tk #or Tkinter ... App() I get a window with a buttom that sinks and raises as I press and release the left button. Please post complete runnable code that exhibits the problem. Do not

[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: class unittest.TextTestRunner(stream=None, descriptions=True, verbosity=1, runnerclass=None, warnings=None) stream is documented, the others are not (except for some garbled text about warnings). "This class has a few configurable parameters, &qu

[issue11389] unittest: no way to control verbosity of doctests from cmd

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: The undocumented verbosity parameter? -- nosy: +michael.foord, terry.reedy ___ Python tracker <http://bugs.python.org/issue11

[issue11392] Turtle - better explain 'chaos' demo

2011-03-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +gregorlingl, terry.reedy ___ Python tracker <http://bugs.python.org/issue11392> ___ ___ Python-bugs-list mailing list Unsub

[issue11394] No Tools/demo, etc, on Windows

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I thought I posted this on another issue, but cannot find it. My installed 3.2 Tools directory only has i8n, pynche, and scripts directories. The 3.2 repository has 12 other directories in Tools that are missing from the installation. -- components

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: print("a"*66000) works (after some delay) running from an IDLE edit window (but see #144249). Works means that I get a working prompt back with no errors. Unlike IDLE, the Command Prompt Windows keeps a limited number of lines in its buffers (def

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread Phillip J. Eby
Phillip J. Eby added the comment: Looks good to me. -- ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

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

[issue3982] support .format for bytes

2011-03-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: For future reference, struct.pack, not mentioned here, is a binary bytes formatting function. It can mix ascii bytes with binary octets. It works the same in Python 2 and 3. Str.bytes does two things: convert objects to strings according to the contents of

[issue11436] Clarify struct doc for format 's'.

2011-03-07 Thread Terry J. Reedy
New submission from Terry J. Reedy : The struct doc does not specify the meaning of 's', without a count. The attached patch adds the sentence: If a count is not given, it defaults to 1; ``'s'`` means the same as ``'1s'``. (Until I experimented, I had thought no

[issue11436] Clarify struct doc for format 's'.

2011-03-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: patch -- keywords: +patch Added file: http://bugs.python.org/file21035/zstruct.diff ___ Python tracker <http://bugs.python.org/issue11

[issue3982] support .format for bytes

2011-03-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are right, I misinterpreted the meaning of 's' without a count (and opened #11436 to clarify). However, for the fairly common case where a variable-length binary block is preceded by a 4 byte *binary* count, one can do something which is n

[issue11443] Zip password issue

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6/2.7 only get security fixes. I do not think this qualifies -- components: +Library (Lib) nosy: +terry.reedy stage: -> test needed type: -> behavior versions: -Python 2.5, Python 2.6 ___ Python tracker

[issue11441] compile() raises SystemError if called from except clause

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker <http://bugs.python.org/issue11441> ___ ___ Pytho

[issue11440] fix_callable should be dropped from lib2to3 / changed

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue11440> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

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