Xuanji Li xua...@gmail.com 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
Christian S. Perone christian.per...@gmail.com added the comment:
I don't know, by doing this on __init__ we can break a lot of legacy codes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10695
Xuanji Li xua...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue10695
Christian S. Perone christian.per...@gmail.com added the comment:
Not from Python itself I think, but external, from users.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10695
___
R. David Murray rdmur...@bitdance.com 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
Christian S. Perone christian.per...@gmail.com added the comment:
Agree.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10695
___
___
R. David Murray rdmur...@bitdance.com 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
Changes by R. David Murray rdmur...@bitdance.com:
--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10695
___
New submission from Christian S. Perone christian.per...@gmail.com:
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
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +jackdied
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10695
___
___
Python-bugs-list
10 matches
Mail list logo