[issue9618] IDLE shell ignores all but first statement

2010-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree: Implementation note: PyShell.py hass the following line: from code import InteractiveInterpreter That is the base class for InteractiveConsole, the subject of #7741. PyShell makes it own extension class ModifiedInterpreter(InteractiveInterpreter

[issue9618] IDLE shell ignores all but first statement

2010-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: To be clearer, this issue is an elaboration of the #3559 report that \n 'does not work' in that it points out that \n silently ignores the second while \n is reported as a syntax error. I agree that this elaboration should have been included ther

[issue3559] Pasted \n not same as typed \n

2010-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I switched to patch review because I am not sure unit test is possible. I did not advocate a change to immediate execution in my original post. I noted that pasting multiple statements does not work and that if it cannot be made to work, the limitation

[issue7182] For non-debug builds, the cygwinccompiler.py should define NDEBUG

2010-08-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue7182> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9658] weakref.proxy unequal to its referent in 2.x

2010-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is definitely not a critical fix for 2.6 ;-) The weakref.proxy doc says nothing about comparisons: "weakref.proxy(object[, callback]) Return a proxy to object which uses a weak reference. This supports use of the proxy in most contexts inste

[issue2942] mingw/cygwin do not accept asm file as extension source

2010-08-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue2942> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2010-08-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that a tolerant mode would be good (and often requested). String encoding and decoding also have strict and forgiving modes, so this seems close to a policy. Unit tests with example snippets that properly fail strict mode and pass the new tolerant

[issue4966] Improving Lib Doc Sequence Types Section

2010-08-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please go ahead. I will gladly review anything you do. -- ___ Python tracker <http://bugs.python.org/issue4966> ___ ___ Pytho

[issue1437699] allow unicode arguments for robotparser.can_fetch

2010-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: While Python is 'GPL compatible', whatever that means, it cannot incorporate GPLed code in the PSF distribution. Code must be contributed under one on the two licenses in the contributor agreement. Philip, can you contribute a patch appropriate to

[issue9652] Tidy argparse default output

2010-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 is closed to new features and I cannot see making a non-bug change in a maintenance release that could break something. Should this be closed in favor of #9694? (Or vice versa?). Perhaps one of the issues should be renamed something like "Im

[issue9694] argparse: Default Help Message Lists Required Args As Optional

2010-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this really a behavior bug or doc bug? Or a feature request for better message customization? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue9

[issue9668] strings in json.dump in '' instead of ""

2010-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6.6 is the final 2.6 bugfix release. A bug would have to be demonstrated with 2.7 or 3.1/2. On 3.1, winxp, I get this also: >>> import json >>> json.dumps('foo') '"foo"' -- nosy: +terry.reed

[issue9668] strings in json.dump in '' instead of ""

2010-08-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue9668> ___ ___ Python-bugs-list mailing list Unsubscri

[issue9668] strings in json.dump in '' instead of ""

2010-08-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Library (Lib) -None status: pending -> open ___ Python tracker <http://bugs.python.org/issue9668> ___ ___ Python-

[issue9668] strings in json.dump in '' instead of ""

2010-08-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue9668> ___ ___ Python-bugs-list mailing list Unsubscri

[issue9672] test_xpickle fails on Windows: invokes pythonx.y instead of pythonxy

2010-08-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker <http://bugs.python.org/issue9672> ___ ___ Python-bugs-list mailin

[issue9669] regexp: zero-width matches in MIN_UNTIL

2010-08-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti, pitrou ___ Python tracker <http://bugs.python.org/issue9669> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9664] Make gzip module not require that underlying file object support seek

2010-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not think your wish is sensibly possible. GzipFile wraps an object that is or simulates a file. This is necessary because GzipFile "simulates most of the methods of a file object, with the exception of the readinto() and truncate() methods."

[issue9119] Python download page needs to mention crypto code in Windows installer

2010-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is really two issues: docs and windows builds. As for docs: Many of the module doc pages mention original authors and give urls for further info. The ssl page already says " This module uses the OpenSSL library." Rather than fuss over wheth

[issue4327] Patch: simplify complex constant assignment statements

2010-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. A programmer who mashes a = d = 1 b, c = e = 2, 3 into one statement deserves the bytecode he gets ;-). -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue4

[issue5556] interactive interpreter, source encoding

