Extensions on Linux: import without underscore?

Kent Johnson kent37 at tds.net
Mon Jun 20 07:39:05 EDT 2005


Terry Hancock wrote:
> Okay, you may want a more elegant way to do this and other people
> have already responded to that point, but you do at least know you
> can just give it a new name:
> 
> import _bright
> bright = _bright

or more idiomatically and without adding _bright to the namespace:
import _bright as bright

Kent



More information about the Python-list mailing list