You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. There is an error in file [Tools/demo/rpython.py](https://github.com/python/cpython/blob/main/Tools/demo/rpython.py) at line 22.
The original statement is port = int(port[i+1:]), but it will crash if the port is specified as parameters.
The correct code should be port = int(host[i+1:]). Then the program can read specified port from parameter sys.argv[1].
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: