Incompatibility.py

Mark Hammond MHammond at skippinet.com.au
Mon Jul 26 20:36:37 EDT 1999


Colin J. Williams wrote in message <379C8BB3.12D50F27 at connection.com>...

>IDLE returns:                        The name is: Incompatibility

Not for IDLE 0.5 it doesnt.  Are you sure you are not using "Import Script".
IDLE definately does this, as Python uses the "if __name__=='__main__':"
idiom extensively - and IDLE would be useless for running scripts if it did
as you describe.

The behaviour you describe sounds like you are simply confusing "Run Script"
with "Import Script".

Mark.







More information about the Python-list mailing list