Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Open
Description
Bug report
Module pyclbr cannot browse a file named__main__
because it cannot get the spec.
>>>fromimportlibimportutil>>>util._find_spec_from_path('__init__')ModuleSpec(name='__init__',loader=<_frozen_importlib_external.SourceFileLoaderobjectat0x000001C6C2462DB0>,origin='C:\\Programs\\Python313\\Lib\\idlelib\\__init__.py')>>>util._find_spec_from_path('__main__')Traceback (mostrecentcalllast):File"<pyshell#14>",line1,in<module>util._find_spec_from_path('__main__')File"<frozen importlib.util>",line67,in_find_spec_from_pathValueError:__main__.__spec__isNone
This is 3.13.0a5 but same in prior versions.