On Apr 9, 10:36 pm, Benjamin <[EMAIL PROTECTED]> wrote:
> On Apr 9, 5:33 pm, Jose <[EMAIL PROTECTED]> wrote:
>
> > I have a module named math.py in a package with some class
> > definitions.  I am trying to import the standard python math module
> > inside of math.py but It seems to be importing itself.  Is there any
> > way around this problem without renaming my math.py file?
>
> Not without some unpythonic magic. It's really not good style to name
> a module the same as a stdlib one. It'll also confuse people reading
> your code.

Yeah but I thought since math.py was in a package, it would be okay.
It's no big deal.  I'll just rename my module :(
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to