-1

Python has many types.
What is usage of binary sequence types in python? There are 3 binary sequence types:

  1. bytes
  2. bytearray
  3. MemoryView

What are they use for?

inspectorG4dget
  • 110,290
  • 27
  • 149
  • 241
  • 2
    This question is probably too broad for the Q&A format of StackOverflow. But have a look at this talk by Brandon Rhodes where he demonstrates some use cases for these three types: [Oh, Come On Who Needs Bytearrays - PyCon 2015](https://www.youtube.com/watch?v=z9Hmys8ojno) – Lukas Graf Jun 14 '15 at 11:20
  • @LukasGraf Nice talk – jamylak Jun 14 '15 at 12:25

1 Answers1

1

Actually all of these three types' use were discussed already:

1) About bytes look at the answers to the question the bytes type in python 2.7 and PEP-358

2) About bytearray usage look at the answers to the question Where are python bytearrays used?

3) About MemoryView look at good answers to the questions When should a memoryview be used? and What exactly is the point of memoryview in Python

Community
  • 1
  • 1
Delimitry
  • 2,987
  • 4
  • 30
  • 39