Only search projects.blender.org
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)
Date
: 2011-04-04 01:12
Sender
:
Campbell Barton
fixed r35983.
Attached Files:
Name
Date
Download
python_help.patch
2011-04-03 21:58
Download
Changes:
Field
Old Value
Date
By
status_id
Open
2011-04-04 01:12
campbellbarton
close_date
None
2011-04-04 01:12
campbellbarton
Status
Ready
2011-04-04 01:12
campbellbarton
assigned_to
nazgul
2011-04-03 21:58
nazgul
Status
New
2011-04-03 21:58
nazgul
File Added
15718: python_help.patch
2011-04-03 21:58
nazgul
assigned_to
none
2011-04-03 21:38
nazgul