Jim - 2014-04-27

So it seems like if 2 npp-python-scripts happen to use the same variables and function names, one script will over-write the others definitions.

We have the same problem when writing Ruby plugins for SketchUp - all plugins share the global environment. In Ruby we use modules as namespaces to help avoid method name conflicts.

This is probably more a fundamental Python question, but how can I "namespace" my variables and functions so as not to conflict with other npp-python-script plugins? I think maybe python classes can be used, although I don't need their inheritance if that would simplify things.

Thanks from a Ruby hobbyist and complete Python noob.