Spyder 6 IDE: Text Datatypes (str, bytes and bytearray classes)

Channel:
Subscribers:
7,760
Published on ● Video Link: https://www.youtube.com/watch?v=UO2BqXW7FzQ



Duration: 0:00
210 views
8


In the Python builtins module, there are three fundamental text datatypes, the str class, which has a Unicode character as a fundamental unit and is immutable, the bytes class which has a byte as a fundamental unit and is immutable and the bytearray class which has a byte as a fundamental unit and is mutable.

These three classes follow the the Python Datamodel and the abstract base class of a Sequence and in the case of the bytearray, the Mutable Sequence. This video examines the identifiers in the str class in great detail and outlines the underlying design patterns. As most of the identifiers are consistent between the three classes, due to their basis on a common design pattern being followed, the differences between the classes and the fundamental unit of the Sequence will be discussed. The bytes class is a bit more complicated so various encoding concepts will be discussed such as ASCII, Latin1-4, Greek, UTF-16, UTF-32 and the current standard UTF-8. UTF variants with a BOM will also be discussed.

Spyder IDE playlist:
   • Spyder IDE: Scientific Python Develop...  
This video assumes that the viewer has a basic intuition of the Python Datamodel. If not I would recommend watching my previous video, Introduction to Python and the Python Datamodel before proceeding.

#Python #str #bytes #utf #ascii #encoding #text #string #datamodel #dunder #oop #programming #objectorientedprogramming #datascience #spyder