[Python-3000] Type Coersion Syntax

Thomas Wouters thomas at python.org
Fri Jul 7 09:40:02 CEST 2006


On 7/6/06, Brett Cannon <brett at python.org> wrote:
>
>
>  Plus, what is wrong with passing on object to a type/class' constructor:
> ``str(42)``?  Not redundant and it's still clean, obvious, and does not
> require new syntax.
>

And you can already have multiple 'constructor-from-data' methods that way,
like dict already has: dict.fromkeys().

-- 
Thomas Wouters <thomas at python.org>

Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20060707/62585887/attachment.htm 


More information about the Python-3000 mailing list