Python Advent Calendar 2013 の4日目です。 Python 3.4 で標準ライブラリに追加される asyncio を触ってみます。 なお、 Tulip とは asyncio のリファレンス実装のプロジェクト名です。 背景 Python はよく非同期 I/O プログラミングに使われます。 Twisted, Tornado, gevent, eventlet, pyuv などのフレームワークがあります。 これらのフレームワークの問題点として、ライブラリの再利用性の低さが挙げられます。 たとえば Twisted 用に書かれた XMPP ライブラリは、そのままでは Tornado で 利用することができません。 この問題の解決策として、良くイベントループの乗り入れが行われます。 GUIアプリケーションに組み込む場合などを考えて、多くのフレームワークが最初から イベントルー
Abstract This is a proposal for asynchronous I/O in Python 3, starting at Python 3.3. Consider this the concrete proposal that is missing from PEP 3153. The proposal includes a pluggable event loop, transport and protocol abstractions similar to those in Twisted, and a higher-level scheduler based on yield from (PEP 380). The proposed package name is asyncio. Status A reference implementation exis
Introducing Pyston: an upcoming, JIT-based Python implementation Hello everyone, I’m very excited to announce Pyston, a new open-source implementation of Python, currently under development at Dropbox. The goal of the project is to produce a high-performance Python implementation that can push Python into domains dominated by traditional systems languages like C++. Here at Dropbox, we love Python
I have a Unicode string in Python, and I would like to remove all the accents (diacritics). I found an elegant way to do this (in Java): convert the Unicode string to its long normalized form (with a separate character for letters and diacritics) remove all the characters whose Unicode type is "diacritic". Do I need to install a library such as pyICU or is this possible with just the Python standa
As I frequently travel in data science circles, I’m hearing more and more about a new kind of tech war: Python vs. R. I’ve lived through many tech wars in the past, e.g. Windows vs. Linux, iPhone vs. Android, etc., but this tech war seems to have a different flavor to it. What feels different in this case is that the application area is the same, namely performing work in data science where the so
This post is long overdue; this isn’t a declaration of intent (any intent was long ago made real), just my reflection about my own path. I left the Python world a long time ago but I never took a chance to say goodbye. While I had moved on from Python years ago, I felt a certain attachment to it well past then, not quite admitting to myself that I wasn’t coming back. When my proposal for PyCon 201
MozillaのGregory Szorc氏が、なぜ多くのプロジェクトでPython2.7以前のリリースをサポートし続けるのかと問うている(Gregory Szorc's Digital Homeのブログ記事、 本家/.)。 以下、ブログ記事より抜粋。 Pythonプロジェクトのメインテナー達は、Python2.6を含むそれ以下のサポートをやめることを真剣に考えるべきだと思う。簡単に入手することのできるPython2.7を持たないシステムを使っている人がそんなに沢山いるだろうか。我々Python開発者は、なぜ手間をかけてまで時代遅れとなっているPythonリリースのサポートを続けているのだろう。一例ではあるが、私はFirefoxのビルドシステムをPython2.5+から2.7.3+にうまく移行することができたし、比較的安易に行うことができた。 ブログに記事が投稿されてから間もなく、他の開発
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く