What's this vText() annotation mean?

Arnaud Delobelle arnodel at googlemail.com
Tue Feb 2 20:00:21 CET 2010


tinnews at isbd.co.uk writes:

> What does this vText() annotation mean in a returned list:-
>
>     [['Apr 19', vText(u'PAYE'), ''], 

It means your list contains an instance of a class whose __repr__()
method returns "vText(u'PAYE')".  If it follows common practice, the
class is probably named "vText".  You are likely to be importing and
using a module that defines a class called "vText".  I don't know such a
module, I don't think it's in the standard library so it would be useful
if you gave more details about the context.

A quick google for "vtext python" yields something about an iCalendar
package for python.  Is it what you are using?

-- 
Arnaud



More information about the Python-list mailing list