Bug #86093 help() returns traceback related to readline
Submitted: 26 Apr 2017 17:50 Modified: 28 Apr 2017 5:05
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Shell ( Core Client ) Severity:S3 (Non-critical)
Version:1.0.9 OS:Any
Assigned to: CPU Architecture:Any

[26 Apr 2017 17:50] Daniël van Eeden
Description:
help() doesn't seem to work. 

This is on Fedora 25

How to repeat:
mysql-sql> \py
Switching to Python mode...
mysql-py> help
Type help() for interactive help, or help(object) for help about object.
mysql-py> help()

Welcome to Python 2.7!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/2.7/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help> Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site.py", line 450, in __call__
    return pydoc.help(*args, **kwds)
  File "/usr/lib64/python2.7/pydoc.py", line 1795, in __call__
    self.interact()
  File "/usr/lib64/python2.7/pydoc.py", line 1807, in interact
    request = self.getline('help> ')
  File "/usr/lib64/python2.7/pydoc.py", line 1818, in getline
    return raw_input(prompt)
AttributeError: 'module' object has no attribute 'readline'
[28 Apr 2017 5:05] Umesh Shastry
Hello Daniël,

Thank you for the report.
Verified as described.

Thanks,
Umesh
[28 Apr 2017 5:06] Umesh Shastry
test results

Attachment: 86093.results (application/octet-stream, text), 8.61 KiB.