Graham Hughes <graham / ccs.ucsb.edu> writes: > A common Python idiom is to have a file like so: > if __name__ == "__main__": main () >... > Is there an idiomatic way to do this? A common Ruby idiom is: if __FILE__ == $0 # stuff... end or main if __FILE__ == $0 Regards Dave