Is x.f() <==>MyClass.f(x) a kind of algebraic structure?

P

Paul Boddie

steve said:
I thought that when read Guido van Rossum' Python tutorial.What can we
think that?

That x.f() is equivalent to MyClass.f(x)? (Consider restating questions
in the body of messages to maintain context, by the way.)

Why not try it out?
.... def f(self):
.... print "I am", self
....I am <__main__.MyClass instance at 0x2a955d5b00>

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,118
Latest member
LatishaWhy
Top