[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

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

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: For anyone curious, I removed the falsely classified as spam message after copying the links into my previous message. -- ___ Python tracker <http://bugs.python.org/issue11

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

2011-04-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. I remember now: the initial iter_exp is evaluated immediately because it always *can* be, because it is only evaluated once and can only involve 'outside' names, whereas the result expression and any conditional expressions and further

[issue11747] unified_diff function product incorrect range information

2011-04-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks, Raymond. That file says (in the -u section) "If a range is empty, its beginning line number shall be the number of the line just before the range, or 0 if the empty range starts the file." The last clause says to me that gnu diff is righ

[issue985064] plistlib crashes too easily on bad files

2011-04-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: jvr -> ___ Python tracker <http://bugs.python.org/issue985064> ___ ___ Python-bugs-list mailing list Unsubscri

[issue11838] IDLE: make interactive code runnable.

2011-04-12 Thread Terry J. Reedy
New submission from Terry J. Reedy : One can currently save the contents of a shell window exactly as is, with opening message, prompts, and restarts. This essentially a screenshot of the frame -- fine for an IDLE doc but not useful for rerunning the code. Similarly, if one pastes in

[issue9233] json.load failure when C optimizations aren't built

2011-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do those new check finish this issue and should it be closed? If not, what is left? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue9

[issue11506] b'' += gives SystemError instead of SyntaxError

2011-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks all for fixing. This 'silently' crashes IDLE with no message. Just 'poof'. -- nosy: +terry.reedy ___ Python tracker <http://bug

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

2011-04-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, patches sometimes sit awhile before a developer who can do something does do something. -- ___ Python tracker <http://bugs.python.org/issue11

[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2011-04-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jack, several questions. Are you saying that when stdin is a pipe and not a tty, pdb works better with use_rawinput set False? Are you sure that the auto setting is correct in all use cases? Are you aware that you can set use_rawinput 'manually'

[issue11803] Memory leak in sub-interpreters

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Swapnil, please pay attention to what people write. PYTHON 2.6 IS NOT OPEN FOR BUGFIXES. Please do not add 2.6 to this issue again or reopen until you find a problem with 2.7.1 or 3.2.0. -- nosy: +terry.reedy status: open -> clo

[issue11812] transient test_telnetlib failure

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: What do you propose for a fix? 1. Find a more reliable host to test with? 2. Change test to catch the error and convert failure to a skip? 3. Both ;-? 4. Something else? Something like 2 would seem like a good idea for all tests dependent on a resource out of

[issue11820] idle3 shell os.system swallows shell command output

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not sure if this should be called a bug or feature request, but that does not matter so much with IDLE. Os.system is documented as executing in a subshell and returning the exit code, which is does. The doc also says "If command generates any o

[issue11851] Flushing the standard input causes an error

2011-04-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python 2.7.1 ... 32 bit (Intel)] on win32 >>> import sys >>> sys.stdin.flush() >>> stdin.flush() could mean to clear (discard) the input buffer. Given that it is undefined, the puzzle is that it exists at all, even to be called. C

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-04-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21709/unnamed ___ Python tracker <http://bugs.python.org/issue8426> ___ ___ Python-bugs-list mailin

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please do not send html responses, as they result in a spurious 'unnamed' file being attached. Please do suggest a specific change. Should this be changed to a doc issue? -- ___ Python trac

[issue8809] smtplib should support SSL contexts

2011-04-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This sentence is awkward, at best. "Alternative to a private key and a certificate key an optional SSLContext could be specified." I suggest something like: "SSLcontext, also optional, is an alternative to keyfile and certfile; if it is spe

[issue11906] Test_argparse failure but only in interactive mode

2011-04-21 Thread Terry J. Reedy
New submission from Terry J. Reedy : (3.1 not checked because it seems not to have test_argparse) Python 2.7 or 3.2, WinXP these pass: C:\Programs\Python27>python -m test.regrtest test_argparse C:\Programs\Python32>python -m test test_argparse [1/1] test_argparse 1 test OK. C:\Programs\Py

[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I put the same line I ran interactively in a file and run it from test import test_argparse as t; t.test_main() all tests pass. So it is specifically a problem from the interactive prompt. -- nosy: +michael.foord

[issue11860] reference 2.3 has text that runs past the page

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you are talking about long boxed grammar or example lines that run horizontally past the right edge of the window, like id_start ::= For both the .html (online) and .chm (windows help) versions of the docs, these boxes have horizontal scroll

[issue11889] 'enumerate' 'start' parameter documentation is confusing

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Note: 3.x correct gives the signature at enumerate(iterable, start) rather that enumerate(sequence, start). I agree that the current entry is a bit awkward. Perhaps the doc would be clearer with a reference to zipping. Removing the unneeded definition of

[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the diagnosis. I am glad it is something simple. -- ___ Python tracker <http://bugs.python.org/issue11906> ___ ___

[issue11860] reference 2.3 has text that runs past the page

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Then this appears to be a duplicate. Closing -- resolution: -> duplicate status: open -> closed superseder: -> PDF documentation: long verbatim lines are cut off at right hand side ___ Python track

[issue11922] Add General Index to Windows .chm help file Contents

2011-04-25 Thread Terry J. Reedy
New submission from Terry J. Reedy : The Windows distribution comes with the docs in a very nice Windows help file .chm form. When displayed, they is a left side bar with a Contents tab. The top entry is 'Python vx.y documentation' followed by 'Python Module Index' and &

[issue11908] Weird `slice.stop or sys.maxint`

2011-04-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5, Python 2.6, Python 3.4 ___ Python tracker <http://bugs.python.org/issue11908> ___ ___ Python-bugs-list m

[issue11846] Remove non-guaranteed implementation details from docs.

2011-04-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The range of interned ints was once much smaller, but it was expanded upwards to 256 so that the bytes extracted from bytes and bytearray objects, as when indexing or iterating, would *all* be pre-allocated objects. I should presume that their indexers and

[issue1346874] httplib simply ignores CONTINUE

2011-04-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Carl, anyone is free to submit an incomplete patch, and people often do, but if people who are affected by an issue do not think it worth their time to complete it, or even move it along, there is no reason to expect people who are not affected by it to

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

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

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

2011-04-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Note: the word is 'separate', 2 e's and 2 a's, not 'seperate') (Note: We already know that using unbound unquoted names does not work. Please do not waste our time telling us the obvious.) (Note: I am removing IDLE because th

[issue11922] Add General Index to Windows .chm help file Contents

2011-04-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I had not really noticed that the Index *was* the General Index. In trying it out, I discovered that double-clicking on entries with multiple links in the General Index, such as 'name,binding' with 7 links, brings up a sub-box with all seven.

[issue11945] Adopt and document consistent semantics for handling NaN values in containers

2011-04-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: To repeat concisely what I said on pydev list, I think Reference 5.9. Comparisons, which says "Tuples and lists are compared lexicographically using comparison of corresponding elements. This means that to compare equal, each element must compare equa

[issue4296] Python assumes identity implies equivalence; contradicts NaN

2011-04-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed ___ Python tracker <http://bugs.python.org/issue4296> ___ ___ Python-bugs-list mailing list Unsubscri

[issue11912] Python shouldn't use the mprotect() system call

2011-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is there any reason not to close this as a CPython issue? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue11

[issue11928] fail on filename with space at the end

2011-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Windows Explorer does not so allow, but yes, Windows does. With xp >>> os.stat('some file ') nt.stat_result(st_mode=33206, st_ino=6473924464520118, st_dev=0, st_nlink=1, st_uid=0, st_gid=0, st_size=13, st_atime=1304114221, st_mtime=13

[issue11937] Interix support

2011-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Markus, I agree with Martin that this patch would go against current policy and should be closed. Rather than close it myself, I will try to persuade you to do so. First, CPython is actually in the process of 'slimming down', of removing, not addi

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

2011-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: #11944 is probably a duplicate of this and should be checked when this is fixed -- ___ Python tracker <http://bugs.python.org/issue4

[issue11950] logger use dict for loggers instead of WeakValueDictionary

2011-04-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6, Python 3.4 ___ Python tracker <http://bugs.python.org/issue11950> ___ ___ Python-bugs-list mailin

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2011-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe the patch produces the following as the first sentence "When a module named :mod:`spam` is imported, the interpreter searches for a file named :file:`spam.py` in a list of directories given by the variable ``sys.path`` which is initialized fro

[issue11950] logger use dict for loggers instead of WeakValueDictionary

2011-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, this is a feature request to change the storage of loggers. A behavior issue (bug report) must report a discrepancy between doc and behavior. Vinay rejected that request as not really possible. Questions about using yum should go to a yum list or to

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Did you run the httplib test with your patch? Interactively >>> from test.test_httplib import test_main as f; f() (verbose mode, over 40 tests) In 3.x, the patch would be to http/client.py, line 802 in 3.2 release if isinstance(message_body, str) # b

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is an improvement that I think should be committed before 3.2.1. Some comments: +.. function:: run_doctest(module, verbosity=None) + Run :mod:`doctest` on the given *module*. should be, I believe, + Run :func:`doctest.testmod` on the given *module

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21890/unnamed ___ Python tracker <http://bugs.python.org/issue11015> ___ ___ Python-bugs-list mailin

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this is the wrong patch for reasons given below. The example should be replaced instead. Readline is documented as returning '' at EOF for text files. Iter(func,sentinel) is documented as calling func until sentinel is returned. If that nev

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue11

[issue11957] re.sub confusion between count and flags args

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I like the idea of an internal REflag class with __new__, __or__, and __repr__==__str__. Str(re.A|re.L) might print as "REflag: re.ASCII | re.IGNORE" If it is *not* an int subclass, any attempt to use or mix with an int would raise. I checked and th

[issue11959] smtpd cannot be used without affecting global state

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I looked as the small patch to smptd.py. This strikes me a a reasonable use of dependency injection to make smptd more usable in testing, especially given that asyncx are have it. The only thing I do not understand fully is the redefinition of set_socket

[issue11963] Use real assert* for test_trigger_memory_error (test_parser)

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unlike test.support, whose doc was recently expanded by a patch by Eli Bendersky, I see no mention of test.script helper in the test doc. [Do you think there should be?]. I was not aware of it. It might be newer than the 'old way'. I would have t

[issue11968] wsgiref's wsgi application sample code does not work

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Takayuki is correct, the status and header strings should, it seems, be 'native strings', not bytes. The experimental proof is to run the current example code (I did so from IDLE editor window on WinXP) and then enter http://localhost:8000/ in

[issue11959] smtpd cannot be used without affecting global state

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, passing self.sockmap=None to setsocket matches its current behavior, so your new code should not change any current smtpd users, while modifying asyncore.dispatcher.create_socket might possibly affect someone

[issue11957] re.sub confusion between count and flags args

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Agreed, if we go that route. -- ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bugs-list mailin

[issue11969] Can't launch Process on built-in static method

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Running on winxp with IDLE, I get the second traceback, all the same after the first line. Given "target is the callable object to be invoked by the run() method.", I would have expected this to work too. Problem is not builtins: class C: def f

[issue11972] input does not strip a trailing newline correctly on Windows

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

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed title: Can't launch Process on built-in static method -> Can't launch multiproccessing.Process on methods ___ Python tracker <http://bugs.py

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