[Python-3000] Discussions with no PEPs

Barry Warsaw barry at python.org
Tue Mar 13 15:16:22 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mar 13, 2007, at 10:12 AM, Nick Coghlan wrote:

> Generics can live quite happily inside modules and as methods on  
> objects.
>
> The important aspect is the ability to tell the generic function  
> "here's how to frobnicate a doodad", even though the basic  
> frobnicator knows nothing about doodads, and doodads know nothing  
> about frobnicating. That machinery can be designed to work for any  
> callable.

Are generics then just a way of doing adaptation on a per-function  
basis rather than a per-object basis?

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQCVAwUBRfayNnEjvBPtnXfVAQKK1QP+MdlrrA/JSXJb4z81f1LHjrymHrtrjip6
+1dmxmj2MQanglqMyoDP8NVplBkX7UH0dWounk2qLl8sxxWJbeugl1U5mCIfH1or
zvzkEepZ587bCT0lmc11JpWlwcZG55ehaczo2l5gtLtYBDcAM4g7OJvQbbOWbNfQ
PWrlILqUTwQ=
=36V0
-----END PGP SIGNATURE-----


More information about the Python-3000 mailing list