Skip to content

Python Console: Preserve the result of the last executed command #9782

@JulienCochuyt

Description

@JulienCochuyt

Is your feature request related to a problem? Please describe.

The NVDA Python Console implementation prevents clobbering of the gettext _ built-in but at the same time prevents the user from taking advantage of the standard sys.displayhook saving the last returned value under that same name.

Describe the solution you'd like

Best of both worlds: Gettext not clobbered and last returned value accessible as the underscore variable.

Describe alternatives you've considered

Additional context

Upcoming PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions