On Wed, 28 Dec 2011, SF Markus Elfring wrote:
I suspect that the problem is in delimiter join.
No. - The following statement for the concatenation of list elements has
worked as expected already.
result.append(delimiter.join(fields))
Perhaps not in the case where fields contains an integer?
In any case, the following code worked fine for me:
@script:python@
@@
fields = []
fields.append(24)
print fields
Do you see also that the print statement before this one does not get
executed in the test example because of the thrown exception?
Since you do not use places in your loop,
I see an use in the statement "for place in places:".
Yes, but inside the body of the loop you do not do anything with place.
So places can be any array.
I think you should be able to set places to any array when using python at
top level
and then run exactly the same code in both cases.
I assume that we need an alternative debugging approach here to resolve SmPL
API peculiarities.
If there is any problem, it would have to do with pycaml, ie the interface
between ocaml and python. That is not our code, and it has not been
maintained for maybe the past five years.
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)