[issue26809] `string` exposes ChainMap from `collections`
SilentGhost
report at bugs.python.org
Wed Apr 20 07:48:58 EDT 2016
SilentGhost added the comment:
I wouldn't say it matter, "from configparser import _ChainMap" works too, but that's just how imports work in Python. There is not reason to do what you've done on purpose - ChainMap is undocumented and is clearly just a detail of implementation.
The fact that ChainMap pollutes namespace when doing star import ("from string import *"), however, is unfortunate. I believe there was an issue around that was supposed to add missing __all__, but I'm not able to find that issue atm.
----------
nosy: +SilentGhost, georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26809>
_______________________________________
More information about the Python-bugs-list
mailing list