[issue25976] telnetlib SyntaxError: invalid syntax

Mark McDonnell report at bugs.python.org
Tue Dec 29 10:18:00 EST 2015


New submission from Mark McDonnell:

I'm trying to use telnetlib in a simple script similar to the example show in the documentation. I get an error saying SyntaxError: invalid syntax. This is true with Windows 10, and XP, both using Python 2.7.11 32 bit.

Here's what happens in IDLE:
>>> import sys
>>> import telnetlib
>>> tn = telnetlib.Telnet(host=192.168.1.15, port=3490, timeout=5)
SyntaxError: invalid syntax
>>> tn = telnetlib.Telnet(192.168.1.15, 3490, 5)
SyntaxError: invalid syntax
>>> tn = telnetlib.Telnet(192.168.1.15)
SyntaxError: invalid syntax
>>> tn = telnetlib.Telnet(host=192.168.1.15, port=3490, timeout=5)

----------
components: Windows
messages: 257193
nosy: Mark McDonnell, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: telnetlib SyntaxError: invalid syntax
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25976>
_______________________________________


More information about the Python-bugs-list mailing list