[issue36919] Exception from 'compile' reports a newline char not present in input

2019-09-11 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-09-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 42edfcfd129c7ac4842b9e0cd453bbe3ff006669 by Jason R. Coombs (Miss Islington (bot)) in branch '3.8': bpo-36919: make test_source_encoding.test_issue2301 implementation-independent (GH-13639) (GH-15952)

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-09-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset c2119399488a297275db7f0590cff957b6ce8a2e by Jason R. Coombs (Miss Islington (bot)) in branch '3.7': bpo-36919: make test_source_encoding.test_issue2301 implementation-independent (GH-13639) (GH-15953)

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +15588 pull_request: https://github.com/python/cpython/pull/15953 ___ Python tracker ___

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +15587 pull_request: https://github.com/python/cpython/pull/15952 ___ Python tracker ___

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-09-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset b6643dcfc26859f935e4b3a6a2a203e8ef5320e2 by Jason R. Coombs (Pavel Koneski) in branch 'master': bpo-36919: make test_source_encoding.test_issue2301 implementation-independent (#13639)

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-09-11 Thread Jason R. Coombs
Change by Jason R. Coombs : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-28 Thread Pavel Koneski
Change by Pavel Koneski : -- keywords: +patch pull_requests: +13535 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13639 ___ Python tracker ___

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Pavel Koneski
Pavel Koneski added the comment: > I'm assuming the real issue is wanting to make IronPython pass as much of the > CPython test suite as possible. This is indeed the case. The CPython test suite is invaluable in guiding IronPython development. Most of the time, the tests are pretty good to

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Guido van Rossum
Guido van Rossum added the comment: I'm assuming the real issue is wanting to make IronPython pass as much of the CPython test suite as possible. I am okay with interpretation (B) in this case -- I can totally see that other parsing strategies have no use for adding the '\n' character to

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Pavel Koneski
Change by Pavel Koneski : -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Pavel Koneski
Pavel Koneski added the comment: If "equivalent input" is acceptable, then it looks like case B: other implementations possibly having different forms of equivalent input. I am going to post this question on python-dev. -- versions: +Python 3.5, Python 3.6

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-18 Thread Anthony Sottile
Anthony Sottile added the comment: still not able to answer the why, but at least I can answer the what here: https://github.com/python/cpython/blob/f665b96e92a6a6943e312e2c606f348db95939ab/Parser/tokenizer.c#L984-L987 cpython adds a newline during tokenization if the file does not end in a

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-15 Thread Brett Cannon
Brett Cannon added the comment: I don't think it's option C. As for whether A or B I don't know. Wouldn't hurt to ask on python-dev if no one comes forward with a more authoritative answer. -- ___ Python tracker

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-15 Thread SilentGhost
SilentGhost added the comment: I don't think a roundtrip is guaranteed by the parser, only producing an equivalent input. -- nosy: +SilentGhost, benjamin.peterson, brett.cannon, yselivanov title: Exception form 'compile' reports a newline char not present in input -> Exception from