SolidCode / SolidPython

A python frontend for solid modelling that compiles to OpenSCAD
1.11k stars 173 forks source link

prepend argument variables with _ #77

Open conorpp opened 7 years ago

conorpp commented 7 years ago

This prevents collisions with python keywords which would cause a syntax error when executing it later. I ran into this when I loaded a openscad function containing an argument "or".

bil-bas commented 6 years ago

It is usual, in Python, to append to avoid name collisions. Prepended indicates that something is "protected".