Code Monkey home page Code Monkey logo

python3-source-code-analysis's Introduction

介绍

本项目致力于对 Python 3.7 的源码分析,深度参考陈儒大大的《Python 源码剖析》,编写 Python 3 的版本。

希望各位 Python 爱好者能参与其中,一起探索 Python 魔法背后的奥秘!

使用

您可以直接访问 在线版,或者根据以下步骤访问本地版。

前置条件

您的系统上需要安装好 node (会自带npm)。

使用 make 或者使用 npm 命令去构建

使用 make 命令的方式构建:

若您可使用 make 命令,简单执行如下命令进行初始化:

make init

执行如下命令运行服务端:

make run

使用 npm 命令的方式构建:

若您不能使用 make 命令,或想直接使用 npm 命令,执行如下命令进行初始化:

安装项目依赖:

npm install

执行如下命令运行服务端:

npm run serve

访问

直接访问 http://localhost:4000 即可查看本书内容。

Roadmap

大体按照《Python 源码剖析》中的目录结构进行编写。依次介绍 Python 源码基本信息、内建对象和虚拟机。

  • 章节
    • 序章
    • 前言
    • Python 源代码的组织
    • Windows 环境下编译 Python
    • UNIX/Linux 环境下编译 Python
    • 修改 Python 源码
  • Python 内建对象
    • Python 对象初探
    • Python 整数对象
    • Python 字符串 对象
    • Python List 对象
    • Python Dict 对象
    • Python Set 对象
    • 实现简版 Python
  • Python 虚拟机
    • Python 编译结果
    • Python 虚拟机框架
    • 虚拟机一般表达式
    • Python 虚拟机控制流
    • Python 虚拟机函数机制
    • Python 运行环境初始化
    • Python 模块加载机制
    • Python 多线程机制
    • Python 内存管理机制

python3-source-code-analysis's People

Contributors

prodesire avatar istommao avatar xiaowuzidaxia avatar ltoddy avatar dependabot[bot] avatar taizilongxu avatar hjlarry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.