Skip to content

Paste mode: how to tell ptpython that a function definition ended #589

Open
@raffaem

Description

@raffaem

I don't understand, when in paste mode, how to tell ptpython that the definition of a function ended and should be executed.

You just run an empty line in ipython, but that doesn't seem to work on ptpython:

➜  ptpython
>>> print("hello")
hello
>>> def myf(ins): 
...     print(ins) 
...  
...  
...  
...  <---- still waiting for user input 

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