[issue33567] Explicitly mention bytes and other buffers in the documentation for float()

2021-12-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33567] Explicitly mention bytes and other buffers in the documentation for float()

2021-12-18 Thread Alex Waygood
Change by Alex Waygood : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch type: -> enhancement versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker

[issue33567] Explicitly mention bytes and other buffers in the documentation for float()

2018-05-18 Thread Joël Schaerer
Change by Joël Schaerer : -- nosy: +joelthelion ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33567] Explicitly mention bytes and other buffers in the documentation for float()

2018-05-18 Thread Martijn Pieters
New submission from Martijn Pieters : float(bytesobject) treats the contents of the bytesobject as a sequence of ASCII characters, and converts those to a float value as if you used float(bytesobject.decode('ASCII')). The same support is extended to other objects implementing the buffer protoc