On Wed, Aug 31, 2011 at 10:12 AM, Prasad, Ramit
<ramit.pra...@jpmorgan.com> wrote:
>>def double(obj): return 2*obj.value
>>
>>class C:
>>     def __init__(self, val):
>>         self.value = val
>>
>>c = C(3)
>>C.double = double
>>c.doub = double
>># not c.double as that would mask access to C.double in c.double() below
>>print(double(c), C.double(c), c.double(), c.doub(c))
>
> Sorry if I get some of the following terminology wrong, I get a bit confused 
> on Python terms. I hope the following is still coherent. (Is there a 
> dictionary of Python terminology?)

The documentation has a glossary:
http://docs.python.org/glossary.html
It's not entirely comprehensive though.

Cheers,
Chris
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to