[issue12730] Python's casemapping functions are untrustworthy due to narrow/wide build issues

2011-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are right, FF switched on me without notice. Bad FF. Thank you! What I now see makes much more sense. [ "๐ผ๐ฏ๐‘…๐จ๐‘‰๐ฏ๐ป", "๐ผ๐ฏ๐‘…๐จ๐‘‰๐ฏ๐ป", "๐”๐ฏ๐‘…๐จ๐‘‰๐ฏ๐ป", "๐”๐‡๐๐€๐ก๐‡๐“" ], and I now know to check on other p

[issue12730] Python's casemapping functions are untrustworthy due to narrow/wide build issues

2011-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Adding Symbola filled in the symbols and emoticons lines. The gothic chars are still missing even with Alfios. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12672] Some problems in documentation extending/newtypes.html

2011-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: "the type object determines which (C) functions get called when, for instance, an attribute gets looked up on an object or it is multiplied by another object. These C functions are called โ€œtype methodsโ€ "These C functions" are any of the C fun

[issue12672] Some problems in documentation extending/newtypes.html

2011-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are right, I suggested deleting too much. The first half of the sentence is needed to define 'type methods', which is used several more times and is the title of the next section. We need to keep "These C functions are called โ€œtype me

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: On my fresh install, double clicking *does* run the file as it should, but the window disappears immediately, erasing output and error tracebacks, unless one adds something like ``input("Hit Enter to quit") at the end of the script so the user c

[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Only if the issue is closed, so that it actually means 'fixed'. Otherwise, just delete it. The following data suggests to me that 'accepted' is a de facto synonym for 'fixed' and therefore useless and might as well be removed. N

[issue12745] Python2 or Python3 page

2011-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with your sentiments about Python 2 while being aware that not all agree yet and that the current Wiki page was the result of some heated discussion and compromise. I also agree that the page could use tweaking/updating/rewriting. For one thing the

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that the test file raises the quoted SyntaxError on 3.2 on Win7. This: >>> "\N{LATIN CAPITAL LETTER GHA}" SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-27: unknown Unicod

[issue12775] immense performance problems related to the garbage collector

2011-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is in security fix only mode and the OP agrees not applicable to current -- nosy: +terry.reedy resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue12792] Document the "type" field of the tracker in the devguide

2011-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: This documents the current list, but ;-) I think the current list should be modified. 1. Put behavior at the top of the list, as it is the most common (a 'human factor' principle). 2. Combine performance and resource usage. Both are extremel

[issue12792] Document the "type" field of the tracker in the devguide

2011-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Behaviors' is quite legal. However, "behavior Wrong or unexpected behaviors/results/exceptions. ..." could well be "behavior Wrong or unexpected behavior, result, or exception. ..." --

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I improved UTF16.__getitem__ to handle negative indexes and slices. The later uses the same adjustment as for indexes. An __iter__ method is not needed as str.__iter__ used __getitem__. I will take further discussion of this prototype to python-ideas list

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file22900/utf16.py ___ Python tracker <http://bugs.python.org/issue12729> ___ ___ Python-bugs-list mailin

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file23025/utf16.py ___ Python tracker <http://bugs.python.org/issue12729> ___ ___ Python-bugs-list mailin

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: My proposal is better than log(N) in 2 respects. 1) There need only be a time penalty when there are non-BMP chars and indexing currently gives the 'wrong' answer and therefore when a time-penalty should be acceptable. Lookup for normal all-BMP str

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: PEP-393 will take care of iterating by code points. Where would you have other iterators go? The string module? Something else I have not thought of? Or something new? -- ___ Python tracker <http://bugs.python.

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python makes it easy to transform a sequence with a generator as long as no look-ahead is needed. utf16.UTF16.__iter__ is a typical example. Whenever a surrogate is found, grab the matching one. However, grapheme clustering does require look-ahead, which is

[issue12797] io.FileIO and io.open should support openat

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I prefer a new parameter either at the end of the arglist or possibly keyword only. The idea for both variations is to let typical users ignore the option, which would be hard to do if it is part of the prime parameter. The idea for keyword only is that we

[issue12805] Optimizations for bytes.join() et. al

2011-08-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue12805> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12815] Coverage of smtpd.py

2011-08-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Library (Lib), Tests versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue12815> ___ ___ Python-bug

[issue12814] Possible intermittent bug in test_array

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Which Python version? 3.3? -- components: +Library (Lib), Tests nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue12

[issue12808] Coverage of codecs.py

2011-08-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Library (Lib), Tests versions: +Python 3.3 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue12808> ___ ___

[issue12816] smtpd uses library outside of the standard libraries

2011-08-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue12816> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12829] pyexpat segmentation fault caused by multiple calls to Parse()

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: A note for anyone else: David is actually using the xml.parsers.expat module, which uses the now undocumented pyexpat module, whose direct use is deprecated. David: Have you tested with 3.1 or 3.2? (I am about to try on Windows ;-). -- nosy

