kirby urner wrote:
> On 7/21/06, Andre Roberge <[EMAIL PROTECTED]> wrote:
>
>> The "me" approach is very anthropomorphic and may not work well in all
>> languages. Mind you, the same is true for "self".
>>
>
> Yes, deliberately anthropomorphic, put less about turning things into
> people than people into things, as a skill associated with modeling
> ("I am hydroelectric dam" "I am an airplane" -- what are my behaviors
> and states?).
>
What about (and this is just a random half-thought, apologies if it
comes to nothing) using the traditional scope-ish keyword 'my' for
increased readability?
class Human:
def __init__(my, name):
my.name = name
def __repr__(my):
return 'My name is %s' % my.name
Just a thought...
- d
_______________________________________________
Edu-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/edu-sig