[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

[issue11980] zipfile.ZipFile.write should accept fp as argument

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: zipfile.ZipFile takes a file arg that can be a 'path to a file (a string) or a file-like object'. The .write() method takes a filename arg. I would think that the proposal should be what the title says, to expand that to a file arg, either a pat

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: "Also, the segfault only occurs when python is compiled with optimizations and run under valgrind." This says to me that the segfault is not a Python issue. What change do you expect in the Python source code? If none, this issue should

[issue12001] Extend json.dumps to handle N-triples strings

2011-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the json module should stick with the json definition. Adding other stuff would take it even further from simplejson. A conversion function, if short enough, could be posted on the cookbook. -- nosy: +terry.reedy resolution: -> rejec

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified bug on winxp with 2.7 xrangef [5, 4, 3, 2, 1, 0] py26 [] py27 [5, 4, 3, 2, 1, 0, -1, -2] v1 [5, 4, 3, 2, 1, 0] v2 [5, 4, 3, 2, 1, 0] v3 [5, 4, 3, 2, 1, 0] --- xrangef [5, 3, 1, -1, -3] py26 [] py27 [5, 3, 1, -1, -3, -5] v1 [5, 3

[issue12016] Wrong behavior for '\xff\n'.decode('gb2312', 'ignore')

2011-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: u'' in 2.7.1 also, on winxp -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue12016> ___ ___

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue12017> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11963] Remove human verification from test suite (test_parser and test_subprocess)

2011-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: My title suggestion was meant to say "Yes, if you are willing to expand the scope of this issue and do more work, go ahead' ;-). I have not looked at help(test), but it should be complete if it is not. I was referring to the test module doc 25.

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

2011-05-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sandro, import is a somewhat dark corner of Python that newcomers and even experienced people ofter trip over. So getting the text both correct and clear is worth some thought. I just noticed that the text is only true for Python-coded modules and not for

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

2011-05-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with both Raymond and David's suggestion. -- ___ Python tracker <http://bugs.python.org/issue11948> ___ ___ Pytho

[issue12026] Support more of MSI api

2011-05-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your title mixes a goal -- exposing more of the MSI api -- with a particular means -- exposing an object that is only useful with ctypes. So I have taken the liberty of removing the implementation limitation. While clever, I do not believe that strategy has

[issue12057] HZ codec has no test

2011-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking at cjkencodings.py the format is pretty clear. The file consists of one statement that creates one dict that maps encoding names to a pair of (encoded) byte strings. The bytes literals are entirely hex escapes, with a maximum of 16 per chunk (line

[issue12057] HZ codec has no test

2011-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reading http://tools.ietf.org/html/rfc1843 suggests that the reason that there is no HZ pair in cjkencodings.py is that it is not a cjkencoding. Instead it is a formatter or meta-encoding for intermixing ascii codes and GB2312(-80) codes. (I assume the 

[issue12057] HZ codec has no test

2011-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reading http://tools.ietf.org/html/rfc1843 suggests that the reason that there is no HZ pair in cjkencodings.py is that it is not a cjkencoding. Instead it is a formatter or meta-encoding for intermixing ascii codes and GB2312(-80) codes. (I assume the 

[issue12057] HZ codec has no test

2011-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg135802 ___ Python tracker <http://bugs.python.org/issue12057> ___ ___ Python-bugs-list m

[issue12067] Doc: remove errors about mixed-type comparisons.

2011-05-12 Thread Terry J. Reedy
New submission from Terry J. Reedy : Current 3.2 doc, 5.9. Comparisons, has this paragraph about mixed-type comparisons. "The operators <, >, ==, >=, <=, and != compare the values of two objects. The objects need not have the same type. If both are numbers, they are conve

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

2011-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I disagree (else I would not have suggested change ;-). First, I dislike 'This allows' on stylistic grounds, when there is a better alternative. It is rather wishy-washy: 'this allows' -- so what? As for the rest -- why not be specific?

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

2011-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sandro, thank you for sticking with this. Seemingly simples issues sometimes 'explode' a bit. Having reviewed the patch, I think the it is ready to be committed. Éric: if you were to commit this and, in the process, wanted to change sys.path bac

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

2011-05-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue11948> ___ ___ Python-bugs-list mai

[issue12038] assertEqual doesn't display newline differences quite well

2011-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: A possible fix is to condense the output by omitting stuff in the center rather than as the end: "x\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx...x\nx\nx\nx\nx\nx\nx\nx\nx\nx\n" "x\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx...x\nx\nx\nx\nx\nx\nx\nx\nx\nx\r\n&

[issue7969] shutil.copytree error handling non-standard and partially broken

2011-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I also found the doc confusing. Does "This exception collects exceptions that raised during a multi-file operation." that Error is used for .rmtree or .move? If so, what format. If not, revise. And I also wondered how to access and use

[issue12075] python3.2 memory leak when reloading class with attributes

2011-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: > my class also inherits from subprocess.Popen, which has a __del__ method, > which might interfere w/ collection The doc says __del__ *will* prevent collection. > (although gc.garbage says otherwise ;). Do you mean that gc.garbage is empty, when

[issue1353344] python.desktop

2010-11-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am past beginner stage and I still open with the Start mene ;-) If/when I install Ubuntu or other Linux, I would like to still be able to do whatever is the equivalent, as with other stuff, rather than have to open a command window and type a command

[issue10356] decimal.py: hash of -1

2010-11-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Should there be a 'versionchanged' note in the doc, even if the error type was not documented? -- ___ Python tracker <http://bugs.python.o

[issue4153] Unicode HOWTO up to date?

2010-11-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for persisting with this. Looking at the patch: @@ -65,7 +63,7 @@ goal was to have Unicode contain the alphabets for every single human language. It turns out that even 16 bits isn't enough to meet that goal, and the modern Unicode specification

[issue4153] Unicode HOWTO up to date?

2010-11-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 0 through ... is fine with me. Yes, hex numeral would be more accurate than hex digit. -- ___ Python tracker <http://bugs.python.org/issue4

[issue6941] Socket error when launching IDLE

2010-11-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Download and install a current release 2.6.6, 2.7, or 3.1.2 (or 2.7.1 or 3.1.3 in a week or so). Disable or otherwise reconfigure whatever firewall or security software you have that is blocking the socket connection (as your screenshot says). If you still

[issue10458] 2.7 += re.ASCII

2010-11-19 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue10458> ___ ___ Python-bugs-

[issue10461] Use with statement throughout the docs

2010-11-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: +1 I have not yet had occasion to use 'with' yet, but in reading the Unicode HOWTO diff, I noticed that I liked replacing 'open,read,close' with 'with open, read' just for reading purposes since it turns 3 steps into 1 compound t

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Deadline is probably next Fri. However I will apply this or slight revision thereof in a couple of days to make sure this much is in. I have to fixup some work stuff today. -- ___ Python tracker <h

[issue9222] IDLE: Fix open/saveas 'Files of type' choices

2010-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2, 3.1, 2.7: r86702, r86703, r86704 -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Georg, if your comment means that you think that the doc patch is ready to apply, as is, without testing with a doc build, then I will do so for all 3 versions. Should there really be two blank lines after the note

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file19785/unnamed ___ Python tracker <http://bugs.python.org/issue1859> ___ ___ Python-bugs-list mailin

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doc patch applied to 3.2, 3.1, 2.7 in r86717, r86718, r86719 Jeremy Thurgood added to 3.2 Misc/ACKS in r86720. (I know, I should have added this first before committing.) I am leaving this open for a possible behavior patch. Mathew: look at the examples by

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker <http://bugs.python.org/issue1859> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10516] Add list.clear()

2010-11-23 Thread Terry J. Reedy
New submission from Terry J. Reedy : Add list.clear() method with obvious semantics. Pro: 1. parallel to set/dict/defaultdict/deque.clear(), usable in generic mutable collection function; 2. makes it easier to switch between list and other collection class; 3. current alternatives are not as

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