[reportlab-users] The extra bracket !!

Dinu Gherman gherman at darwin.in-berlin.de
Fri Jun 8 02:50:53 EDT 2007


David Frank:


> Is there someone who could tell me how I can get around this. Is there

> something in Python to add the missing curvy brackets (the root of the

> problem) or something in Reportlab to just ignore these curvy brackets

> and take the data as [3, 4, 5, 6, 7] instead of [(3, 4, 5, 6, 7)]?


You can do the following:

>>> aList = [1, 2, 3]
>>> newList = [tuple(aList)]
>>> newList
[(1, 2, 3)]

Regards,

Dinu



More information about the reportlab-users mailing list