[Python-3000] Removing __var
jimjjewett at gmail.com
Mon Oct 2 00:51:38 CEST 2006
On 10/1/06, Guido van Rossum <guido at python.org> wrote:
> I'm on the fence about dropping __var (some people back in the days
> *begged* for it, and it had nothing to do with super; I wonder what
> they think now).
Until Christian Tanzer's post, the only good use case I had seen was
extreme backwards compatibility for subclasses -- no additional names
would be used. Are you suggesting
(1) another way to get a private namespace,
or (2) the _name convention is sufficient
Either seems OK to me, but I do note that (2) doesn't work for
Christian's case. He isn't just warning people to be careful -- he
fully expects the child class to want the same private name.
More information about the Python-3000