Several Python users have sent suggestions about what Python fixes. I still don't feel sure of the answer. I feel like I know what causes people to use Python now (that Perl is a kludge), but I'm not sure that problem was Python's origin. George Demmy: Basic too basic (wimpy), Perl too scary (perlious? :), and Scheme too weird. Python daddy Guido van Rossum has stated repeatedly and much to the ch
This page is meant to be a central repository of decorator code pieces, whether useful or not <wink>. It is NOT a page to discuss decorator syntax! Feel free to add your suggestions. Please make sure example code conforms with PEP 8. Creating Well-Behaved Decorators / "Decorator decorator" Note: This is only one recipe. Others include inheritance from a standard decorator (link?), the functools @w
► 2024 (1) ► October (1) ► 2021 (1) ► October (1) ► 2020 (3) ► December (1) ► April (2) ► 2019 (2) ► February (2) ► 2018 (5) ► June (1) ► April (4) ► 2017 (6) ► December (1) ► October (1) ► September (1) ► February (3) ► 2016 (8) ► November (1) ► July (1) ► June (1) ► May (1) ► April (1) ► March (1) ► February (1) ► January (1) ► 2015 (5) ► December (1) ► November (1) ► March (2) ► February (1) ►
Atlassian Sourcetree is a free Git and Mercurial client for Windows. Atlassian Sourcetree is a free Git and Mercurial client for Mac. You caught us doing some quick maintenance, temporarily restricting your repository to read-only access. Overview Env.py is a Python script that makes it easy to create, remove and switch between Python virtual environments. It works with the Windows command shell a
written on May 25, 2010 Yesterday after my talk about WSGI on Python 3 I announced an OpenSpace about WSGI. However only two people showed up there which was quite disappointing. On the bright side however: it was in parallel to some interesting lighting talks and I did not explain to well what the purpose of this OpenSpace was. In order to do better this time around, I want to summarize the curre
負荷テストは、今までabでしかしたこと無かったけどpython製の負荷テストツール「pylot」というのがあったので試してみた。かなりイイ感じなので紹介 ダウンロード http://www.pylot.org/ 公式ページからダウンロードできる。5/22現在のバージョンは1.24 機能 * HTTP and HTTPS (SSL) support * multi-threaded load generator * automatic cookie handling * response verification with regular expressions * execution/monitoring console * real-time stats * results reports with graphs * custom timers * GUI mode * shell/co
Welcome to tokyocabinet-python’s documentation!¶ Tokyo Cabinet is a library of routines for managing a database. The database is a simple data file containing records, each is a pair of a key and a value. Every key and value is serial bytes with variable length. Both binary data and character string can be used as a key and a value. There is neither concept of data tables nor data types. Records a
Copyright (C) 2009, David Beazley, http://www.dabeaz.com Inside the Python GIL 1 David Beazley http://www.dabeaz.com Originally presented at my "Python Concurrency Workshop", May 14-15, 2009 (Chicago) June 11, 2009 @ chipy Copyright (C) 2009, David Beazley, http://www.dabeaz.com Video Presentation 2 You can watch the video of this presentation here: http://blip.tv/file/2232410 It expands upon the
先週、Django 1.2が出ました。新しくて、良い機能がいっぱい入っているけども、1.1からの変更をご紹介しようかと思っています。 マルチDB 1.2では、一番大きい変更は明らかにマルチDB対応ですね。settings.pyのDATABASEオプションはDATABASESになりました。それでpython辞書で複数のDBを設定する。 以下のようにMySQL、sqlite、PostgreSQL、それぞれ違ってても構いません。 DATABASES = { 'default': { 'NAME': 'app_data', 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'USER': 'postgres_user', 'PASSWORD': 's3krit' }, 'users': { 'NAME': 'user_data', 'ENGIN
最近は「ソート済み辞書」ってやつをよく使うのだが、Python 2.6以前には標準ライブラリに含まれているものがない。なので、Python 2.6用にはodictを使って、 try: from collections import OrderedDict except ImportError: from odict import odict as OrderedDict って書くのが最近の僕のパターン。だが、Python 2.7のcollections.OrderedDictをキーワード引数に渡した場合、 >>> from collections import OrderedDict >>> d = OrderedDict() >>> d['spam'] = 1 >>> d['egg'] = 2 >>> d['ham'] = 3 >>> dict(**d) {'egg': 2, 'ham'
settings.TEMPLATE_DIRSで指定しているディレクトリに404.htmlと500.htmlを作成するだけでは正しく表示されず。 以下、正しく表示させるためのメモです。 0. デバッグモードをFalseに設定 settings.pyのDEBUG項目をFalseに設定します。 デバッグモードがオン(True)になっているとエラービューが表示されません。 DEBUG = False 1. エラービュー用のテンプレートを作成 settings.pyのTEMPLATE_DIRS項目で指定しているディレクトリに404.htmlと500.htmlを作成します。 2. TEMPLATE_CONTEXT_PROCESSORS項目の修正 settings.pyのTEMPLATE_CONTEXT_PROCESSORS項目を以下のように修正、または追加します。 TEMPLATE_CONTEXT_P
前に書いた記事からはやくも半月たってしまったが、やっと出してもいいかなという状態になったので公開します。ファイルそのものはこちら。 GAETestBaseはPython標準のunittest.TestCase継承クラスとなってます。ユニットテストを書く際に、通常のTestCaseのかわりにGAETestBaseを継承してユニットテスト用のクラスを作り、あとは普通にテストコードが記述できます。 PythonおよびAppEngine SDK以外への依存がゼロで環境を選ばない、はず、なのが売りかな? ところで出来上がったあと公開用の準備をやってたら、GAE/J側ではslim3がkotoriを組み込んだという話が。おおお。 できること CLIでのテスト実行 開発中のテスト実行が、Python標準のunittestと全く同じようにCLIから実行できます テストケース側で指定があれば各サービスはrem
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く