Personal tools
You are here: Home Forum Other... (new forum, problems, etc.) Overload of help() function after loading SHAPER module

Overload of help() function after loading SHAPER module

Up to Other... (new forum, problems, etc.)

Overload of help() function after loading SHAPER module

Posted by Roberto Da Vià at July 01. 2021

Re: Overload of help() function after loading SHAPER module

Posted by Roberto Da Vià at July 01. 2021

Hi everybody,
I noted that the python help() function gets overloaded when the SHAPER module is activated and then it cannot be used to inspect other methods - functions, as it is normally used.

As a test, after executing salome, you can try in the python shell

>>> import numpy
>>> help(numpy.min)

and it works as it should. If you activate the SHAPER module and re-run the command you get

>>> help(numpy.min)

File "<input>", line 1, in <module>
TypeError: help() takes 0 positional arguments but 1 was given

If you try the help function without input arguments you get the following:

>>> help()
Available modules:
  salome.shaper.model : higher level access to features and data model
  BuildAPI            : Build plugin features allowing to build shapes
  ConfigAPI           : configuration management: preferences and XML properties
  ConstructionAPI     : Construction plugin for auxiliary features creation
  EventsAPI           : application events receiving and emitting manager
  ExchangeAPI         : Exchange plugin with import/export features
  FeaturesAPI         : Features plugin with general 3D features
  GeomAlgoAPI         : geometrical algorithms
  GeomAPI             : geometrical data structures
  GeomDataAPI         : specific geometrical data structures stored in the data model
  ModelAPI            : general low-level interface to access data model
  ModelHighAPI        : general high-level interface to access data model
  ParametersAPI       : Parameters plugin for parameters feature management
  PartSetAPI          : PartSet plugin for management Parts features
  SketchAPI           : Sketch plugin with all sketch features

Is it possible to avoid that?

Thank you,
Roberto Da Vià

Quick reply
URLs will be automatically hyperlinked. Basic HTML tags are OK.
Powered by Ploneboard
History
Activate by Roberto Da Vià on Jul 01, 2021 01:51 PM
Document Actions