-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nick Coghlan wrote: > Paul Moore wrote: >> 2009/2/2 Nick Coghlan <ncogh...@gmail.com>: >>> A trio of patches that: >>> 1. promoted simplegeneric from pkgutil to functools (with appropriate >>> documentation and tests) >>> 2. changed pkgutil to use functools.simplegeneric instead of its current >>> internal version >>> 3. updated pprint to be a generic function (and hence more easily >>> extensible via the ABC mechanism, while still keeping it's current >>> special cases as necessary) >>> >>> would certainly be an interesting thing to see (with patch 3 being the >>> poster child for why patch 1 is a good idea). >> I'll see what I can do. I can't promise much for (3) as I don't >> personally have a need for it, so my understanding of the use cases is >> limited at best. But (1) and (2) should be possible. >> >> Can I assign the patches to you (for review, at least)? > > Sure - I've had plenty to do with functools in the past, and will no > doubt have plenty to do with it in the future. > > Given that I believe Guido was one of the folks whose brain was hurt by > PJE's attempts to explain PEP 3124, I'll be bringing the discussion back > here before committing anything though :) > > (and don't worry too much about 3 - it will give me an opportunity to > road test the functools patch by using it to refactor pprint and check > the performance implications)
/me wonders about the performance-criticality of anything using 'pprint'. Or were you just planning to use it as a means to benchmark the 'simplegeneric' stuff? I would think something with a lot lower intrinsic overhead would be a better benchmark target. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJhu6I+gerLs4ltQ4RAvdcAJ4mFTcdfgG7ZVvdKXulIw+fWgLJxwCeOrTO 9rriK3+zyl4K63doUjbckF4= =++qD -----END PGP SIGNATURE----- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com