书栈网 · BookStack 本次搜索耗时 0.017 秒,为您找到 318 个相关结果.
  • 小插曲,Deferred

    回调函数的后序发展 Deferred 总结 参考 回调函数的后序发展 在第六部分我们认识到这样一个情况:回调是Twisted异步编程中的基础。除了与reactor交互外,回调可以安插在任何我们写的Twisted结构内。因此在使用Twisted或其它基于reactor的异步编程体系时,都意味需要将我们的代码组织成一系列由reactor循环可以激活...
  • Using Libcloud in multi-threaded and async environments

    Using Libcloud in multi-threaded and async environments Libcloud and thread-safety Using Libcloud with gevent Using Libcloud with Twisted Using Libcloud in multi-threaded an...
  • Using Libcloud in multi-threaded and async environments

    Using Libcloud in multi-threaded and async environments Libcloud and thread-safety Using Libcloud with gevent Using Libcloud with Twisted Using Libcloud in multi-threaded an...
  • 测试诗歌

    简介 例子 讨论 总结 参考练习 参考 简介 在我们探索Twisted的过程中写了很多代码, 但目前我们却忽略了一些重要的东西 —— 测试. 你也许会疑问怎样用像 unittest 这样Python自带的同步框架测试异步代码. 答案是你不能. 正如我们已经发现的,同步代码和异步代码是不能混合的, 至少不容易. 幸运地是, Twisted...
  • 介绍

    声明 阅读 代码 声明 本书是”Twisted与异步编程入门”系列文章的简体中文翻译. 原文由Dave 撰写,由杨晓伟 和luocheng 翻译。 版权归原作者所有,本书只是对文章进行整理,提高阅读体验,如有侵权,欢迎来信告知 likebeta 作者:Dave 译者:杨晓伟 译者:luocheng 酱油:likebeta 阅...
  • Using Libcloud in multi-threaded and async environments

    Using Libcloud in multi-threaded and async environments Libcloud and thread-safety Using Libcloud with gevent Using Libcloud with Twisted Using Libcloud in multi-threaded an...
  • Using Libcloud in multi-threaded and async environments

    Using Libcloud in multi-threaded and async environments Libcloud and thread-safety Using Libcloud with gevent Using Libcloud with Twisted Using Libcloud in multi-threaded an...
  • 改进诗歌下载服务器(1)

    诗歌下载服务器 讨论 参考 诗歌下载服务器 到目前为止,我们已经学习了大量关于诗歌下载客户端的Twisted的知识,接下来,我们使用Twisted重新实现我们的服务器端。得益于Twisted的抽象机制,接下来你会发现我们前面已经几乎学习到了所需的全部知识。其实现源码在twisted-server-1/fastpoetry.py 中。之所以称其为f...
  • Installation guide

    Installation guide Supported Python versions Installing Scrapy Things that are good to know Using a virtual environment (recommended) Platform specific installation notes Windo...
  • Installation guide

    Installation guide Installing Scrapy Things that are good to know Using a virtual environment (recommended) Platform specific installation notes Windows Ubuntu 14.04 or above ...