I am using CPython and I saw in one example file with a star symbol.
Could you give an explanation what in this context the *
symbol means?
Here the pointsets
is a numpy array
that comes from pybind11
, because it is an output of C++ code.
Does the Point(*point)
has something to do with the pointers in C++?
polylines = []
for points in pointsets:
points = [Point(*point) for point in points]
polyline = Polyline(points)
polylines.append(polyline)