Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Fix #11334: Cannot make multi-line code blocks in ipython #11354
When codeop.compile_command() returns None it actually says "at least
When codeop.compile_command() returns None it actually says "at least some part of the code was compiled successfully" which is not really important for checking if it's complete or not. Once we haven't got any errors during compilation process, we just want to check if there will be another nested block of code or not by checking a colon.
I am very busy today but this looks like an another bug to me that we haven't noticed before because of this bug.
If there is at least one space in the last line (blank) then the line is complete.
this seem to work correctly.
The bug is in a code before
I can take a look in it closer but not before weekend.
If so, this helped me to focus back to the
Going off for a day or two, leaving the comment for notes, but feel free to share some information if you have or finish the fix obviously ;-)
PS. @Carreau is there any guide how to develop and test locally IPython? When I want to use IPython installed globally (to meet all requirements etc.) I have no access to the IPython-dev directory as all imports are already done for starting IPython itself. I can figure it out how to do this but maybe there is a note about it somewhere?
@takluyver wrote most of this,
Clone the repo and run
https://github.com/ipython/ipython#development-and-instant-running is basically links to longer versions than this.