2010-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Additional note: RefMan 2. Lexical analysis: "Python reads program text as Unicode code points;" Doc for runsource says "Compile and run some source in the interpreter. Arguments are the same as for compile_command()". Latter says &q

[issue1353344] python.desktop

2010-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I asked because there was no such thing in the Unix I once used and I have never used Linux (yet). I take Georg's answer to mean that this is not obviously obsolete and should be left open. -- ___ Python tr

[issue1397474] timeit execution enviroment

2010-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the Timer doc is deficient in not saying that timing is done within a function defined within the timeit module. It is also deficient in not mentioning the secret of how to successfully pass user-defined functions until the very bottom instead

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-09-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: While refactoring the code for 2.7, I discovered that the description of the heuristic for 2.6 and in the code comments is off by 1. "items that appear more than 1% of the time" should actually be "items whose duplicates (after the first) app

[issue9717] operator module - "in place" operators documentation

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the docs for augmented assignments and the corresponding method and funciton can and should be improved. But I do not like this as is. In particular, Python does not have in-place operators; it has methods that optionally do an operation in

[issue9731] Add ABCMeta.has_methods and tests that use it

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Good idea! I see Raymond's point about the name. How about .method_check? To me Sequence.method_check(range) means "Abstract Seqeunce class, please method-check the concrete range class." If Sequence.register(range) is in the range sourc

[issue9728] Docs point to FAQ Section 3, but FAQs are not numbered

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I remember, the FAQ was once that, *the* (giant) FAQ, with numbered sections. When broken into pieces, the order may have been re-arranged. Given that the broken reference is in extending/windows, I would look in both the Extending and Windows FAQs

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: PATCH Specifically, in section 17.6. base64..., near bottom, example should be >>> import base64 >>> encoded = base64.b64encode(b'data to be encoded') #hang >>> encoded b'ZGF0YSB0byBiZSBlbmNvZGVk' >>>

[issue9767] Failures in json doc examples

2010-09-03 Thread Terry J. Reedy
New submission from Terry J. Reedy : I ran doctest on LibRef 17.2 json saved as .txt. There are 4 failures: 2 are clearly doc issues, the other 2 I do not know. I hope someone reads this who is already familiar DOC PATCHES dumps(2 + 1j, cls=ComplexEncoder) should be json.dumps(2 + 1j

[issue9730] base64 docs refers to strings instead of bytes

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: As an experiment, I ran doctest on 17.2 json saved as .txt, See #9767 4 failures, 2 obvious doc faults, 2 unclear to me. Their were 2 similar doc faults in non-interactive code examples, so doctest is not enough to catch all bad code. We clearly need to do

[issue9739] Output of help(...) is wider than 80 characters

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Although this is not a problem in IDLE where the window can easily be expanded beyond 80 chars, I am in favor of the idea for other uses. The command line interpreter on Windows defaults to 80 chars and is not so easy to change, and one must be admin to make

[issue9738] Document the encoding of functions bytes arguments of the C API

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Better specifying requirements is good. A few comments: - The second argument is an error message; it is converted to a string object. + The second argument is an error message; it is decoded to a string object + with ``'utf-8'`` encoding.

[issue9767] Failures in json doc examples

2010-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Well, anyone who does try that example will see the correct output and not notice the trailing whitespace difference. It will only be an issue if and when automated doc doctests are run repeatedly. Worry about it then. Thanks for the quick response

[issue9717] operator module - "in place" operators documentation

2010-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since Raymond has grabbed this, I will let him decide on its scope. I agree with sectioning the operator doc and intended to suggest that. The term 'in-place operation' is fine when accurate. The term 'in-place operator', which is what

[issue9664] Make gzip module not require that underlying file object support seek

2010-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is possible that only a fixed-size buffer is needed. If so, use of an alternate read mechanism could be conditioned on the underlying file(like) object not having seek. It is also possible to direct a stream to a temporary file, but I think having the

[issue9730] base64 docs refers to strings instead of bytes

2010-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I hope the trivial 2-byte fix does not get lost in the general issue. -- ___ Python tracker <http://bugs.python.org/issue9

[issue7894] too aggressive dependency tracking in distutils

2010-09-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue7894> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch changes the internal function that constructs the dict mapping b items to indexes to read as follows: create b2j mapping if isjunk function, move junk items to junk set if autojunk, move popular items to popular set I helped write and test the

[issue9315] The trace module lacks unit tests

2010-09-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with finishing this and opening a separate issue with respect to list comp behavior. The latter seems peripheral to the purpose of this issue. -- ___ Python tracker <http://bugs.python.org/issue9

[issue9842] Document ... used in recursive repr of containers

2010-09-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue9842> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9856] Change object.__format__(s) where s is non-empty to a DeprecationWarning

