pypcd icon indicating copy to clipboard operation
pypcd copied to clipboard

The zip function in python 3 returns a object

Open pmsmall opened this issue 6 years ago • 1 comments

In python 2, zip() returns a list, but a object in python 3. python 2:

211 dtype = np.dtype(zip(fieldnames, typenames))

python 3:

211 dtype = np.dtype(list(zip(fieldnames, typenames)))

pmsmall avatar Apr 26 '19 02:04 pmsmall

Many thanks, helps a lot with one of so many bugs!

yiliu-coding avatar Feb 08 '21 15:02 yiliu-coding