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

写了一个 Python 下的并发库叫 aiochan,请大家多提意见

  •  
  •   amadeoh · Sep 12, 2018 · 2991 views
    This topic created in 2823 days ago, the information mentioned may be changed or developed.
    2 replies    2018-09-12 13:21:59 +08:00
    JhZ7z587cYROBgVQ
        1
    JhZ7z587cYROBgVQ  
       Sep 12, 2018
    python 的 csp 是不是没法像 go 那样 M:N 地利用多核?我还没有仔细阅读大佬你的代码,看了一眼 import 似乎是 线程池+async 的组合
    amadeoh
        2
    amadeoh  
    OP
       Sep 12, 2018
    @jason0916 确实没法像 go 那样自由地使用多核,但是 parallel_pipe 和 parallel_pipe_unordered 两个方法是可以用 process pool 的,一般的问题把所有核跑满也没问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1088 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:25 · PVG 07:25 · LAX 16:25 · JFK 19:25
    ♥ Do have faith in what you're doing.