Skip to content

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

@raffaelemancuso

Description

@raffaelemancuso

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions