Python's type system is as absurd as it is fascinating. "Everything is an object" is an understatement. In this talk,
In this talk, we will take a look at how Python's type system is implemented -- specifically its objects and classes. We'll take a look at how classes are also objects, the consequences of that, and how it is implemented in the interpreter.
Next, we'll try to figure out where the self in method comes from.
We'll top it off with how we can create a function decorator that will take away the need for a class keyword.
Outcomes:
Familiarity with classes as objects
Getting known to confusing behaviour
Exploring PyObject from the CPython interpretr
What format do you have in mind for your talk?
Talk
Table of contents
Outline:
object and type
PyObject, PyTypeObject, and *PyObject
Where does self come from in methods?
Descriptors
The function decorator that makes class keyword redundant
Why it's not exactly the same as the class keyword
What domain would you say your talk falls under?
Core Python
Duration in minutes (including Q&A)
25
Prerequisites
No response
Speaker bio
Software Developer at Pipal Academy
Python, Haskell, OCaml, ...
Interested in programming languages
Recently started contributing to the OCaml Multicore project
Title of the talk
The Python Type System
Description
Python's type system is as absurd as it is fascinating. "Everything is an object" is an understatement. In this talk, In this talk, we will take a look at how Python's type system is implemented -- specifically its objects and classes. We'll take a look at how classes are also objects, the consequences of that, and how it is implemented in the interpreter. Next, we'll try to figure out where the
self
in method comes from. We'll top it off with how we can create a function decorator that will take away the need for a class keyword.Outcomes:
PyObject
from the CPython interpretrWhat format do you have in mind for your talk?
Talk
Table of contents
Outline:
object
andtype
PyObject
,PyTypeObject
, and*PyObject
self
come from in methods?class
keyword redundantclass
keywordWhat domain would you say your talk falls under?
Core Python
Duration in minutes (including Q&A)
25
Prerequisites
No response
Speaker bio
Software Developer at Pipal Academy
The talk/workshop speaker agrees to
[X] Share the slides, code snippets and other material used during the talk
[X] If the talk is recorded, you grant the permission to release the video on BangPyper's YouTube channel under CC-BY-4.0 license
[X] Not do any hiring pitches during the talk and follow the Code of Conduct