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 socketpair
Recipients docs@python, socketpair
Date 2016-07-26.06:20:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469514037.92.0.489318728995.issue27622@psf.upfronthosting.co.za>
In-reply-to
Content
Docstring says:

The signed keyword-only argument determines whether two's complement is
used to represent the integer.  If signed is False and a negative integer
is given, an OverflowError is raised.

But actually, 

    (130).to_bytes(1, 'big', signed=True)

will also trigger OverflowError
History
Date User Action Args
2016-07-26 06:20:38socketpairsetrecipients: + socketpair, docs@python
2016-07-26 06:20:37socketpairsetmessageid: <1469514037.92.0.489318728995.issue27622@psf.upfronthosting.co.za>
2016-07-26 06:20:37socketpairlinkissue27622 messages
2016-07-26 06:20:37socketpaircreate