On 2007-06-08, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, Neil Cerutti wrote: > >> new = file("new.dat", "w") >> if not new: >> print "Error. Could not open file new.dat for writing." >> raw_input("Press Return To Exit.") >> sys.exit(1) > > Hey, Python is not C. File objects should *always* be "true". > An error is handled via exceptions.
Thanks. Update in progress. -- Neil Cerutti The doctors X-rayed my head and found nothing. --Dizzy Dean -- http://mail.python.org/mailman/listinfo/python-list