Skip to content

Instantly share code, notes, and snippets.

@karanparikh
karanparikh / gist:1059713
Created Jul 2, 2011
Python simple import
View gist:1059713
# import a specific module
from vehicle.four_wheels import car
my_car = car.Car(transmission="automatic")
# import a specific class within a module
from vehicle.four_wheels.car import Car
my_car = Car(transmission="automatic")
# import everything from a module into the current namespace
from vehicle.four_wheels import *