Éric Araujo added the comment:

> If you only had the latter exception all you would know is Python
> doesn't consider datetime a package but you wouldn't know why that is
Well, I’d be satisfied with that.  Looking at the doc or importing just 
datetime would let me know it’s a module, not a package.

> unless you knew the exact definition (the __path__ attribute exists).
To me that’s an implementation detail.  The real definition in my mental model 
is that modules are files and packages are directories.  __path__ is advanced 
stuff.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19257>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to