Brett Cannon <br...@python.org> added the comment:

Detecting if you are in a package is as simple as ``'.' in __name__ or 
hasattr(mod, '__path__')`` or alternatively for the last guard, ``__name__ == 
__package__``.

As for the failure, I will have a look.

----------

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

Reply via email to