A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/344808.html below:

Simplifying imports?

Simplifying imports? Simplifying imports?chapolim-colorado at bol.com.br chapolim-colorado at bol.com.br
Mon Sep 12 23:09:31 EDT 2005
I like to keep my classes each in a separate file with the same name of
the class. The problem with that is that I end up with multiple imports
in the beginning of each file, like this:

from foo.Bar import Bar
from foo.Blah import Blah
from foo.Zzz import Zzz

What I'd like to do would be to replace it all by a single line:

from foo.* import *

Of course, that doesn't work, but is there a way to do something like
that?

Chapolim


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4