How to use __len__ method rapper, Python 3.x

I'm parsing an \[code\]XML\[/code\] file, in which i use elements,currently my element name is \[code\]__word__\[/code\]In the elements I have an attribute called \[code\]__attrs__\[/code\],When I debug I can see this \[code\]__attrs__\[/code\] has a method wrapper called \[code\]__len__\[/code\]I would like to use it in order to know the length of \[code\]_attrs\[/code\] but i guess i dont know how.i tried :\[code\]word._attrs.__len__word._attrs.len()len(word._attrs)\[/code\]I guess you know it didn't work :)Thanks !
 
Back
Top