mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Sadly, Python can't represent -nan, even though llList2CSV can display it. Add a note to that effect.
This commit is contained in:
parent
15f1a07a72
commit
aa74e6ed64
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue