[New-bugs-announce] [issue34525] smtplib's authobject return value wrongly documented

Sebastian Rittau report at bugs.python.org
Mon Aug 27 22:10:42 EDT 2018

New submission from Sebastian Rittau <srittau at rittau.biz>:

smtplib's authobject() callback is supposed to return bytes, according to both the documentation at https://docs.python.org/3/library/smtplib.html as well as the docstring of SMTP.auth(). This does neither match the implementation of auth(), which immediately calls encode() on the return value, nor that of the auth_cram_md5() et al, which return str.

assignee: docs at python
components: Documentation
messages: 324209
nosy: docs at python, srittau
priority: normal
severity: normal
status: open
title: smtplib's authobject return value wrongly documented
versions: Python 3.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list