New submission from sparrowt <sparr...@gmail.com>:

When running python from an embeddable windows zip file such as:
https://www.python.org/ftp/python/3.9.10/python-3.9.10-embed-amd64.zip

the `help` command within `pdb` is broken due to missing docstrings, as 
demonstrated below.

Python 3.9.10 (tags/v3.9.10:f2f3f53, Jan 17 2022, 15:14:21) [MSC v.1929 64 bit 
(AMD64)] on win32
>>> import pdb
>>> pdb.set_trace()
--Return--
> <stdin>(1)<module>()->None
(Pdb) help interact
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "bdb.py", line 92, in trace_dispatch
  File "bdb.py", line 151, in dispatch_return
  File "pdb.py", line 294, in user_return
  File "pdb.py", line 357, in interaction
  File "pdb.py", line 322, in _cmdloop
  File "cmd.py", line 138, in cmdloop
  File "pdb.py", line 422, in onecmd
  File "cmd.py", line 217, in onecmd
  File "pdb.py", line 1496, in do_help
AttributeError: 'NoneType' object has no attribute 'rstrip'
>>>
>>> print(pdb.Pdb.do_interact.__doc__)
None

----------
components: Library (Lib), Windows
messages: 410970
nosy: paul.moore, sparrowt, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: pdb help fails with AttributeError when using Windows embeddable package
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46434>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to