What's this vText() annotation mean?

T

tinnews

What does this vText() annotation mean in a returned list:-

[['Apr 19', vText(u'PAYE'), ''], ['Mar 31', vText(u'VAT'), ''], ['May 19', vText(u'Year end PAYE'), '']]

I *guess* it's some sort of indication of non-constant text, I need a
way to make it constant (well, to get a constant copy of it) because a
function I'm passing it to is complaining about a type mismatch:-

TypeError: in method 'Fl_Input__value', argument 2 of type 'char const *'
 
A

Arnaud Delobelle

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top