Message46972
Logged In: YES
user_id=1038590
New version (7) attached which does the right thing for
"python -tt -m regrtest -u network". (I really like that
test case btw - very concise)
This one sets argv[0] correctly, but was initially a little
ungraceful in some failure modes (such as "python -m
parser"). I had to add a new private API function to
import.h (_PyImport_IsScript) to clean that up.
Examples of the error handling in this version:
[...@localhost src]$ ./python -m foo
./python: module foo not found
[...@localhost src]$ ./python -m sys
./python: module sys has no associated file
[...@localhost src]$ ./python -m parser
./python: module parser not usable as script
(/home/.../dev/python/dist/src/build/lib.linux-i686-2.4/parser.so)
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 15:39:57 | admin | link | issue1035498 messages |
| 2007-08-23 15:39:57 | admin | create | |
|