推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
fushall
V2EX  ›  Python

我想阅读 Python3 的源代码,已经下载了 CPython 并用 vs2017 打开,但是没在网上找到相关的文章,我只能硬着头皮看源代码了吗?遇到这种情况,你们是怎么做的?

  •  
  •   fushall · Apr 18, 2018 · 5256 views
    This topic created in 3125 days ago, the information mentioned may be changed or developed.

    如题:

    请求大家帮助,在此先谢过各位 :)

    8 replies  •  2020-05-30 15:36:34 +08:00
    projectzoo
    projectzoo
    Apr 18, 2018❤️1
    1
    没目的看什么源码?
    justinwu
    justinwu
    Apr 18, 2018 via iPhone❤️1
    2
    我曾经为了把 python2 移植到一个嵌入式系统上(非 linux ),研究过一些代码,做了一些修改裁剪,最终也已成功了。

    我想说,别为了看代码而看代码,看也看不明白,看了也白看。

    看 python 代码究竟是为啥?有什么疑惑?能不能提出 10 个问题?把搞明白这些问题作为终结或是里程碑?
    zhuangzhuang1988
    zhuangzhuang1988
    Apr 18, 2018❤️1
    3
    不是有本书么 叫 python 源码解析
    只要看好 python 的对象系统 和 runtime 就好了。
    ArianX
    ArianX
    Apr 19, 2018 via Android❤️1
    4
    有一本书叫 python 源码剖析,不过是讲的 python2.5 的,不知道对 python3 有用不
    junnplus
    junnplus
    Apr 19, 2018❤️1
    5
    像 3#楼的同学说的,可以按照 python 源码剖析这本书的目录去看
    fasionchan
    fasionchan
    May 13, 2020
    6
    我最近在慕课网写了个专栏,题目就是 Python 源码剖析,针对 Python 3,对 Python 实现原理兴趣的童鞋可以支持一下:

    [Python 源码深度剖析]( https://www.imooc.com/read/76)

    平台考虑营销因素需要控制学习难度,为此我做了妥协,对内容做了大量精简,尽量避免深陷 C 源码细节,并配置了大量的图表帮助理解。这样做的好处是,内容更为清晰可读,但牺牲了完整性,结合 Python 源码阅读可能更好。

    由于能力有限,我不敢说写得多好,尽心而已。好在前几节是可以免费试读的,谨慎购买哈哈

    大伙有什么建议或者感兴趣的主题,可以私信我哈。我可以抽空在这写一写:

    [小菜学 Python]( https://python.fasionchan.com/zh_CN/latest/index.html)

    ![Python 源码深度剖析]( https://cdn.fasionchan.com/python-source-course.jpg)
    fushall
    fushall
    OP
    May 14, 2020
    7
    @fasionchan 哇哦!这个真的很棒,请问有书籍吗?
    fasionchan
    fasionchan
    May 30, 2020
    8
    @fushall 暂时没有哦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1501 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 01:11 · PVG 09:11 · LAX 17:11 · JFK 20:11
    ♥ Do have faith in what you're doing.