built-in function- module name clash
Tim Golden
tim.golden at viacom-outdoor.co.uk
Mon Sep 6 06:06:15 EDT 2004
| Hi,
|
| I've a python script using somecalls to the abs() built-in function.
|
| Now, I have to import a module named 'abs' too...
Surprising to find a module with the same name as
a built-in function! Simplest thing is to rename
the module on import:
import abs as absmodule
...
absmodule.blah (x, y)
if abs (x-y) == z:
blah
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-list
mailing list