Question about Objects - repost with correct email account

Gerrit Holl gerrit at nl.linux.org
Fri Nov 21 10:07:04 EST 2003


bas68 wrote:
> >>>> x = Test("Microsoft Sucks")
> >>>> x.getSomething
> ><bound method Test.getSomething of <__main__.Test instance at 0x00C01940>>
> >>>> x.something
> >'Microsoft Sucks'

You aren't calling getSomething. Try: x.getSomething()

yours,
Gerrit.

-- 
109. If conspirators meet in the house of a tavern-keeper, and these
conspirators are not captured and delivered to the court, the
tavern-keeper shall be put to death.
          -- 1780 BC, Hammurabi, Code of Law
-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Kom in verzet tegen dit kabinet:
	http://www.sp.nl/





More information about the Python-list mailing list