You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/serhiy-storchaka'closed_at=<Date2018-04-30.14:09:11.868>created_at=<Date2017-10-17.09:45:21.322>labels= ['3.7', 'type-bug', 'library']
title="'import posixpath' fails if 'os.path' has not be imported already."updated_at=<Date2018-04-30.14:09:11.867>user='https://github.com/markshannon'
$ python3.7 -S
>>> import posixpath
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "--/Lib/posixpath.py", line 13, in <module>
import os
File "--/Lib/os.py", line 92, in <module>
from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
ImportError: cannot import name 'curdir' from 'posixpath' (--/Lib/posixpath.py)
Whether this counts as a bug or not is debatable. It could be argued that you shouldn't be importing 'posixpath' directly, in which case it ought to be called '_posixpath', but I guess it is too late to be changing the name.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: