code review

Terry Reedy tjreedy at udel.edu
Fri Jun 29 23:00:30 EDT 2012


On 6/29/2012 4:49 PM, Littlefield, Tyler wrote:
> I am no expert but from what have picked up so far from x import is
> frowned upon in most cases

from x import *
# frowned on by many as reader will not necessarily know what that 
imports, conflicts are possible, and if you import * twice, reader may 
really not know what came from where

from x import y,x  # fine, common, used in stdlib
import x as y  # ditto
from x import y as z  # ditto
-- 
Terry Jan Reedy






More information about the Python-list mailing list