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 rc
Recipients rc
Date 2017-01-24.09:56:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485251801.63.0.344501122232.issue29361@psf.upfronthosting.co.za>
In-reply-to
Content
bug in pyserial: serialposix.py

line 50:
        # set custom divisor
        buf[6] = buf[7] / baudrate

TypeError: integer argument expected, got float

fix: do cast: buf[6] = int(buf[7] / baudrate)
History
Date User Action Args
2017-01-24 09:56:41rcsetrecipients: + rc
2017-01-24 09:56:41rcsetmessageid: <1485251801.63.0.344501122232.issue29361@psf.upfronthosting.co.za>
2017-01-24 09:56:41rclinkissue29361 messages
2017-01-24 09:56:41rccreate