Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Python end of file marker similar to perl's __END__
- From: michele.simionato at gmail.com (Michele Simionato)
- Subject: Python end of file marker similar to perl's __END__
- Date: Wed, 01 Aug 2007 05:44:21 -0000
On Aug 1, 5:53 am, beginner <zyzhu2... at gmail.com> wrote: > Hi All, > > This is just a very simple question about a python trick. > > In perl, I can write __END__ in a file and the perl interpreter will > ignore everything below that line. This is very handy when testing my > program. Does python have something similar? > > Thanks, > Geoffrey I wished from something like that. What you can do at the moment, is to comment or triple quote the code you don't want to run. Michele Simionato
- Follow-Ups:
- Python end of file marker similar to perl's __END__
- From: Stargaming
- Python end of file marker similar to perl's __END__
- References:
- Python end of file marker similar to perl's __END__
- From: beginner
- Python end of file marker similar to perl's __END__
- Prev by Date: How does xmlrpc work ?
- Next by Date: Any way to monitor windows network connection?
- Previous by thread: Python end of file marker similar to perl's __END__
- Next by thread: Python end of file marker similar to perl's __END__
- Index(es):