サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
買ってよかったもの
python-history.blogspot.com
I received an interesting question in the mail recently: What is the difference between keywords and literals? Why are True and False keywords rather than literals in python3? I was horrified recently to find that assigning to True/False works in python2. So I went digging, and found that True and False were created to be 'constants' like None in PEP 285. Assignment to None was disallowed in 2.4,
In a recent post on my other blog I mentioned a second-hand story about how Python's indentation was invented by the wife of Robert Dewar. I added that I wasn't very sure of the details, and I'm glad I did, because the truth was quite different. I received a long email from Lambert Meertens with the real story. I am going to quote it almost completely here, except for some part which he requested
I was asked (again) today to explain why integer division in Python returns the floor of the result instead of truncating towards zero like C. For positive numbers, there's no surprise: >>> 5//2 2 But if one of the operands is negative, the result is floored, i.e., rounded away from zero (towards negative infinity): >>> -5//2 -3 >>> 5//-2 -3 This disturbs some people, but there is a good mathemati
Python's handling of integer division is an example of early mistake with huge consequences. As mentioned earlier, when Python was created, I abandoned the approach to numbers that had been used in ABC. For example, in ABC, when you divided two integers, the result was an exact rational number representing the result. In Python however, integer division truncated the result to an integer. In my ex
A series of articles on the history of the Python programming language and its community. Later blog entries will dive into the gory details of Python's history. However, before I do that, I would like to elaborate on the philosophical guidelines that helped me make decisions while designing and implementing Python. First of all, Python was originally conceived as a one-person “skunkworks” project
A series of articles on the history of the Python programming language and its community. David Beazley's talk at US PyCon 2018, about parser generators, reminded me I should write a bit about its history. Here's a brief brain dump (maybe I'll expand later). There are actually two pgens. The original, in C, and a rewrite in Python, under lib2to3/pgen2. I wrote both. The original was actually the f
このページを最初にブックマークしてみませんか?
『The History of Python』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く