Movatterモバイル変換
[0]ホーム
"not x in" vs. "x not in"
Ben Wolfsonwolfson at midway.uchicago.edu
Wed Apr 4 16:14:14 EDT 2001
In article <oihmctopeloiihkfk3jb3icnvrdoemm402 at news.mbnet.fi>,Kristian Ovaska <kristian.ovaska at helsinki.fi> wrote:>list = [1,2,3,4]>not 5 in list>5 not in list>>Why is there a "not in" operator? For clarity?>>(Not that I oppose "not in" in any way. I like it. I'm just curious.)To me, "not x in list" is confusing--I read it as meaning the samething as "(not x) in list"-- Barnabas T. RumjugglerThe women come and go,Speaking of the Regis Philbin Show -- Joe Frank
More information about the Python-listmailing list
[8]ページ先頭