Skip to content

Instantly share code, notes, and snippets.

@mitsuhiko
Created August 4, 2015 13:08
Show Gist options
  • Save mitsuhiko/0b6c7894ed0fe8aeed45 to your computer and use it in GitHub Desktop.
Save mitsuhiko/0b6c7894ed0fe8aeed45 to your computer and use it in GitHub Desktop.
from __future__ import unicode_literals
from .b import Foo
__all__ = ['Foo']
class Foo(object):
pass
Python 2.7.10 (default, Jun 10 2015, 19:42:47)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from a import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Item in ``from list'' not a string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment