[XML-SIG] Writing DOM-neutral code

Fred L. Drake, Jr. fdrake@acm.org
Wed, 5 Dec 2001 20:48:58 -0500


On Wed, 05 Dec 2001 16:53:08 -0500, Rich Salz wrote:
 > I am not ready to require python 2.2 yet.

Juergen Hermann writes:
 > The isinstance check does not require python 2.x (works with 1.5.2),
 > but also _supports_ python 2.2, i.e. is the best you can do.


  Ah, but my extension of it used dict as a synonym for type({}), and
that is 2.2-specific.  Your use of isinstance() is indeed portable to
older versions of Python.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation