[Tutor] Attribute Error
Michael P. Reilly
arcege@speakeasy.net
Tue, 19 Jun 2001 07:00:02 -0400 (EDT)
Remco Gerlich wrote
>
> On 0, fasal.waseem@cis.co.uk wrote:
> > is abspath an attribute of 1.5, if not is there some equivalent of it.
>
> I think you're talking about os.path.abspath().
I took this a completely different way. I was thinking of 1.5 as
a float, not a release number.
For a floating point number, you are probably looking for the abs()
function. It is a builtin, so you can just use it directly:
$ python -c 'print abs(-1.5), abs(1.5)'
1.5 1.5
But with this illness, I could have easily gotten mistaken. :)
-Arcege
--
+----------------------------------+-----------------------------------+
| Michael P. Reilly | arcege@speakeasy.net |