Sadly, Python can't represent -nan, even though llList2CSV can display it. Add a note to that effect.

This commit is contained in:
Sei Lisa 2015-09-04 05:46:18 +02:00
parent 15f1a07a72
commit aa74e6ed64

View file

@ -974,6 +974,8 @@ def llIntegerToBase64(x):
return b64encode(chr((x>>24)&255) + chr((x>>16)&255) + chr((x>>8)&255) + chr(x&255)).decode('utf8')
def llList2CSV(lst):
# INCOMPATIBILITY NOTE: In LSL, llList2CSV can return "-nan". Python can't.
# In Python there's no distinction between -nan and nan.
assert islist(lst)
ret = []
for elem in lst: