Re: improving the utility and adapter lookup APIs

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Wed, Nov 25, 2009 at 01:29:25PM -0500, Tres Seaver wrote:
> Matthew Wilkes wrote:
> > On 2009-11-25, at 1601, Benji York wrote:
> > 
> >> I'm not sure I like the following suggestion better than the above,
> >> but throwing it out there anyway:
> >>
> >> Multiadapter:
> >>
> >> IFoo((x,y))
> > 
> > I know it's probably a spurious use case, but what if I want to adapt  
> > a tuple?
> 
> I would agree that its completely spurious:  I can't imagine wanting
> that.  I prefer the regularity in Benji's spelling over satisfying a
> non-existing usecase.

I am, in fact, adapting tuples for what I consider to be a good reason
(pretty-printing arbitrary objects) in zodbbrowser.

http://bazaar.launchpad.net/~zodbbrowser-dev/zodbbrowser/trunk/annotate/head:/src/zodbbrowser/value.py

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3 consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFLDZFDkVdEXeem148RAm84AJ9/ga2LSMxSflqWvqlOQ5ZwW8m5WgCfW0Ht
SBi2m6zJQlFFF7lxUY9RuDs=
=8xc4
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.