Message5001

Author dhandy
Recipients dhandy, fwierzbicki, leosoto
Date 2009-08-06.19:26:07
SpamBayes Score 0.0022791275
Marked as misclassified No
Message-id <1249586767.75.0.396452679425.issue1418@psf.upfronthosting.co.za>
In-reply-to
Content
I doubt that too many applications relied on __name__ being set to the
name of the jar file. Besides, it is redundant.

I changed my __run__.py example program to these 3 lines:
import sys
print "sys.argv:", sys.argv
print "__name__:", __name__

The result:
sys.argv: ['jython.jar']
__name__: jython.jar

So if they need to get the name of the jar file being executed, they can
always get it out of sys.argv[0]
History
Date User Action Args
2009-08-06 19:26:07dhandysetmessageid: <1249586767.75.0.396452679425.issue1418@psf.upfronthosting.co.za>
2009-08-06 19:26:07dhandysetrecipients: + dhandy, fwierzbicki, leosoto
2009-08-06 19:26:07dhandylinkissue1418 messages
2009-08-06 19:26:07dhandycreate