Message280563
I see, thanks for the clarification.
But in my OS X the things are different and I spent about 1 hour trying
this code to take off.
Maybe it's better to change this code to avoid spending time for such
subtle bugs? Say:
tn.read_until(b"Password:")
tn.read_eager()
Or just add a comment. It's confusing when one takes code from the official
website and it doesn't work.
What do you think?
On 11 November 2016 at 02:05, R. David Murray <report@bugs.python.org>
wrote:
>
> R. David Murray added the comment:
>
> Well, the example code is correct for a typical telnet service running on
> a unix variant. That will output a space after the colon, so that the
> user's input is separated from the colon when they start to type.
>
> ----------
> nosy: +r.david.murray
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue28661>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2016-11-11 06:34:37 | tiabc | set | recipients:
+ tiabc, r.david.murray, docs@python |
2016-11-11 06:34:37 | tiabc | link | issue28661 messages |
2016-11-11 06:34:36 | tiabc | create | |
|