[issue38990] Import genericpath fails with python -S

2019-12-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38990] Import genericpath fails with python -S

2019-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue31802. I skipped genericpath because I did not expect that somebody can import it directly (unlike to posixpath, ntpath and macpath). genericpath is an internal module, it is not even documented. -- nosy: +serhiy.storchaka __

[issue38990] Import genericpath fails with python -S

2019-12-09 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the report, Brittany, but I'm closing as "won't fix" as the only way to make this happen is to import genericpath directly which one shouldn't do (it's undocumented on purpose); always get a hold of this module via 'os'. -- resolution: -> w

[issue38990] Import genericpath fails with python -S

2019-12-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue38990] Import genericpath fails with python -S

2019-12-06 Thread Brittany Reynoso
New submission from Brittany Reynoso : When running python -S, attempting to run "import genericpath" fails with an attribute error due to a circular dependency between posixpath and genericpath that's triggered when "import os" is called from within genericpath.py. Traceback (most recent ca