List of libraries used in import in scripts

How can I find out what library/namespace I need to import in order for a function to work in a script?

For example, I am trying to use ‘trim’ on a variable in a project script and it gives me an error ‘trim’ is not defined.

I need to know how to find the proper namespace given a function.

Python doesn’t have trim().
It does have .strip(), .lstrip(), and .rstrip() methods for strings. The online documentation for Jython is the best place to start. Then Google. :slight_smile:

1 Like

[quote=“pturmel”]Python doesn’t have trim().
It does have .strip(), .lstrip(), and .rstrip() methods for strings. The online documentation for Jython is the best place to start. Then Google. :slight_smile:[/quote]

Thank you, I misunderstood, I thought all expression functions were also available in scripting. Thanks for pointing me in the right direction, very helpful.