1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 #!/usr/bin/env python2.4 # This program shows off a python decorator( # which implements tail call optimization. It # does this by throwing an exception if it is # it's own grandparent, and catching such # exceptions to recall th
概要¶ これは Google Python Style Guide Revision 2.29 を日本語に訳したものです。 本家ガイドは CC-By 3.0 ライセンス の基で公開されています。また、本ガイドも同ライセンスを継承します。 本家ガイドの著者は以下の通りです。 Amit Patel Antoine Picard Eugene Jhong Jeremy Hylton Matt Smart Mike Shields また、本ガイドの翻訳者は以下の通りです。 Kosei Kitahara 本ガイドに誤植、誤訳があった場合は issue で教えてください。 その他本ガイドに関する問い合わせは、サイト最下部に記載のメールアドレスか @Surgo にお願いします。 はじめに¶ Python は Google で使われている主要なスクリプト言語です。 このスタイルガイドは Python によ
Please Note: The job board has been relaunched (March 2015) and is now available under the new URL https://www.python.org/jobs/. Please update your bookmarks. Employers / Recruiters: See our HOW-TO for instructions on how to post to the jobs board Unpaid volunteer positions are listed in the Wiki on the VolunteerOpportunities page. Job seekers: We also have an RSS feed which lists the employer, lo
[Releases] [News] [Notes] [Download pyscheme-1.6.tar.gz] [LICENSE] [README] [CHANGES] Introduction pyscheme is an implementation of the Scheme language in Python. This interpreter tries to follow the design of the metacircular evaluator in the classic textbook, The Structure and Interpretation of Computer Programs. This implementation supports only a limited subset of Scheme, and my hope is to ge
Python Programming Language Business Wire、New Survey Shows Python Use Has Risen 45% Since Google App Engine DebutedにおいてEvans Dataが実施した調査結果の概要が紹介されている。北米の開発者向けに2009年10月の前半から実施された調査の結果の一部を取り上げたもの。次の内容が示されている。 Pythonの利用率が20.3%と大きく伸びている。2008年4月が13%であったことから、この1年半ほどで45%シェアを伸ばしたことになる。この大幅な伸びはGoogleがApp EngineでPythonを採用したことに原因があると考えられる Ruby、PHP、Perl、Actionscriptのシェアは多少の増減はあれど安定している 現在クラウドを利用しているユーザは8.7%だが
AbstractIntroduction to Python and Biopython with biological examples. The picture above represents the 3D structure of the Human Ferroxidase protein, that we use in some of the exercises in this course. This course is designed for biologists who already have some programming knowledge, in other languages such as perl or C. For this reason, while presenting a substantial introduction to the Pyth
最近 JavaScript を書く機会が増えているが、それに従って自分のコーディングスタイルが少しづつだが変化してきているのが分かる。もともと「コードの読みやすさ」や「実行効率」にとことんこだわるタイプだが、(JavaやC++になくて)JavaScriptやRubyにあるクロージャや無名関数が私のコーディングスタイルにとてもマッチしているからだと思う。 簡単な例を紹介しよう。Pythonで書かれた config.py というモジュール。config.yamlという設定ファイルを読み込んで Dictionary として返す config.get() という関数。普通に実装すると、以下のような感じになる。 import yaml _config = None def get(): global _config if not _config: data = open('config.yaml')
I found a good post on how to build your own toy compiler using Flex, Bison and LLVM. I saw one disadvantage right in the beginning: you had to use C++. If I were just prototyping a compiler, I wouldn’t use C++ but rather a dynamic language. And last semester for the Compilers course that’s what I did. Students were assigned to build a Pascal compiler (actually a subset, but not that small) and th
http://d.hatena.ne.jp/mamoruk/20090327/p1 「いちばん」かどうかはわかりませんが、うちの会社の製品ではpythonを主力に使った自然言語処理を含む製品を販売しているので、実際の感想を。 うちでは、pythonを元データの整備のための運用バッチ処理から、客が最終的に手にする情報の生成、実際に客が使うWEBインターフェースまで、pythonを主力にしています。 別のチームが作った別の製品ではS2Struts(JAVAね。)でWEBを作っている部分もありますが。 自然言語処理はぶっちゃけどの言語でも可能だとは思います。 mecabが使えて、Unicodeが使えて、正規表現が使えれば、まあ、どの言語を使ってもそんなに大差はないのではないでしょうか。 あとはsennaのような日本語用の全文検索エンジンなども使いますが、そこらへんに近い部分は基本的にC++で書き
現在大学1年生の人で3年後には NAIST に (というか松本研に) 来たいという人から「どんなプログラミング言語やっておくといいですか」と質問されたりするのだが、なかなか答えるのは難しい。自分は Perl → Python がメインでときどき C++/C# を使ったりするのだが、どれが一番いいかはなんとも言えないので、自然言語処理以外に転向する可能性も考えると、C とか C++ とか Java とか(授業でそちらをやるのであれば)を最初の武器に選んだ方がいいのでは、と思ってはいる。 そんなこんなで最近 Hal Daume III (機械学習を用いた自然言語処理では非常に有名な人) のブログで Language of Choice というタイムリーなエントリーが出ていたので、紹介すると、「それなりに大きな自然言語処理のプロジェクトでどのプログラミング言語を使うのか」というアンケート結果が出
Table of ContentsForeword1. Strings (100.0%) 2. Numbers (100.0%) 3. Dates and Times (100.0%) 4. Arrays (100.0%) 5. Hashes (100.0%) 6. Pattern Matching (91.7%) 7. File Access (82.6%) 8. File Contents (92.9%) 9. Directories (92.3%) 10. Subroutines (100.0%) 11. References and Records (96.9%) 12. Packages, Libraries, and Modules (92.5%) 13. Classes, Objects, and Ties (100.0%) 14. Database Access (66.7
Learning Python: Child's Play with RUR-PLE! Apprendre le langage Python avec RUR-PLE: un jeu d'enfants! André Roberge, © 2004, 2005 Learning to program computer should be fun, for adults and children alike. RUR-PLE is an environment designed to help you learn computer programming using the language Python. To use RUR-PLE, you need wxPython. You can learn more about RUR-PLE or you can go to the dow
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く