Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Dedent prefix bugfix + tests: #142 #346
Re: issue #142, this expands the inputsplitter regex for 'dedentation' to correctly handle ignore lines such as "passes += 1", which should not dedent even though it begins with "pass". It's fine with arbitrary trailing whitespace and a few other wacky corner cases (return() is valid Python, as is return(0), same with raise(TypeError()), etc. -- these only dedent if you at least have a close paren after the open paren.)
Also adds tests for these new behaviours.
On 2011-04-10, at 2:43 AM, fperez wrote:
Very welcome. Thankfully it's exam, singular, and minor IPython hacking is proving to make for refreshing breaks from graph theory/dynamic programming proofs. :)