some scripting bugs

edited December 2016 in Python scripting

Hi Matthias,

I observered the following issues/bugs while scripting with python:

1) The namespace is not cleared before running a script. That means that objects that have been used in a previous run or in another script are sill alive in the current run. This can lead to surprising results sometimes.
2) The infix operator on regions results in a crash, i.e.
a = pya.Region()
b = pya.Region()
a -=b
3) After some time the console window seems to ignore all print() calls. It can be reactivated by closing and opening the IDE.

Anyway, great program!

Regards, Christian

Comments

  • edited December 2016

    Hi Christian,

    thanks for these observations.

    1. There is no way to clear a namespace. At least not as far as I know. You're working inside a life interpreter of a dynamic language. With all side effects.
    2. That's a known issue. For a workaround see here
    3. Can you give some more details? Which OS (Windows/Linux)? Does that happen with a simple loop of print's?

    Matthias

  • edited November -1

    Hi Matthias,

    regarding 3): this happens on windows. I will do some tests and report back.

    Christian

Sign In or Register to comment.