A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-July/016332.html below:

[Python-Dev] Advice in stat.py

[Python-Dev] Advice in stat.py [Python-Dev] Advice in stat.pyBarry A. Warsaw barry@zope.com
Fri, 27 Jul 2001 13:12:54 -0400
>>>>> "GW" == Greg Ward <gward@python.net> writes:

    GW> My understanding was that it's generally considered Bad Form
    GW> to do this at module level, while doing it at function level
    GW> is tricky (or a performance hit? whatever...) because of
    GW> nested scopes.

Yes, but some modules are designed for from-import-* so they're less
evil.  types, stat, and Tkinter are the three most common ones for
me.  Usually though if I'm importing fewer than about 3 symbols, I'll
import then explicitly.

-Barry




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