Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#26757] Python console: help() doesn't work anymore

Date:
2011-04-03 19:09
Priority:
3
State:
Closed
Submitted by:
Lionel Fuentes (funto)
Assigned to:
Campbell Barton (campbellbarton)
Category:
None
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Python console: help() doesn't work anymore
Detailed description
Open a Python console inside Blender, type "help()"

>>> help()
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
TypeError: _help() takes exactly 1 argument (0 given)

It doesn't work with given objects as well:

>>> help(bpy)
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "/home/funto/Bureau/blender-2.57-RC1a-r35899-linux-glibc27-i686/2.56/scripts/modules/console_python.py", line 45, in _help
help(value)
NameError: global name 'help' is not defined

This worked with 2.56a though.

Followup

Message
  • Date: 2011-04-03 21:58
  • Sender: Sergey Sharybin
  • It's not actually build-related issue as i thought initially. Sounds like things became broken when scripts loading was optimized. We need our python departament to review.

    Campbell, this happens because help() gets defined in sethelper() function from site.py. Am i right we don't load this module now? If so, you could find patch which makes out help replacement works in the same way as help from site.py in attachments (i've replaced value argument with args list and keyword list and hall pydoc.help instead of help as it happens in site.py)
 

Attached Files:

Name Date Download
python_help.patch 2011-04-03 21:58 Download

Changes:

Field Old Value Date By
status_idOpen2011-04-04 01:12campbellbarton
close_dateNone2011-04-04 01:12campbellbarton
StatusReady2011-04-04 01:12campbellbarton
assigned_tonazgul2011-04-03 21:58nazgul
StatusNew2011-04-03 21:58nazgul
File Added15718: python_help.patch2011-04-03 21:58nazgul
assigned_tonone2011-04-03 21:38nazgul