Hi, I don't know if this is a problem or intentionally planed, but because of namespace conflicts, we typically import the base package and not deep into it. For example:
import dateutil
dateutil.parser.parse('Fri Jun 30 12:00:56 EDT 2017')
However this appears to fail with the error:
AttributeError: 'module' object has no attribute 'parser'
The solution appears to be: from dateutil import parser and then call parser, I'm guessing this is because the __all__ in the root __init__.py doesn't exist thus not listing any packages. Is this intended behavior? Should I just use my above workaround?
Thanks!
Hi, I don't know if this is a problem or intentionally planed, but because of namespace conflicts, we typically import the base package and not deep into it. For example:
However this appears to fail with the error:
The solution appears to be:
from dateutil import parserand then call parser, I'm guessing this is because the__all__in the root__init__.pydoesn't exist thus not listing any packages. Is this intended behavior? Should I just use my above workaround?Thanks!