[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-14 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list

[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-14 Thread R. David Murray
R. David Murray added the comment: Fixed in py3k in r87230, with test. Backported to 3.1 in r87231 and 2.7 in r87232. The 2.7 backport doesn't include the test since the test infrastructure for it doesn't exist in the 2.7 test_telnetlib. -- resolution: -> fixed stage: -> committed

[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-14 Thread Christian S. Perone
Christian S. Perone added the comment: Agree. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-14 Thread R. David Murray
R. David Murray added the comment: Yes, for backward compatibility reasons it is better to make the change that fixes the thing that doesn't work and leave the rest alone. Probably the change wouldn't break *much* existing user code, but why break anything when there doesn't seem to be any p

[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-14 Thread Christian S. Perone
Christian S. Perone added the comment: Not from Python itself I think, but external, from users. -- ___ Python tracker ___ ___ Python

[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-14 Thread Xuanji Li
Xuanji Li added the comment: Hi, is there any legacy code that would rely on "port" being stored as a string rather than an integer? -- ___ Python tracker ___ _

[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-14 Thread Christian S. Perone
Christian S. Perone added the comment: I don't know, by doing this on __init__ we can break a lot of legacy codes. -- ___ Python tracker ___

[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-14 Thread Xuanji Li
Xuanji Li added the comment: Alternatively, I think we can do a conversion to int in Telnet.__init__ (see patch) -- keywords: +patch nosy: +xuanji Added file: http://bugs.python.org/file20035/issue10695.patch ___ Python tracker

[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +jackdied ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10695] telnetlib.Telnet port number int/str inconsistency

2010-12-13 Thread Christian S. Perone
New submission from Christian S. Perone : When you use telnetlib with a "str" parameter as Port Number: tel = telnetlib.Telnet("10.0.2.9", "8123") tel.read_until("login: ") It works fine, except if you set the debuglevel: tel.set_debuglevel(30) Then the follow exception is thrown: Traceback (m