Re: [xml] python hash code suggestions for libxslt types



On Tue, Sep 19, 2006 at 02:21:29AM +0100, Nic James Ferrier wrote:
I find I want to store stylesheets and transformation-contexts in a
python hash table (for asynchronous retrieval).

Neither stylesheet not transformCtxt has a hash function
implementation.

It's difficult to think of what to return for a hash code.

Can anyone make a suggestion?

  The address of the underlying C pointer to the object ?

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]