Changes between Initial Version and Version 1 of Ticket #30479, comment 3


Ignore:
Timestamp:
05/17/2019 09:57:34 AM (2 years ago)
Author:
Keryn Knight
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30479, comment 3

    initial v1  
    1111
    1212But `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
     14Digging 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]
Back to Top