推荐学习书目
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 · 3824 views
    This topic created in 4400 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
        1
    dbow  
       May 25, 2014
    用多线程活该。
    mengzhuo
        2
    mengzhuo  
       May 26, 2014
    @dbow 这还真不是锁的原因……
    dbow
        3
    dbow  
       May 26, 2014
    @mengzhuo _PyImport_AcquireLock()是个线程锁,另外你觉得是什么原因讲一下,谢谢.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5500 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 03:26 · PVG 11:26 · LAX 20:26 · JFK 23:26
    ♥ Do have faith in what you're doing.