[issue12829] pyexpat segmentation fault caused by multiple calls to Parse()

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Running with IDLE on Windows, I get no crash or uncaught exception but got these printed lines: An error occurred during XML parsing. Error ID: 9. Error message: junk after document element Line number: 1 An error occurred during XML parsing. Error ID: 9

[issue12836] ctypes.cast() creates circular reference in original object

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: What action are you suggesting? Change ctypes code or its doc or something else. If the doc, please suggest a specific change. Can you test on 3.x? -- nosy: +terry.reedy title: cast() creates circular reference in original object -> ctypes.c

[issue12843] file object read* methods in append mode overflows

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: > I have confirmed that this only happens in windows. This would literally mean that you tested on several other systems. Did you actually mean 'I have only confirmed that this happens in Windows.", that you only tested on Windows? The 2.6

[issue12846] unicodedata.normalize turkish letter problem

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are doing two different things to the original string: normalizing and encoding to ascii with errors ignored. Each should be tested separately. On 3.2: import unicodedata s1 = "รผfรผrรผkรงรผ aฤŸaรง ve ฤฑslฤฑkรงฤฑ รงeลŸme" s2 = unicodedata.normalize('N

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: > But I think we may want to create a new module which provides various APIs specifically for apps that need care when dealing with Unicode. I have started thinking that way too -- perhaps "unitools"? It could contain the code point iterator for t

[issue12829] pyexpat segmentation fault caused by multiple calls to Parse()

2011-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: My understanding is that what you did: import xml.parsers.expat is now the proper way to use expat. After some searching, it seems the sentence about direct use of pyexpat being deprecated refers to http://sourceforge.net/tracker/?func=detail&aid=274

[issue12829] pyexpat segmentation fault caused by multiple calls to Parse()

2011-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: This seems to be a Mac-only issue. Barry, does this seem to be a security issue to you, or should we delete 2.6 from the versions? -- assignee: -> ronaldoussoren components: +Macintosh nosy: +barry, ned.deily, ronaldousso

[issue12528] Implement configurable bitfield allocation strategy

2011-09-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: As a (Windows) user, I would like to be able to download any working pre-compiled shared library (.dll) and access it via ctypes. The particular compiler used to compile cpythonx.y.z should not determine whether a Pythonx.y program works. The use of VSC2008

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ezio, that is a lot of nice work to track down those pieces of the standard. I think the operative phrase in many of those quotes is 'open interchange'. Codecs are also used for private storage. If I use the unassigned or private-use code points in

[issue12850] [PATCH] stm.atomic

2011-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Semi-seriously, _PyEval_ForArminRigoOnly_ /* This function does whatever Armin Rigo wants it to do. He may change it at any time. Do not use it. */ This would let you experiment with the boundary as you will (with review, of course) and relieve us of any

[issue12922] StringIO and seek()

2011-09-06 Thread Terry J. Reedy
New submission from Terry J. Reedy : First, there is a minor documentation issue. 15.2.3.1. I/O Base Classes class io.IOBase seek(offset, whence=SEEK_SET) Change the stream position to the given byte offset Since StringIO seeks by code units that should perhaps say 'byte or code unit o

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 9/8/2011 4:32 AM, Ezio Melotti wrote: > So to summarize a bit, there are different possible level of strictness: >1) all the possible encodable values, including the ones>10; >2) values in range 0..10; >3) values in range 0

[issue12902] help("modules") executes module code

2011-09-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The immediate issue is improvement of the entries for help and help(): In builtin functions section: Expand "Invoke the built-in help system." to "Invoke the built-in help system, which uses *pydoc*." where *pydoc* is linked to the pydoc

[issue12913] Add a debugging howto

2011-09-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you write 'How to debug Python code' rather than just "How to use pdb", I would start with the use of print statements and binary search. Have short sections on using trace and profile. Very useful would be a list of error messages and

[issue12299] Stop documenting functions added by site as builtins

2011-09-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can we close this as out-of-date, since 2/3rds of what you asked seems to be done already, and the last 1/3 should (in my opinion) absolutely not be? -- ___ Python tracker <http://bugs.python.org/issue12

[issue12914] Add cram function to textwrap

2011-09-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is already available: >>> import pydoc >>> pydoc.cram('This sentence is too long to fit the space I have made >>> available', 28) 'This sentenc...ade available' def cram(text, maxlen): ""&qu

[issue12915] Add inspect.locate and inspect.resolve

2011-09-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: To be a little clearer, this is about dotted import names, not regular dotted names. pydoc.locate(path, forceload=0): """Locate an object by name or dotted path, importing as necessary""" pydoc.resolve(thing, forceload=0): &

[issue12940] Cmd example using turtle left vs. right doc-bug

2011-09-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2. Any patch should trivially port to 3.3 and 2.7 -- nosy: +terry.reedy versions: +Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issue12

[issue12941] add random.pop()

