Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question on your code #42

Open
luciaL opened this issue Mar 24, 2020 · 0 comments
Open

question on your code #42

luciaL opened this issue Mar 24, 2020 · 0 comments

Comments

@luciaL
Copy link

luciaL commented Mar 24, 2020

Hello!
There is one function that I don't understand in /mean_teacher/utils.py
def export(fn): mod = sys.modules[fn.__module__] if hasattr(mod, '__all__'): mod.__all__.append(fn.__name__) else: mod.__all__ = [fn.__name__] return fn

Look forward for your reply, thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant