Python ctypes Library - Memory, Strings, Datatypes

preview_player
Показать описание
In this ctypes tutorial, we will further explore the various features that ctypes introduces into Python. Namely, we will explore the new datatypes, and the difference in how strings are treated in C/C++ and how they are treated in Python.

Related Links:
Рекомендации по теме
Комментарии
Автор

I've been trying to figure this out for a while. You are a life saver man!

shortguy
Автор

To send a string to C without adding the 'b':

byte_string = string.encode('utf-8')
clibrary.display(byte_string)

dgh
Автор

Very nice. Someone had to make this video. Pro tip though, integers are typically pronounced 'intehgers' and not 'inteegers'

carl-johanhorberg