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: zyzhu2000 at gmail.com (beginner)
- Subject: Python end of file marker similar to perl's __END__
- Date: Tue, 31 Jul 2007 20:53:11 -0700
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
- Follow-Ups:
- Python end of file marker similar to perl's __END__
- From: "Martin v. Löwis"
- Python end of file marker similar to perl's __END__
- From: Michele Simionato
- Python end of file marker similar to perl's __END__
- From: Ben Finney
- Python end of file marker similar to perl's __END__
- From: Magnus Lycka
- 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: removing redundant elements in a dictionary
- Next by Date: split a string of space separated substrings - elegant solution?
- Previous by thread: removing redundant elements in a dictionary
- Next by thread: Python end of file marker similar to perl's __END__
- Index(es):