[Python-Dev] Error in PEP3118? (original) (raw)
Robert Kern robert.kern at gmail.com
Wed Jan 23 20:32:50 CET 2008
- Previous message: [Python-Dev] Error in PEP3118?
- Next message: [Python-Dev] Summary of Tracker Issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Heller wrote:
Here is another typo (?) in the pep; I think it should be changed:
Index: pep-3118.txt =================================================================== --- pep-3118.txt (revision 60037) +++ pep-3118.txt (working copy) @@ -338,7 +338,7 @@
len
the total bytes of memory the object uses. This should be the - same as the product of the shape array multiplied by the number of + same as the length of the shape array multiplied by the number of bytes per item of memory.readonly
While the original could be reworded ("product of the elements of the shape array"), the amendment is incorrect. For a shape array like {456}, the number of bytes is (456)bytes_per_item, not 3bytes_per_item.
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
- Previous message: [Python-Dev] Error in PEP3118?
- Next message: [Python-Dev] Summary of Tracker Issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]