In order to spawn a process under Windows, it needs to be pickable - and many decorated functions or Class methods are not.
8 条回复 • 2019-12-03 13:59:45 +08:00
|
1
deplives 2019 年 12 月 3 日 我的理解:
需要支持序列化 |
|
2
wuwukai007 2019 年 12 月 3 日
from functools import wrap
@wraps(func) |
|
3
Cooky 2019 年 12 月 3 日 via Android
windows 没有 fork,要像 Linux 那种 fork 就只能用 pickle 拷贝整个进程
|
|
5
oott123 2019 年 12 月 3 日
pickable 就是 pickle able
|
|
8
oott123 2019 年 12 月 3 日 via Android |
推荐学习书目
› 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