This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tiabc
Recipients docs@python, r.david.murray, tiabc
Date 2016-11-11.06:34:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAM5S9_2B2se0O+kTnKeLz+Va8Acs0j0dNC1Qcrdr4b2kz5RzKw@mail.gmail.com>
In-reply-to <1478819104.14.0.122163731272.issue28661@psf.upfronthosting.co.za>
Content
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>
> _______________________________________
>
History
Date User Action Args
2016-11-11 06:34:37tiabcsetrecipients: + tiabc, r.david.murray, docs@python
2016-11-11 06:34:37tiabclinkissue28661 messages
2016-11-11 06:34:36tiabccreate