Beginner question: Logs?

Terry Reedy tjreedy at udel.edu
Thu Jun 2 13:29:51 EDT 2005


"Peter Hansen" <peter at engcorp.com> wrote in message 
news:Q7mdnfJgTO82lgLfRVn-qA at powergate.ca...
> Elliot Temple wrote:
>> from math import *
>> log10(15625)
>
> It's always a good idea, especially when answering a beginner's
> question, to add the caution that this form ("from xxx import *") has
> certain dangers** associated with it, and is widely considered poor
> style, and should really only rarely be used.

Which is why I often do things like
>>> import math as m
>>> m.log...







More information about the Python-list mailing list