string.py

Ivan Van Laningham ivanlan at callware.com
Fri Feb 18 12:02:30 EST 2000


Hi All--

Moshe Zadka wrote:
> 

[snip]

> I think Gerrit is on to something. How about....(drum roll)...int methods?
> 
> I mean, we've broken the barrier with string methods, so there's no
> reason not to allow:
> 
> >>> a = 5.radix(2)
> >>> print `a`
> "101"
> >>>
> 
> I see there might be parser problems, but maybe (5).radix? Python seems
> willing to check for it:
> 
> >>> a = (5).radix(2)
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> AttributeError: 'int' object has no attribute 'radix'
> 
> totally-out-of-my-head-ly y'rs, Z.
>

Nope.  I like it.  Why not?

<thin-edge-of-the-wedge>-ly y'rs,
Ivan
----------------------------------------------
Ivan Van Laningham
Callware Technologies, Inc.
ivanlan at callware.com
http://www.pauahtun.org 
http://www.foretec.com/python/workshops/1998-11/proceedings.html
Army Signal Corps:  Cu Chi, Class of '70
Author:  Teach Yourself Python in 24 Hours




More information about the Python-list mailing list