homepage

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 gvanrossum
Recipients
Date 2003年01月14日.15:02:56
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
There are too many different C-level APIs for importing
a module.
Many of them have the nasty property that they can try
to do a relative import in the context of the nearest
Python stack frame, where that is not what the C code
intended.
This needs to be cleaned up.
Example use case: time.strptime() is now a C wrapper
that imports the _strptime module; but if you follow
the path it takes to import, it's quite an amazing
journey. It should cut all of that short by looking in
sys.modules['_strptime'] first. (But what about
restricted execution? Well _strptime.py ought to be safe.)
History
Date User Action Args
2008年01月20日 09:55:54adminlinkissue667770 messages
2008年01月20日 09:55:54admincreate

AltStyle によって変換されたページ (->オリジナル) /