Skip to content

Binder: no public way to finalize or flush the interpreter from Kotlin #339

Open

Description

@b-re-w

Found while writing the desktop release example (#338). Python3.finalize() is internal, so a consumer app cannot shut the interpreter down; Python's buffered sys.stdout is then lost at JVM exit unless the Python code flushes it itself (the example does). Also Python3.eval takes (expr, start, globals, locals) with no one-argument convenience for the common case. Completion: a public, documented shutdown (or an exit hook that flushes) and a simple eval form, with tests; README and the release example updated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions