R. David Murray added the comment:

> If a Fortran array was allowed in a bytes-like context without memory 
> copying, the order of the array elements would differ from the order returned 
> by the meoryview.tobytes() method, which essentially is defined to copy them 
> out in C-array or flattend-tolist() order.

I'm still not seeing how this would cause such an object to throw an error if 
used in a bytes-like context.  I presume by the above that you mean that the 
results of passing the object directly to a bytes like context differs from the 
results of calling .tobytes() on it and passing *that* to the bytes like 
context.  That's not what your suggested documentation change says, though.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23756>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to