2010-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Perhaps this could be expanded to "Deprecation warnings in 3.3" with release-blocker priority to list all 3.2 PendingDWs. Once changes are made, it could be retitled "Removals in 3.4", with a new "Deprecation warnings in 3.4&

[issue9859] Add tests to verify API match of modules with 2 implementations

2010-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: +1 I presume you can use the experience with #9858 to either refine the program to have fewer false positives or refine the program doc to explain the possibility where such are unavoidable. (And as a lint-like metatest, I think false positives are better

[issue9871] IDLE dies when using some regex

2010-09-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Verified as IDLE specific on WinXP, 3.1.2 With interpreter, I get >>> import re; re.findall(b"\x.{2}", b"sdds\xd8") ValueError: invalid \x escape In an IDLE Shell window, the window immediately disappears when I hit return and

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +theller ___ Python tracker <http://bugs.python.org/issue9884> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1887] distutils doesn't support out-of-source builds

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect so, but I leave it to Eric to decide. -- ___ Python tracker <http://bugs.python.org/issue1887> ___ ___ Python-bug

[issue1887] distutils doesn't support out-of-source builds

2010-09-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue1887> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1865] Document bytes alias for 2.7

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing title to match current issue status. DOC PATCH Grammar section: As near as I can tell, the alternatives for stringprefix::= "r" | "u" | "ur" | "R" | "U" | "UR" | "Ur" |

[issue2057] difflib: add patch capability

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that difflib produces unified diffs (among 3 others) and that diff.py is a thin command-line wrapper that provides access to all 4 formats (with no default), I consider those two files 'ready'. So I presume you are referring to your patch.py

[issue9583] PYTHONOPTIMIZE = 0 is not honored

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am following the suggestion in the last sentence of the original post and turning this into a doc issue. I believe it is standard that command-line switches override environmental variables when there is a conflict, but 'Using Python', s

[issue9583] Document startup option/environment interaction

2010-09-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> d...@python components: +Documentation -Interpreter Core nosy: +d...@python title: PYTHONOPTIMIZE = 0 is not honored -> Document startup option/environment interaction type: behavior -> _

[issue2213] build_tkinter.py does not handle paths with spaces

2010-09-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue2213> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9583] Document startup option/environment interaction

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not deny that the behavior described in the doc is a bit strange (keying off of type, ignoring value) is a bit bizarre and contrary to reasonable expectation based on other programs. But to alter behavior before 3.2 or later would require a clearly

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The bug appears to really be limited to Vista?/W7. On WinXP, >>> os.path.exists('c:/programs/python31') True >>> os.path.exists(b'c:/programs/python31') True Has the patch been tested on WinXP to be sure it does not intro

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Only if given a revised 32bit binary (and revised test_os.py). I expect someone else who can will see this. -- ___ Python tracker <http://bugs.python.org/issue9

[issue9119] Python download page needs to mention crypto code in Windows installer

2010-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I sent an email. -- ___ Python tracker <http://bugs.python.org/issue9119> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9896] Introspectable range objects

2010-09-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Range objects are new in 3.0; they supersede 2.x xrange objects, which are perhaps 10 years old. I do not remember that xrange objects had such attributes. On the other hand, I believe there were requests. The request, with either implementation, seems

[issue9889] PyUnicode_FormatV and Py_UNICODE*?

2010-09-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue9889> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9915] speeding up sorting with a key

2010-09-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The posted experiments on sorted data do not do any sorting. They only test the difference in setup and comparison speed and not sorting/swapping speed. Please post something with large arrays of random data. Since the patch is intended to speed up 3.2 and

[issue9925] Idle doesn't launch

2010-09-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue9925> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9934] Python Docs Typo

2010-09-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +easy, patch stage: -> needs patch versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker <http://bugs.python.org/iss

[issue9934] Python Docs Typo

2010-09-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Agreed. Should happen sometime. Thanks for catching this. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue9

[issue9915] speeding up sorting with a key

