Skip to content

Feature Request: automatically print expression on variable assignment (similar to pry) #209

Open
@jdsutherland

Description

@jdsutherland

pry (ruby REPL) has a feature where the resulting expression is printed during a variable assignment.

Here's a screengrab for clarity:
image

I find this useful as I'd often like to see each result when sending existing code (containing variable assignments) to ptpython from vim. Currently, it seems that one has to retype the assigned variable to view results, which is a bit slow.

Is this an existing feature? If not, might you consider a PR? I imagine it'd be preferred as an optionally configurable feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions