Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Understanding Metaclass from Type
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yusuke Tamura
November 15, 2023
0
57
Understanding Metaclass from Type
みんなのPython勉強会 #99 LT枠
https://startpython.connpass.com/event/300831/
Yusuke Tamura
November 15, 2023
Tweet
Share
More Decks by Yusuke Tamura
See All by Yusuke Tamura
Developing UI Components Integrating Radix Primitives with Custom CSS
tamtam0423
0
79
Which should be designed first, the data model or the domain model
tamtam0423
0
230
みんなのPython勉強会#100 LT枠 参照カウントから見るPythonのメモリ管理
tamtam0423
5
1.5k
みんなのPython勉強会_LT枠_10_12__5分で理解するディスクリプタ.pdf
tamtam0423
2
950
めぐろLT_ Pythonの弱参照(weakref)を使えば、世界はもっと良くなる
tamtam0423
0
770
みんなのPython勉強会#96 LT枠
tamtam0423
0
230
NoCodeツールでWebHookからDWHへのデータの転送処理を爆速で実装した話
tamtam0423
0
390
Featured
See All Featured
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
93
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
78
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Test your architecture with Archunit
thirion
1
2.2k
Paper Plane (Part 1)
katiecoart
PRO
0
4.3k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
830
Believing is Seeing
oripsolob
1
56
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
76
How GitHub (no longer) Works
holman
316
140k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Transcript
@ 2023 Novasell, Inc. All Rights Reserved. Understanding Metaclass from
Type 2023/11/15 みんなのPython勉強会(stapy) Lightning Talk NOVASELL.INC , Tamtam 1
@ 2023 Novasell, Inc. All Rights Reserved. Introduction GitHub: @tamtam-fitness,
X: @TamtamFitness, Zenn: Tamtam I’m Tamtam, japan-born-and-raised 💪 I’m into FastAPI🐍 Currently working at RAKSUL/NOVASELL📃📺
@ 2023 Novasell, Inc. All Rights Reserved. https://techblog.raksul.com/ RAKSUL TechBlog
社員インタビュー https://recruit.raksul.com/story/archives/engineer/ RAKSUL Engineer Recruitment Book https://raksulinc.notion.site/RAKSUL-Engineer-Recruit ment-Book-a1245092c4434b45b162a9fe277c169f RAKSUL 公式connpass https://raksul.connpass.com/ https://www.youtube.com/channel/UCyihWcvrHmE e-edcqdcJFsQ/ RAKSUL 公式YouTube RAKSUL 公式X https://twitter.com/raksuldev Find out more about RAKSUL
@ 2023 Novasell, Inc. All Rights Reserved. 4 All objects
in python have their own types
@ 2023 Novasell, Inc. All Rights Reserved. 5 Class can
define a new type
@ 2023 Novasell, Inc. All Rights Reserved. 6 The type
of an instance created is the class
@ 2023 Novasell, Inc. All Rights Reserved. 7 The class
itself is a type named “type”
@ 2023 Novasell, Inc. All Rights Reserved. 8 Let’s look
at the process of class definition to understand “type”
@ 2023 Novasell, Inc. All Rights Reserved. 9 “type” constructs
a class
@ 2023 Novasell, Inc. All Rights Reserved. 10 Step 1:
read a body
@ 2023 Novasell, Inc. All Rights Reserved. 11 Step 2:
create a dictionary
@ 2023 Novasell, Inc. All Rights Reserved. 12 Step 3:
execute these variables
@ 2023 Novasell, Inc. All Rights Reserved. 13 Step 4:
construct a class
@ 2023 Novasell, Inc. All Rights Reserved. 14 Class that
creates class is called Metaclass “type” is one of Metaclassess By default, it’s set to type
@ 2023 Novasell, Inc. All Rights Reserved. 15 Reference •
Advanced Python Mastery - Section7: Meta Programming • Effective Python - 4章 メタクラスと属性
@ 2023 Novasell, Inc. All Rights Reserved. 16 Thank you
for listening !