Skip to content

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Jan 26, 2022

Since,

  • Py_CompileString no longer allows to distinguish "incomplete input"
    from "invalid input"
  • there is no alternative solution available from the Python C API
    due to how the new parser works (rewritten in 3.9)
  • the only supported way is to manually import the codeop module from C
    and use its API as IDLE does, and accept its own complications

it is desirable to remove this Q&A from the official FAQ..
(cherry picked from commit f0a6481)

Co-authored-by: Mateusz Łoskot [email protected]

https://bugs.python.org/issue46502

…thonGH-30925)

Since,

- Py_CompileString no longer allows to distinguish "incomplete input"
  from "invalid input"
- there is no alternative solution available from the Python C API
  due to how the new parser works (rewritten in 3.9)
- the only supported way is to manually import the codeop module from C
  and use its API as IDLE does, and accept its own complications

it is desirable to remove this Q&A from the official FAQ..
(cherry picked from commit f0a6481)

Co-authored-by: Mateusz Łoskot <[email protected]>
@bedevere-bot bedevere-bot added the docs Documentation in the Doc dir label Jan 26, 2022
@pablogsal pablogsal merged commit dafada3 into python:3.9 Jan 27, 2022
@pablogsal pablogsal deleted the backport-f0a6481-3.9 branch January 27, 2022 00:16
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
…thonGH-30925) (pythonGH-30934)

Since,

- Py_CompileString no longer allows to distinguish "incomplete input"
  from "invalid input"
- there is no alternative solution available from the Python C API
  due to how the new parser works (rewritten in 3.9)
- the only supported way is to manually import the codeop module from C
  and use its API as IDLE does, and accept its own complications

it is desirable to remove this Q&A from the official FAQ..
(cherry picked from commit f0a6481)

Co-authored-by: Mateusz Łoskot <[email protected]>

Co-authored-by: Mateusz Łoskot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants