UserLinux chooses Python as "interpretive language" of choice

Steve Lamb grey at despair.dmiyu.org
Fri Dec 19 19:57:29 EST 2003


On 2003-12-20, John Roth <newsgroups at jhrothjr.com> wrote:
> a third is the ability to forget the empty parenthesis after
> a function/method call that doesn't require parameters.

class ThisIs:
    avariable = 'a'
    def amethod(self):
        return 'b'

thisis = ThisIs()
print thisis.avariable
print thisis.amethod()
import this
print "Read line 2."

-- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
       PGP Key: 8B6E99C5       | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------




More information about the Python-list mailing list