[Python-Dev] PEP 332 revival in coordination with pep 349? [ Was:Re: release plan for 2.5 ?]
Nick Coghlan
ncoghlan at gmail.com
Tue Feb 14 12:53:04 CET 2006
Guido van Rossum wrote:
> In general I've come to appreciate that there are two ways of
> converting an object of type A to an object of type B: ask an A
> instance to convert itself to a B, or ask the type B to create a new
> instance from an A.
And the difference between the two isn't even always that clear cut. Sometimes
you'll ask type B to create a new instance from an A, and then while you're
not looking type B cheats and goes and asks the A instance to do it instead ;)
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-Dev
mailing list