Menu

#64 This code looks suspect in the x3d.py MFBool class

X3D4
open
None
2025-08-26
2025-08-26
No
Why are you removing brackets in the MFBool class' VRML() and JSON() methods? following the XML pattern is just wrong, AFAIAC.  See code snipped from x3d.py

def VRML(self):
""" Provide VRML value for this field type. """
return str(self.__value).upper().replace(',', '').replace('[', '').replace(']', '') def JSON(self):
""" Provide JSON value for this field type. """
return str(self.__value).lower().replace(',', '').replace('[', '').replace(']', '')

Discussion


Log in to post a comment.

MongoDB Logo MongoDB