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

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top