]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] bpo-46502: Remove "How do I tell incomplete input" from FAQ (GH-30925) (GH...
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Thu, 27 Jan 2022 00:16:50 +0000 (00:16 +0000)
committerGitHub <noreply@github.com>
Thu, 27 Jan 2022 00:16:50 +0000 (00:16 +0000)
commitc7af838805ddf52320bce3d5978bfdd37eed1b3a
treeacfad9dcbd811d8063ec588781e4ecd83575c185
parent171fdf2162130bc8c748173bc8eef184b21f5a08
[3.10] bpo-46502: Remove "How do I tell incomplete input" from FAQ (GH-30925) (GH-30933)

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 f0a648152f2d8011f47cc49873438ebaf01d3f82)

Co-authored-by: Mateusz Łoskot <mateusz@loskot.net>
Co-authored-by: Mateusz Łoskot <mateusz@loskot.net>
Doc/faq/extending.rst