Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
raffaem opened this issue Jul 12, 2024 · 0 comments
Open

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

raffaem opened this issue Jul 12, 2024 · 0 comments

Comments

@raffaem
Copy link

raffaem commented Jul 12, 2024

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 
@raffaem raffaem changed the title Paste mode: function definition ended Paste mode: how to tell ptpython that a function definition ended Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant