On 2007-08-01, beginner <[EMAIL PROTECTED]> wrote: > Thanks everyone for responding. It doesn't look like python has > it. I would definitely miss it. As Steve said, the nice thing > about __END__ is that things below __END__ do not have to have > legit syntax. That let me focus on the lines of code I am > debugging and do not have to worry about some bad syntax down > the line. This feature is especially handy if I am, saying, > replacing modoules or changing data structures.
A C-like trick might be helpful while refactoring: <working code> if False: <non-working code> You have to indent all the non-working code by one level, but with a good editor that's a snap. Python will still parse the following lines (it must be valid Python syntax), but the resulting parse tree won't be executed. -- Neil Cerutti -- http://mail.python.org/mailman/listinfo/python-list