Closed etjones closed 5 years ago
If we put this code in test.scad:
test.scad
module bad_arg(arg, or) { cube(1); }
then try to include it with this SolidPython code:
from solid import * use('test.scad') a = bad_arg( 1, 2) scad_render_to_file(a, 'test.py')
There should be a compilation error, since the OpenSCAD module is valid code, but or as an argument name is a syntax error in Python.
or
One SCAD source for this in the wild is: here Thanks to Phillip Anderson for pointing this out.
If we put this code in
test.scad
:then try to include it with this SolidPython code:
There should be a compilation error, since the OpenSCAD module is valid code, but
or
as an argument name is a syntax error in Python.One SCAD source for this in the wild is: here Thanks to Phillip Anderson for pointing this out.