推荐学习书目
› 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
acmerfight
V2EX  ›  Python

关于 Python 的 import lock

  •  
  •   acmerfight · May 25, 2014 · 4158 views
    This topic created in 4545 days ago, the information mentioned may be changed or developed.
    遇到一个奇怪的 import lock 问题。写了篇文章分析一下,抛砖引玉。


    https://github.com/acmerfight/insight_python/blob/master/import_bug.md
    http://jianshu.io/p/fc5e4d4c3ef4
    3 replies  •  2014-05-26 11:34:23 +08:00
    dbow
    dbow
    May 25, 2014
    1
    用多线程活该。
    mengzhuo
    mengzhuo
    May 26, 2014
    2
    @dbow 这还真不是锁的原因……
    dbow
    dbow
    May 26, 2014
    3
    @mengzhuo _PyImport_AcquireLock()是个线程锁,另外你觉得是什么原因讲一下,谢谢.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1329 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 21:49 · PVG 05:49 · LAX 13:49 · JFK 16:49
    ♥ Do have faith in what you're doing.