Bug report #18174

Help oneliner in python console is not showing all info on Windows environment

Added by Rosa Aguilar about 6 years ago. Updated about 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:PyQGIS Console
Affected QGIS version:3.0.0 Regression?:No
Operating System:windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26065

Description

the command help(iface.addVectorLayer) return an incomplete text when is used in the python console in Windows.

History

#1 Updated by Richard Duivenvoorde about 6 years ago

  • Category changed from Unknown to PyQGIS Console
  • Subject changed from online in python console is not working on Windows environment to Help oneliner in python console is not showing all info on Windows environment

Confirmed: To be even more clear, on Linux you get more information about every method. EG:

help(iface.addVectorLayer)
Help on built-in function addVectorLayer:

addVectorLayer(...) method of qgis._gui.QgisInterface instance
    addVectorLayer(self, vectorLayerPath: str, baseName: str, providerKey: str) -> QgsVectorLayer
    Add a vector layer

While on Windows you just get:

help(iface.addVectorLayer)
Help on built-in function addVectorLayer:

addVectorLayer(...) method of qgis._gui.QgisInterface instance
    Add a vector layer

It looks like it is missing the interface line...

#2 Updated by Giovanni Manghi about 6 years ago

  • Affected QGIS version changed from master to 3.0.0

Also available in: Atom PDF