On Thu, Jan 13, 2005 at 08:54:33PM -0500, Raymond Hettinger wrote: | > Since __conform__ and __adapt__ | > would sprout two new arguments, it would make those writing adapters | > think a bit more about the kind of adapter that they are providing. | | Using optional arguments may not be the most elegant or extensible | approach. Perhaps a registry table or adapter attributes would fare | better.
I'm not sure how either of these would work since the adapt() function could return `self`. Adapter attributes wouldn't work in that case (or would they?), and since adapters could be given dynamically by __adapt__ or __conform__ a registry isn't all that appropriate. Perhaps we could just pass around a single **kwargs? Best, Clark _______________________________________________ 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