Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memoryview for List
#10
First of all - why memoryview? From documentation:

Quote:memoryview objects allow Python code to access the internal data of an object that supports the buffer protocol without copying.

'withoug copying' means that main advantage of memoryview is with large binary data. Instead of copying one can have memoryview object.

One additional tidbit from documentation about memoryview and release:

Quote:Many objects take special actions when a view is held on them (for example, a bytearray would temporarily forbid resizing); therefore, calling release() is handy to remove these restrictions (and free any dangling resources) as soon as possible.

Regarding complex numbers - what do you want to accomplish? Bytes and bytearray objects contain single bytes (bytes is immutable and bytearray is a mutable sequence)
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Memoryview for List - by saumyagoel - Mar-06-2019, 03:12 AM
RE: Memoryview for List - by Larz60+ - Mar-06-2019, 04:03 AM
RE: Memoryview for List - by saumyagoel - Mar-06-2019, 04:26 AM
RE: Memoryview for List - by Larz60+ - Mar-06-2019, 05:59 AM
RE: Memoryview for List - by saumyagoel - Mar-06-2019, 09:11 AM
RE: Memoryview for List - by perfringo - Mar-06-2019, 09:13 AM
RE: Memoryview for List - by Larz60+ - Mar-06-2019, 09:14 AM
RE: Memoryview for List - by saumyagoel - Mar-06-2019, 11:05 AM
RE: Memoryview for List - by saumyagoel - Mar-07-2019, 03:36 AM
RE: Memoryview for List - by perfringo - Mar-07-2019, 07:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python 3 memoryview : unsupported format <d evason 0 3,552 Nov-21-2018, 04:27 PM
Last Post: evason

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020