TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How variables are implemented in CPython

2 点作者 r4victor超过 4 年前

1 comment

r4victor超过 4 年前
Hi! This is part 5 of my Python behind the scenes series. The topic of this post is Python variables, which is not as simple as it may seem at first. Here&#x27;s some of the things we&#x27;ll cover:<p><pre><code> - what an assignment statement like a = b really means in Python - what a variable is - how CPython maps names to values - what namespaces and scopes are and how to determine the scope of a name - which opcodes the CPython compiler produces to work with variables, and how the CPython VM executes these opcodes </code></pre> I&#x27;d like to hear your feedback. Thanks!