Ho visto (e usato una volta) questo idioma alcune volte in Python:
# At the end of a module:
if __name__ == '__main__':
main() # or whatever your entry point looks like, this line isn't important
else:
sys.modules[__name__] = SomeClas...
posta
13.11.2014 - 20:56