[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  -> wont fix

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 call last):
  File "", line 1, in 
  File "/usr/local/fbcode/platform007/lib/python3.7/genericpath.py", line 6, in 

import os
  File "/usr/local/fbcode/platform007/lib/python3.7/os.py", line 57, in 
import posixpath as path
  File "/usr/local/fbcode/platform007/lib/python3.7/posixpath.py", line 130, in 

splitext.__doc__ = genericpath._splitext.__doc__
AttributeError: module 'genericpath' has no attribute '_splitext'

--
components: Library (Lib)
messages: 357947
nosy: brittanyrey
priority: normal
severity: normal
status: open
title: Import genericpath fails with python -S
type: crash
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com