How to determine if a line of python code is a continuation of the line above it

Michael Spencer mahs at telcopartners.com
Sat Apr 8 18:12:50 EDT 2006


Sandra-24 wrote:
> No it's not an academic excercise, but your right, the situation is
> more complex than I originally thought. I've got a minor bug in my
> template code, but it'd cause more trouble to fix than to leave in for
> the moment.
> 
> Thanks for your input!
> -Sandra
> 
Take a look at the codeop module in the standard library

Michael




More information about the Python-list mailing list