Changes between Initial Version and Version 1 of Ticket #30479, comment 3
- Timestamp:
- May 17, 2019, 9:57:34 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30479, comment 3
initial v1 11 11 12 12 But `getattr(module, "__spec__", None) is None` is `True` so it continues onwards. I thought I managed to get one of them to have a `__spec__` attr but no `has_location`, but I can't seem to get that again (stepping around with pdb) 13 14 Digging into wtf `__spec__` is None: [https://docs.python.org/3/reference/import.html#__spec__ Here's the py3 docs on it], which helpfully mentions that [https://docs.python.org/3/reference/import.html#main-spec The one exception is __main__, where __spec__ is set to None in some cases]