FAQ

On Fri, 21 Nov 2003 09:56:07 -0500, campbell95 wrote:

I've been hacking visual basic for several years and understand the basic
concepts of OOP. That said, I'm stumped here with the Python Class.
[...]
def getSomething(self):
return self.something
[...]
x.getSomething
<bound method Test.getSomething of <__main__.Test instance at 0x00C01940>>
you need to actually call the method: x.getSomething()

-Mark

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 7 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedNov 21, '03 at 2:56p
activeNov 21, '03 at 8:25p
posts7
users7
websitepython.org

People

Translate

site design / logo © 2022 Grokbase