1
pyKun 2015-04-25 09:49:04 +08:00
False is False is False 这个竟然是 True =,=
|
2
c 2015-04-25 09:50:45 +08:00
False is False is False -> True 求科普
|
3
dofine 2015-04-25 10:01:13 +08:00 3
@pyKun
@c Chaining operators like a is b is c is equivalent to a is b and b is c. So the first example is False is False and False is False, which evaluates to True and True which evaluates to True Having parenthesis leads to the result of one evaluation being compared with the next variable (as you say you expect), so (a is b) is c compares the result of a is b with c. (http://stackoverflow.com/questions/28104393/why-does-false-is-false-is-false-evaluate-to-true) |
4
eeeeeeve 2015-04-25 10:03:48 +08:00
视频链接在哪里?
|
6
bcxx 2015-04-25 10:07:43 +08:00 1
|
7
newghost 2015-04-25 10:16:07 +08:00
|
10
reorx 2015-04-25 10:36:46 +08:00 2
今年印象最深的是 Guido 关于 Diversity 的那一场,全程满槽点,给大家看我和小伙伴讨论时的截屏
|
11
reorx 2015-04-25 10:44:11 +08:00 1
@c Reference 里面有 https://docs.python.org/2/reference/expressions.html#not-in
|
12
laike9m 2015-04-25 20:41:45 +08:00
说实话,我认为这种 inconsistent 的东西没必要太纠结,说不定下个版本或另一个 Python 实现里就是另一种更快。倒是 Raymond 的那个 beyond pep8 演讲非常好,推荐去看。
|