Another try at Python's selfishness
Steven D'Aprano
steve at REMOVETHIScyber.com.au
Fri Feb 3 07:29:56 EST 2006
On Fri, 03 Feb 2006 04:14:33 -0800, n.estner wrote:
[snip]
>> Since namespaces are critical to Python, your test code is a problem that
>> just cannot happen in Python. It is a non-issue. Python will not get
>> confused between the two definitions of test.
>
> I've been answering to Donn Cave's suggestion. Read it, and you will
> understand what I mean.
Your reply came through as I was writing my reply, and it does help
explain your position better.
>> As near as I can tell, your original complaint might be solved simply: it
>> seems to me that you are concerned about that extraneous "self" parameter
>> for methods that don't need it:
>
> No, I wasn't talking about functions that don't use the "self"
> parameter. I rarely ever have such functions. I just tried to make the
> example as short as possible.
I understand that now :-)
--
Steven.
More information about the Python-list
mailing list