break in a module

Chris Angelico rosuav at gmail.com
Sat Jun 18 00:31:51 EDT 2011


On Sat, Jun 18, 2011 at 1:50 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> I don't think the use-case for this is convincing enough to need it, but
> it's an interesting concept. I once played around with a mini-language
> for config files that included a "STOP" command, so that:
>
> key = value
> STOP
> everything under here is ignored
>

Isn't that how Perl's __data__ keyword works? (Long time since I've
used it, it mightn't be quite __data__.)

ChrisA



More information about the Python-list mailing list