This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients georg.brandl, ncoghlan
Date 2008-01-20.20:38:30
SpamBayes Score 0.014932406
Marked as misclassified No
Message-id <1200861512.44.0.0369812857678.issue1877@psf.upfronthosting.co.za>
In-reply-to
Content
In what sense is this being flagged as easy? All the runpy code knows at
this point is that it asked the import system for the __main__ module's
code object and didn't get one. __main__ always exists, so the module is
definitely able to be found - working out after the fact why the code
object can't be provided isn't the simplest thing in the world. For
example, "./python -m sys" triggers a similar error message.

Or are you merely suggesting the addition of something like "(e.g.
directory or zipfile does not contain __main__.py)" to the current error
message when the requested module is "__main__"?
History
Date User Action Args
2008-01-20 20:38:32ncoghlansetspambayes_score: 0.0149324 -> 0.014932406
recipients: + ncoghlan, georg.brandl
2008-01-20 20:38:32ncoghlansetspambayes_score: 0.0149324 -> 0.0149324
messageid: <1200861512.44.0.0369812857678.issue1877@psf.upfronthosting.co.za>
2008-01-20 20:38:31ncoghlanlinkissue1877 messages
2008-01-20 20:38:30ncoghlancreate