Forum: Poser Python Scripting


Subject: Useful Code Snippets

structure opened this issue on Jun 27, 2019 ยท 94 posts


adp001 posted Fri, 05 November 2021 at 6:37 PM

structure posted at 4:38 AM Thu, 4 November 2021 - #4429892

nice addition,  this could be used in conjunction with contextlib.suppress
which captures all kinds of errors and ignores them.


"contextlib.suppress" is not present in Python 2.7. And 2.7 is currently much more important than Python 3, because Poser 12 is only used by a few people.

Code that runs only under Python 3 should be explicitly marked. Otherwise beginners look for supposed errors where there are none.