We’ve been working hard over the past five months and are very happy to release Pyston 0.3, the newest version of our high-performance Python implementation. The biggest features of this release are that we can now run all of our internal scripts on Pyston, as well as improved performance. We also have some exciting news to share about our project status and plans. Language compatibility Self-hos
Understanding Python metaclasses 09 February 2015 (updated 19 November 2020) None of the existing articles [1] give a comprehensive explanation of how metaclasses work in Python so I'm making my own. Metaclasses are a controversial topic [2] in Python, many users avoid them and I think this is largely caused by the arbitrary workflow and lookup rules which are not well explained. There are few key
ソフトウェアエンジニアとして働き始めて10年目。昨年の秋に妊娠が発覚し、現在産前休業中である。 「妊活が大変」とか「子が生まれました」というブログはよく目にしていたので、妊活・出産・子育てに関する情報は自発的に集めていたつもりだった。 しかし、妊娠してから妊娠中の働き方についての認識の解像度がめちゃくちゃ低かったことに気づき、出産前に妊娠中の働き方について記録しておければと思いブログにまとめた。 以下は私の妊娠週数とそのときの体調が普段と比べてどれくらいだったかをまとめた図である。 妊娠初期(~16週)とつわり 生理予定日3日後にパーソナルジムにいったら、いつものダンベルを持つと死にそうになった。 半分の重さにしても息切れすることから、これはおかしいと思い、しばらく安静にした後妊娠発覚した。 私はつわりは6週から17週までで、比較的軽い方だったと思う。 食べ続けてそれをたまに吐くというよう
このブログでも数回紹介していたとおり、今メジャーな Python の MySQL ドライバ3つのうち2つ (MySQL-python の fork の mysqlclient と PyMySQL) を僕がほぼ単独でメンテナンスしている状況でした。 メンテナンスしているといっても、両方とも MySQL-python との互換性を第一に掲げているので、 Python 3 対応が終わった後はほとんど進化は無くて、淡々とバグの修正を積み重ねては1年に1度以上リリースするという程度です。 実際には Python では PostgreSQL 周りに比べて MySQL 周りは遅れていて幾つか改善案はあったのですが、子育てや他にも Python でやりたい事があったり仕事でも Go で楽しんでたりして手を付けられていませんでした。 そんな状況の中、 Mike さんが PyMySQL-Users ML に突
last modified October 18, 2023 This is PyQt5 tutorial. The tutorial is suited for beginners and intermediate programmers. After reading this tutorial, you will be able to program non-trivial PyQt5 applications. The code examples are availabe at the author's PyQt5-Tutorial-Examples repository. Python PyQt6 covers the latest version of PyQt. Table of contentsE-bookA unique e-book covering advanced f
This blog deals almost exclusively with my Python coding activities. tl;dr: the proposed type hinting for Python is done to help tools analyze code better (which can be very useful for programmers) but at the cost of reduced readability. A different idea is discussed which focuses on readability. ---- So, Python is going to have some type hinting [PEP484]. I agree with the idea that lead to this
Ryan Brown Ryan works on Openstack Heat at Red Hat and has written Python for web, orchestration, and backend applications large and small. TL;DR: Python is a (powerful) general purpose language in broad use, let's dive in and learn some control flow tips, standard library tricks, and common pitfalls. 1 Introduction Python (and its libraries) are enormous. It is used for system automation, web app
本稿は Python に型アノテーションを追加するという PEP 483 - The Theory of Type Hinting の提案で参照されている Jeremy Siek (@jeremysiek) 氏と Walid Taha 氏が開発した漸進的型付けについての入門記事の翻訳です。 What is Gradual Typing Python 3.5 で導入された型アノテーションについて興味がある方は以下を参考にしてください。 Python と型ヒント (Type Hints) と #pyconjp [翻訳] PEP 0484 -- 型ヒント (Type Hints) Revenge of the Types: 型の復讐 私自身、型システムに明るくないため、一部未訳の部分があったり、勘違いや誤訳もあると思います。そういった誤りを見つけたら編集リクエストを送ってもらえると助かります。
本稿は Python に型アノテーションを追加するという提案が行われたときに起こった Python コミュニティの議論の後、2014年8月24日 (日) に Armin Ronacher (@mitsuhiko) 氏によって書かれた記事の翻訳です。 Revenge of the Types Revenge of the Types by Armin Ronacher : Python (REDDIT) Revenge of the Types | Hacker News Python 3.5 で導入を検討している型アノテーションについて興味がある方は以下を参考にしてください。 mypy で静的型付け Python プログラミング 私自身、型システムや他言語に明るくないため、一部未訳の部分があったり、勘違いや誤訳もあると思います。そういった誤りを見つけたら編集リクエストを送ってもらえると助か
Please consider subscribing to LWNSubscriptions are the lifeblood of LWN.net. If you appreciate this content and would like to see more of it, your subscription will help to ensure that LWN continues to thrive. Please visit this page to join up and keep LWN on the net. Python is a poster child for dynamically typed languages, but if Guido van Rossum gets his way—as benevolent dictator for life (BD
Pythonへの型アノテーション導入を目指すGuido van Rossum氏 mypy の型アノテーションの構文を Python に取り込もうとメーリングリストで提案したニュースが話題になりました。今夏に話題になったニュースを今冬にフォローするという季節外れ感ですが、ずっと興味はあって「あとで読む」状態になっていたのを調べてみました。 基本的には mypy のドキュメントから自分の興味のあるところをかいつまんで説明しています。分かりにくいところがあれば原文を参照してください。 Welcome to Mypy documentation! mypy とは mypy は Python の静的型チェッカー (static type checker) です。wikipedia:静的コード解析 や wikipedia:en:Lint (software) ツールの一種だと説明されています。 Pyt
An experiment in augmented reality with lots of wooden tracks, an interactive living room experience for two kids. (about, faq) Last week, the project reached a stage where raw computation speed was a bottleneck. Originally, the generation of random inner loops with 16-18 track pieces took about half a minute, and connecting two open junctions with 14 pieces also needed a few minutes. Now with a
mypy mypy [1] is a Python variant which checks type annotations statically and at runtime. It supports function annotations, as well as local variable annotations, class attribute type inference, function overloading, type casting, generics, and union types. None is a valid value for every type. Examples: import typing class BankAccount: def __init__(self, initial_balance: int = 0) -> None: self.b
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く