Data type range printed wrong ?
https://docs.python.org/3/library/array.html In the above given url which lead to a page of array module in documentation, on that page a table regarding the typecodes of the array is given, in that table the size range of the signed and unsigned int of typecode "i" is given as 2 bytes which I think should be 4 bytes instead, as even using that data type on an array and using function itemsize() on it also return 4 bytes. Though I do have some confusion regarding the column 'minimum size in bytes' of the table, does minimum size in bytes means something other than the range of that data type in bytes? If in case that is actually an error and minimum size in bytes means the range of data types in bytes than I would request you to please have a look at it, else I apologise for this mail and wasting your time in advance, but please let me know what does the minimum data size in bytes actually mean then, and why it is 2 bytes instead of 4 bytes for signed and unsigned int of typecode "i".
Hello, Thank you for your report. It's now tracked at: https://github.com/python/cpython/issues/110383 On 22. 08. 23 12:24, Shivansh Verma wrote:
https://docs.python.org/3/library/array.html <https://docs.python.org/3/library/array.html>
In the above given url which lead to a page of array module in documentation, on that page a table regarding the typecodes of the array is given, in that table the size range of the signed and unsigned int of typecode "i" is given as 2 bytes which I think should be 4 bytes instead, as even using that data type on an array and using function itemsize() on it also return 4 bytes.
Though I do have some confusion regarding the column 'minimum size in bytes' of the table, does minimum size in bytes means something other than the range of that data type in bytes?
If in case that is actually an error and minimum size in bytes means the range of data types in bytes than I would request you to please have a look at it, else I apologise for this mail and wasting your time in advance, but please let me know what does the minimum data size in bytes actually mean then, and why it is 2 bytes instead of 4 bytes for signed and unsigned int of typecode "i".
_______________________________________________ docs mailing list -- docs@python.org To unsubscribe send an email to docs-leave@python.org https://mail.python.org/mailman3/lists/docs.python.org/ Member address: encukou@gmail.com
participants (2)
-
Petr Viktorin
-
Shivansh Verma