2011-09-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> rejected stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12942] Shebang line fixer for 2to3

2011-09-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed ___ Python tracker <http://bugs.python.org/issue12942> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12914] Add cram function to textwrap

2011-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: This pretty well summarizes my vague feelings. I originally used a size 30 in my example, getting 'This sentence...made available' and then realized that it was a complete accident that I got complete words. If anything were made publicly availabl

[issue6081] str.format_from_mapping()

2010-08-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I understand now that new methods, as opposed to changed methods, are allowed. I agree with Eric that this seems more like a convinience rather than absolute necessity, and that the doc should be augmented. The doc for vformat (which I admit I had not

[issue9582] documentation line needs rewording

2010-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: PATCH add 'are' after 'expressions'. -- keywords: +patch nosy: +terry.reedy stage: -> needs patch type: -> behavior ___ Python tracker <htt

[issue9582] documentation line needs rewording

2010-08-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +easy ___ Python tracker <http://bugs.python.org/issue9582> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9583] PYTHONOPTIMIZE = 0 is not honored

2010-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: How did you conclude that PYTHONOPTIMIZE = 0 is not honored? Can you provide a minimal example or demonstration. In any case, 2.6.6 is nearly out so bad behavior needs to be demonstrated with 2.7/3.x. -- nosy: +terry.reedy versions: +Python 2.7

[issue9562] Slightly misleading wording in documentation of dict.update

2010-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with the replacement: 'tuples' and 'interables' modify and must agree with 'pairs', not the initial 'iterable'. -- keywords: +easy, patch nosy: +terry.reedy stage: -> ne

[issue9533] metaclass can't derive from ABC

2010-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: +- same traceback in 3.1 Since ABCmeta is not used (by name) its import is not needed. I have no opinion on whether this should work. -- nosy: +terry.reedy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

[issue9523] Improve dbm module

2010-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upgrading to match the MutableMapping interface seems reasonable. -- nosy: +terry.reedy stage: -> patch review ___ Python tracker <http://bugs.python.org/iss

[issue7352] pythonx.y-config --ldflags out of /usr and missing -L

2010-08-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: python2.6-config --ldflags out of /usr and missing -L -> pythonx.y-config --ldflags out of /usr and missing -L versions: +Python 3.2 -Python 2.7 ___ Python tracker <http://bugs.python.org/iss

[issue9584] Allow curly braces in fnmatch

2010-08-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: rejected -> stage: committed/rejected -> patch review ___ Python tracker <http://bugs.python.org/issue9584> ___ __

[issue9591] kqueue not reporting EOF under certain circumstances

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume the first example should have been # cat file | ./test.py or seceond should have been # ./test.py < test.py so that test.py gets same input on stdin in either case. For other readers: kqueue and kevent are bsd-specific functions and classes in

[issue9608] Re-phrase best way of using exceptions in doanddont.rst

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doc/howto/doanddont.rst is the source for Python HOWTOs: Idioms and Anti-Idioms in Python Moshe Zadka original author (added as nosy) The gist of the patch is to clarify that using 'with' is best, not the non-with version that is currently called

[issue9620] Python 2.7 IDLE fails on OS X 10.6

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, any reason not to close this as a duplicate, with #9227 as superseder? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue9

[issue9618] IDLE shell ignores all but first statement

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In interactive mode, multiline statements are terminated with a blank line. Your examples lacks that, so the 3rd line is part of the def and lacking the proper indent, is indeed a syntax error. You get the same with the standard command-line interpreter

[issue9622] Allow to set profile/trace function globally

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

[issue9624] 2755

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

[issue9632] Remove sys.setfilesystemencoding()

2010-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> patch review type: -> feature request ___ Python tracker <http://bugs.python.org/issue9632> ___ ___ Python-bugs-

[issue9637] docs do not say that urllib uses HTTP_PROXY

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are you talking about top-level code within the urllib module or code within defined functions. If the former, can you quote or point to the place in the file? If the latter, which functions? Just urlopen or others? Does urllib2.urlopen have the same issue

[issue9602] PyObject_AsCharBuffer() should only accept read-only objects

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

[issue9643] urllib2 - Basic, Digest Proxy Auth Handlers failure will give 401 code instead of 407

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.x, http_error_auth_reqed is a method of urllib.request.AbstractBasicAuthHandler (20.5.8. AbstractBasicAuthHandler Objects in 3.1 lib manual) -- nosy: +terry.reedy stage: -> unit test needed ___ Python trac

[issue9649] wrong default for sort_keys in json module documentation

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.1, and I presume (please check) 2.7, the signature is given as class json.JSONEncoder(skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None) I verified by simple experiment

[issue9620] Python 2.7 IDLE fails on OS X 10.6

2010-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X ___ Python tracker <http://bugs.pyt

[issue1011113] Make โ€œinstallโ€ find the buil d_base directory

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

[issue7694] DeprecationWarning from build_ext needs stacklevel

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

[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.

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