Re: python/libxml2dom questions

2006-07-01 Thread Barry Kelly
"bruce" <[EMAIL PROTECTED]> wrote: > also, how can i determine what methods are available for a libxml2dom > object? Have you tried dir(object)? It works great on the command-line reply-eval-print loop. -- Barry -- http://barrkel.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python

Re: size of an array..

2006-07-01 Thread Barry Kelly
"bruce" <[EMAIL PROTECTED]> wrote: > from the "for label in d.xpath", i assume that "d.xpath" is returning > multiple strings/objects/etc... and that label is assigned to the next > "element during the loop. > > is there a way to determine the number of elements in "l", or the number of > iterati

Re: __getattribute__ doesn't work on 'type' type for '__class__'

2006-06-20 Thread Barry Kelly
Barry Kelly <[EMAIL PROTECTED]> wrote: > From "pydoc __getattribute__": > > ---8<--- > Help on method-wrapper object: > > __getattribute__ = class method-wrapper(object) > | Methods defined here: > | > | __call__(...) > | x.__call

__getattribute__ doesn't work on 'type' type for '__class__'

2006-06-20 Thread Barry Kelly
I'm running this version of Python: Python 2.4.3 (#1, May 18 2006, 07:40:45) [GCC 3.3.3 (cygwin special)] on cygwin I read in the documentation that these two expressions are interchangeable: x.__getattribute__('name') <==> x.name >From "pydoc __getattribute__": ---8<--- Help on method-