@methane です。 compact dict が Python 3.6 が9月(ベータになる直前)にマージされ、それのおかげで推薦をもらい 10月ごろから Python の Core Developer になりました。 「PythonのフルタイムコミッタとしてKLabに雇われている」という訳ではないのですが、 もともと自己裁量で業務時間の大半をOSSへの貢献やコードを読むことに費やし、特にこの3ヶ月位は Python ばかり触っていたので、実質的には近い状態です。 そちらでの活動をあまり日本で共有する機会がないので、 Money Forward の卜部さんが書かれている 最近の ruby-core という記事をリスペクトして、 最近の Python の開発状況を紹介する記事を書いてみたいと思います。 Python 3.6 リリース 12/23 に Python 3.6 がリリースされ
I wrote a new tool this weekend, called Pipenv. Check it out on GitHub! Pipenv is an experimental project that aims to bring the best of all packaging worlds to the Python world. It harnesses Pipfile, pip, and virtualenv into one single toolchain. It features very pretty terminal colors. It automatically creates and manages a virtualenv for your projects, as well as adds/removes packages from your
CodecovでPythonコードリポジトリのコードカバレッジを継続的に計測する By raimon, 2016-01-17(日), in category Python Codecovというサービスを利用すると、GitHubにホスティングしているGitリポジトリのコードカバレッジを継続的に計測し、次のようにバッジで表示できる。 同種のCode coverage as a Service的なものでは、有名なサービスとしてCoverallsがある。 Travis CI連携済みのPythonプロジェクトでCodecovを利用 今回は技術書のサンプルコードを写経してコードカバレッジが取得できるようになっており、かつTravis CIでテストが自動的に回るように連携済みである既存のPythonプロジェクトに対してCodecovとの連携を組み込んでみた。 # このカバレッジをCodecovで計測した
Footnotes: Using file exports for group migration is deprecated.Migrate from SubversionGitLab cannot automatically migrate Subversion repositories to Git. To convert Subversion repositories to Git, you can use external tools, for example: git svn, for very small and basic repositories.reposurgeon, for larger and more complex repositories.Migrate by engaging Professional ServicesIf you prefer, you
Djangoで、CreateView + ModelForm + Modelを使った時に、 バリデーションを書く場所 バリデーションの実行順序 が気になりました。 後述の通り日本語の分かりやすい記事があったものの、実際に手を動かさないと理解できない部分もあったため、その時のメモを残します。 目次 環境 バリデーションを書く場所について ModelForm 各フィールドごとのバリデーション 複数フィールドを組み合わせるバリデーション Model 各フィールドごとのバリデーション 複数フィールドを組み合わせるバリデーション バリデーションの呼び出し順について 実装 myapp/utils.py ModelForm Model バリデーションエラーなしの場合の動作確認 バリデーションエラーありの場合の動作確認 最初のForm.clean_<filed_name>でエラー Form.CustomF
By dismissing the Python garbage collection (GC) mechanism, which reclaims memory by collecting and freeing unused data, Instagram can run 10% more efficiently. Yes, you heard it right! By disabling GC, we can reduce the memory footprint and improve the CPU LLC cache hit ratio. If you’re interested in knowing why, buckle up! How We Run Our Web ServerInstagram’s web server runs on Django in a multi
Hypergolix¶ Hypergolix is “programmable Dropbox”. Think of it like this: Dropbox run local applications on different computers using files and folders synced across the internet Hypergolix write local applications on different computers using programming objects synced across the internet Hypergolix runs as a local background service, just like Dropbox does. Once it’s running, instead of spending
最近mypyを趣味で使い始めたのでいろいろ書こうと思います。 @tk0miiyka さんの記事を読んでとりあえず自分の仕事でmypy使えそうなところをいろいろ考えてみた 対象バージョン version python 3.5.2 mypy 0.4.6 last update 2017.01.08 TL;DR pyiファイルをつくれば世の中の型ヒントが提供されていないプロジェクトに型ヒントをつけられる。 まーでも結構めんどいので、みんなでtypeshedを育てていくのがよさそうです。 GitHub - python/typeshed: Collection of library stubs for Python, with static types mypyって? こちらの素晴らしい記事を読んだほうがいいですね。 qiita.com 要はPython3.4以降で使える静的型チェッカーらしい。個
概要 昔 Django の order_by でどハマりした時のメモが発掘されたので残しておく Django で order_by や values や distinct を同時に使うと意図しない結果が得られてしまうので注意という話 環境 Django1.9 MySQL 前提 下記のようなDjangoモデルがあるとする # polls/models.py class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE)
The latest news from Google on open source releases, major projects, events, and outreach programs for early career developers. Google runs millions of lines of Python code. The front-end server that drives youtube.com and YouTube’s APIs is primarily written in Python, and it serves millions of requests per second! YouTube’s front-end runs on CPython 2.7, so we’ve put a ton of work into improving
Description Learn about building small and large projects with Flask in ways you probably did not see yet. Abstract This talk explores how you can build applications and APIs with Flask step by step by being easy to test and scale to larger and more complex scenarios. The talk will also go a bit into the history of some design decisions in Flask and what works well and in which areas you might w
ファイルシステムパス プロトコル pathlib はPython3.4で導入されたが、pathlibで表現されるファイルパスは、 open() やos.path.* などの、既存のファイル操作関連関数では使用できないため、あまり便利には使えていなかった。 Python3.6からは、pathlib.Path などのファイルパスをあらわすオブジェクトに特殊メソッド __fspath__() が実装された。ファイル名を引数として受け取る、open() などの関数は、__fspath__()を呼び出して、ファイルパスを取得するように変更された。 >>> import pathlib >>> spam = pathlib.Path('./spam') >>> spam.__fspath__() 'spam' >>> open(spam, 'w') <_io.TextIOWrapper name='s
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く