[Python-3000] Special methods and interface-based type system
Bill Janssen
janssen at parc.com
Thu Nov 23 19:39:24 CET 2006
> Bill Janssen wrote:
>
> >> Ow, that's the first time you describe this particular wrinkle.
> >
> > Yep. I hesitated to bring it up, but if there's a need for separate
> > namespaces for method names, why not do it right?
>
> what makes you so sure that Python's current design isn't "right" ?
Well, "right" is a highly subjective term, and I think it's a bit
foolish to say that a language as widely used, and widely-useful, as
Python, isn't "right". But in Py3K, we're talking about what could be
improved, and there are *facets* of Python which could better support
its use. I think method namespaces are already OK; the question is
whether to move these specially-named (for whatever reason) methods to
a real namespace (a dict somewhere), rather than using this
name-mangling kludge to introduce one. If they're special methods for
the VM, as Ivan implied, let's put them in "PythonVM". If they're
what operations and built-in functions call, let's use the "operation"
namespace suggested by Calvin Speakman.
Bill
More information about the Python-3000
mailing list