Skip to content

__all__ not defined on root package #406

@tebriel

Description

@tebriel

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions