[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-11 Thread Edward K Ream
Edward K Ream added the comment: You're welcome. It was a pleasure working with you all on this issue. I enjoyed learning the PR workflow, and I enjoyed the discussion of the merits. One last comment. Like everything in life, links and their implied endorsements are provisional. If a link

[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-07 Thread Edward K Ream
New submission from Edward K Ream : These links added with the provisional approval of GvR, pending approval of the PR. -- assignee: docs@python components: Documentation messages: 375019 nosy: docs@python, edreamleo priority: normal severity: normal status: open title: Add links

[issue33337] Provide a supported Concrete Syntax Tree implementation in the standard library

2020-07-25 Thread Edward K Ream
Edward K Ream added the comment: Hello all, This is a "sideways" response to this issue. I have been dithering about whether to give you a heads up. I hope you won't mind... I have just announced the leoAst.py on python-announce-list. You can read the announcement her

[issue38663] Untokenize does not round-trip ws before bs-nl

2019-11-03 Thread Edward K Ream
Edward K Ream added the comment: This post: https://groups.google.com/d/msg/leo-editor/DpZ2cMS03WE/5X8IDzpgEAAJ discusses unit testing. The summary states: "I've done the heavy lifting on issue 38663. Python devs should handle the details of testing and packaging."

[issue38663] Untokenize does not round-trip ws before bs-nl

2019-11-03 Thread Edward K Ream
Edward K Ream added the comment: This post https://groups.google.com/d/msg/leo-editor/DpZ2cMS03WE/VPqtB9lTEAAJ discusses a complete rewrite of tokenizer.untokenize. To quote from the post: I have "discovered" a spectacular replacement for Untokenizer.untokenize in python's tokeni

[issue38663] Untokenize does not round-trip ws before bs-nl

2019-11-03 Thread Edward K Ream
Edward K Ream added the comment: The original bug report used a Leo-only function, g.toUnicode. To fix this, replace: result = g.toUnicode(tokenize.untokenize(tokens)) by: result_b = tokenize.untokenize(tokens) result = result_b.decode('utf-8', 'strict

[issue38663] Untokenize does not round-trip ws before bs-nl

2019-11-01 Thread Edward K Ream
New submission from Edward K Ream : Tested on 3.6. tokenize.untokenize does not round-trip whitespace before backslash-newlines outside of strings: from io import BytesIO import tokenize # Round tripping fails on the second string. table = ( r''' print\ ("abc") ''',

[issue22616] Allow connecting AST nodes with corresponding source ranges

2019-01-14 Thread Edward K Ream
Edward K Ream added the comment: On Mon, Jan 14, 2019 at 5:24 AM Ivan Levkivskyi wrote: Adding endline and endcolumn to every ast node will be a big improvement. Edward -- Edward K. Ream: edream

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-29 Thread Edward K. Ream
Edward K. Ream added the comment: Thank you, Steve, et. al. for resolving this issue. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-03 Thread Edward K. Ream
Edward K. Ream added the comment: On Sat, Dec 3, 2016 at 1:37 PM, Steve Dower <rep...@bugs.python.org> wrote: ​Thanks, Steve and David, for your replies. Getting this issue fixed eventually will do.​ Glad to hear it was a mistake, and not policy ;-

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-03 Thread Edward K. Ream
Edward K. Ream added the comment: The last message on this thread was in January, and this item is Open. According to Pep 478, 3.5.2 final was released Sunday, June 26, 2016. How is this issue not a release blocker? Why does there appear to be no urgency in fixing this bug? This bug bites

[issue22819] Python3.4: xml.sax.saxutils.XMLGenerator.__init__ fails with pythonw.exe

2014-11-08 Thread Edward K. Ream
New submission from Edward K. Ream: In Python3.2 xml.sax.saxutils.XMLGenerator.__init__ succeeds if the out keyword argument is not given and sys.stdout is None, which will typically be the case when using pythonw.exe. Alas, on Python3.4, the ctor throws an exception in this case

[issue22616] Allow connecting AST nodes with corresponding source ranges

2014-10-12 Thread Edward K. Ream
Edward K. Ream added the comment: I urge the Python development team to fix this and the related bugs given in the Post Script. The lack of an easy way of associating ast nodes with text ranges in the original sources is arguably the biggest hole in the Python api. These bugs have immediate

[issue17850] unicode_escape encoding fails for '\\Upsilon'

2013-04-26 Thread Edward K. Ream
New submission from Edward K. Ream: On both windows and Linux the following fails on Python 2.7: s = '\\Upsilon' unicode(s,unicode_escape) UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 0-7: end of string in escape sequence BTW, the six.py package uses

[issue17850] unicode_escape encoding fails for '\\Upsilon'

2013-04-26 Thread Edward K. Ream
Edward K. Ream added the comment: Thanks for your quick reply. If this is not a bug, why does six define six.u as unicode(s,unicode_escape) for *all* u constants?? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17850

[issue17850] unicode_escape encoding fails for '\\Upsilon'

2013-04-26 Thread Edward K Ream
Edward K Ream added the comment: On Fri, Apr 26, 2013 at 8:51 AM, Edward K. Ream rep...@bugs.python.orgwrote: If this is not a bug, why does six define six.u as unicode(s,unicode_escape) for *all* u constants?? Oops. The following works:: s = r'\\Upsilon' unicode(s,unicode_escape

[issue4531] Deprecation warnings in lib\compiler\ast.py

2008-12-04 Thread Edward K Ream
New submission from Edward K Ream [EMAIL PROTECTED]: Python 2.6 final on Windows XP gives following warnings with -3 option: c:\python26\lib\compiler\ast.py:54: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib

[issue4531] Deprecation warnings in lib\compiler\ast.py

2008-12-04 Thread Edward K Ream
Edward K Ream [EMAIL PROTECTED] added the comment: On Thu, Dec 4, 2008 at 12:33 PM, Brett Cannon [EMAIL PROTECTED] wrote: Brett Cannon [EMAIL PROTECTED] added the comment: Considering the entire compiler package is not in 3.0 it is not worth fixing this. Closing as wont fix. Thanks

[issue3590] sax.parser hangs on byte streams

2008-08-18 Thread Edward K Ream
New submission from Edward K Ream [EMAIL PROTECTED]: While porting Leo to Python 3.0, I found that passing any byte stream to xml.sax.parser.parse will hang the parser. My quick fix was to change: while buffer != : to: while buffer != and buffer != b: at line 123 of xmlreader.py

[issue3590] sax.parser hangs on byte streams

2008-08-18 Thread Edward K Ream
Edward K Ream [EMAIL PROTECTED] added the comment: On Mon, Aug 18, 2008 at 10:09 AM, Benjamin Peterson [EMAIL PROTECTED]wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: It should probably be changed to just while buffer != b since it requests a byte stream. That was my guess

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Edward K Ream
Edward K Ream [EMAIL PROTECTED] added the comment: On Mon, Aug 18, 2008 at 1:51 PM, Antoine Pitrou [EMAIL PROTECTED]wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: From the discussion on the python-3000, it looks like it would be nice if sax.parser handled both bytes and unicode

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Edward K Ream
Edward K Ream [EMAIL PROTECTED] added the comment: On Mon, Aug 18, 2008 at 11:00 AM, Antoine Pitrou [EMAIL PROTECTED]wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: Just to be clear, I am at present totally confused about io streams :-) Python 3.0 distincts more clearly

[issue3590] sax.parser considers XML as text rather than bytes

2008-08-18 Thread Edward K Ream
Edward K Ream [EMAIL PROTECTED] added the comment: On Mon, Aug 18, 2008 at 4:15 PM, Antoine Pitrou [EMAIL PROTECTED]wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: The same calls to sax read the file correctly on Python 2.5. What are those calls exactly? parser