New submission from Chandrakanth Reddy <neelapareddycha...@gmail.com>:
i see from the below link it says "cannot re-open an already existing telnet instance" using Telnetlib. Can this be fixed in the later versions of python or is there any work around for this. I'm surprised that this is something which PERL supports and not python . When I try to open a new session which is already opened the telnet server asks whether to open in a.read only or b.read/write mode and when i try to write 'a' it doesn't take and program fails. my code: tn = telnetlib.Telnet(HOST,PORT) print("established connection") print(tn.read_until(">> ".encode('ascii'))) tn.write(("a".encode('ascii'))) output: established connection b'\r\n a. Connect to Port read/write\r\n b. Connect to Port read only\r\n c. Do not connect, drop this connection request\r\n d. Look at port log file\r\n>> ' ---------- messages: 319056 nosy: ckreddy priority: normal severity: normal status: open title: Cannot re-open an existing telnet session type: enhancement versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33806> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com