2010-09-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does this help any? >>> import random >>> from timeit import timeit >>> testlist = list(range(10)) >>> random.shuffle(testlist) >>> timeit('t=list(testlist); t.sort()', 'from __main__ import

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2010-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not use threads so I cannot comment on the technical issue. Since the current behavior is not clearly a bug, I do not think a change would or know that it should be applied to 2.7/3.1. So I suggest that you both 1. Suggest a doc patch on this issue

[issue5131] pprint doesn't know how to print a defaultdict

2010-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: >IMHO pprint should be able to make a decent job of all the built in types Agreed, already true as far as I know, and irrelevant. This issue is not about built-in types in the builtins module, as documented Lib Ref chapter 5 *Built-in Types*. Collections

[issue6466] duplicate get_version() code between cygwinccompiler and emxccompiler

2010-09-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue6466> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5302] Allow package_data globs match directories

2010-09-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue5302> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9943] TypeError message became less helpful in Python 2.7

2010-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW 3.1 gives same message as 2.6. I have not installed 3.2a yet to check that. Reporting of argument count mismatch has always been problematical, especially for methods. I almost think the message should be simplified to "Arguments passed do not

[issue9977] TestCase.assertItemsEqual's description of differences

2010-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I understand correctly, you are requesting that .assertItemsEqual only use the 2nd (multiset comparison) method, so that if one want the first method, one should directly call .assertSequenceEqual(sorted(a), sorted(b)). This seems reasonable to me, but I

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2010-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since 'we' can reopen any closed issue, I will try to answer what I think you might be asking. I closed this because of Daniel's suggestion coupled with the Richard disclaiming further interest and neither Raghuram nor any new responder saying

[issue10008] Two links point to same place

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: You initial link I only see one entry, Thread (class in threading), which points to http://docs.python.org/library/threading.html#threading.Thread as it should. I do not see a duplicate link nearby. I have no idea what ', [1]' is supposed to mean.

[issue10011] `except` doesn't use `isinstance`

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Questions should be asked on python-list or other discussion forums, not nere. If this were a feature-request, it would need a realistic use-case. If the implied change were requested, I would think it should be rejected as conflicting with the language

[issue10021] Format parser is too permissive

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a bug report in that there is a discrepancy between the grammar in the doc and the behavior. Laxiness can lead to portability problems if CPython is lax compared to a normal reading of the spec and another implementation takes the spec seriously. I

[issue10025] random.seed not initialized as advertised

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.1 has the same problem (and the same results as above) Assuming behavior is not changed, please suggest a specific rewording that you would be happy with and that is not too verbose. -- components: +Documentation nosy: +terry.reedy stage: -> ne

[issue10018] IDLE not loading in xp pro due to tcl issue

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please ask for help with installation and usage on the python-list mailing list, which is also mirrored on the gmane.comp.python.general newsgroup at news.gmane.org and the comp.lang.python usenet newsgroup. This issue tracker is for python bugs (and feature

[issue10043] UnboundLocalError with local variable set by setattr, caused by code run later

2010-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The usual way to set a module variable by name, rather than setattr(modules[__name__], 'name', 'value') is >>> globals()['name'] = 2 >>> name 2 Issues of working with external names, such as from database colu

[issue10008] Two links point to same place

2010-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: *Your initial post* only lists one index entry, and *does not* describe a problem. Thread module is in the file you have pointed to twice, in its alphabetical position. I have no idea what you think is wrong with the z section

[issue10008] Two links point to same place

2010-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I understand, the issue you were concerned about has been fixed. If so, please close this. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10008] Two links point to same place

2010-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I initially wrote "I have no idea what ', [1]' is supposed to mean. ", you should have believed that and explained ;-). I now understand that most index entries have one link, which we might call the [0] link. When the entry shoul

[issue7140] imp.new_module does not function correctly if the module is returned from a function and used directly

2010-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since that revision only touched py3k, I am guessing that it only broke 3.2. -- nosy: +terry.reedy versions: +Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker <http://bugs.python.org/issue7

[issue10058] Unclear PyString_AsStringAndSize return value

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[issue10118] Tkinter does not find font

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

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

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

[issue10172] code block has no syntax coloring

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

[issue10199] Move Demo/turtle under Lib/

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

[issue10177] PyUnicode_AsWideCharString and PyMem_Free

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

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

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

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

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

[issue10232] Tkinter issues with Scrollbar and custom widget list

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

[issue10232] Tkinter issues with Scrollbar and custom widget list

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

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

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

[issue7061] Improve 24.5. turtle doc

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

<    4   5   6   7   8   9   10   11   12   13   >