quantifiedcode / python-anti-patterns

An open collection of Python anti-patterns and worst practices.
https://quantifiedcode.github.io/python-anti-patterns
Other
1.71k stars 249 forks source link

Add missing "import whole module" solution #22

Closed LauritzThaulow closed 9 years ago

LauritzThaulow commented 9 years ago

Another common way to solve the

from math import *

antipattern is to change it to

import math

and then use

math.ceil(x)

This commit adds such a solution.

adewes commented 9 years ago

good point, thanks @LauritzThaulow !