python-web-pdb icon indicating copy to clipboard operation
python-web-pdb copied to clipboard

can't access sys.stdin.read function

Open snowman opened this issue 2 years ago • 1 comments

$ pip install -U web-pdb
$ cat a.py
import web_pdb; web_pdb.set_trace(port=5678)
$ python a.py

# Open browser in http://127.0.0.1:5678
(Pdb) import sys; sys.stdin.read
<bound method WebConsole.readline of <web_pdb.web_console.WebConsole object at 0x00000123C7ACA490>>
(Pdb) sys.stdin.read(1)
*** TypeError: readline() takes 1 positional argument but 2 were given

snowman avatar Feb 27 '23 08:02 snowman

If patch_stdstreams argument wasn't used explicitly then I have no idea why sys.stdin was patched.

romanvm avatar Apr 17 '23 08:04 romanvm