Re: [Tutor] What's the correct way to define/access methods of a member variable in a class pointing to an object?

2016-09-03 Thread Sharad Singla
@Steven, @Khalil, @Alan Thanks for the inputs/explanations. Appreciate it! Regards Sharad ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] What's the correct way to define/access methods of a member variable in a class pointing to an object?

2016-09-03 Thread Sharad Singla
Hi Pythonistas What's the correct way to define/access methods of a member variable in a class pointing to an object? For example, I have a class Foo that has a method foo_method: class Foo: def foo_method(self): return 'bar' Now, in another class Bar, I'd like to store an object to