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.
Created on 2011年07月20日 23:34 by ncoghlan, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg140770 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2011年07月20日 23:34 | |
Problems noted by PJE on import-sig: ==================================== For example, PathFinder's find_module treats an empty path the same as sys.path, and will also fail if for some reason the bool() of a PEP 302 finder or loader object is False. Also, module_for_loader() will create a new module object, if you have a False module subclass in sys.modules. ... These distinctions could be more problematic than they appear, as it's possible to inadvertently make your loader or your module subclass capable of being False (for example, if you subclassed a sequence type or implemented a __len__), and this could lead to some very subtle bugs, albeit very rare ones as well. ;-) =================================== The import test cases should include some examples of such pathological objects, with importlib then updated appropriately. |
|||
| msg158584 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年04月18日 01:42 | |
New changeset c1399cf7bd6a by Brett Cannon in branch 'default': Issue #12599: Be more strict in accepting None vs. a false-like object http://hg.python.org/cpython/rev/c1399cf7bd6a |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:19 | admin | set | github: 56808 |
| 2012年04月18日 01:43:15 | brett.cannon | set | status: open -> closed resolution: fixed stage: test needed -> resolved |
| 2012年04月18日 01:42:16 | python-dev | set | nosy:
+ python-dev messages: + msg158584 |
| 2012年04月18日 00:16:29 | eric.snow | set | nosy:
+ eric.snow |
| 2012年04月17日 23:20:08 | brett.cannon | set | keywords:
+ easy priority: normal -> low components: + Library (Lib) versions: - Python 3.2 |
| 2011年07月22日 21:18:36 | eric.araujo | set | nosy:
+ eric.araujo |
| 2011年07月22日 17:55:37 | petri.lehtinen | set | nosy:
+ petri.lehtinen |
| 2011年07月22日 17:33:16 | daniel.urban | set | nosy:
+ daniel.urban |
| 2011年07月20日 23:34:26 | ncoghlan | create | |