Tim: > [Greg Ewing] > > I thought you'd always argued against this before, on > > the grounds that the convenience wasn't worth the > > inconsistency. Are you starting to change your mind? > > This one's a done deal; it was released in 2.2: > > >>> 2 in {2: 3} > 1 I'm talking about making "for x in string" do a substring test. This is different from "for x in dict", because at least the latter is still a kind of membership test. I thought Guido was against having "in" do anything other than membership tests, but his last message sounded like he was changing his mind. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4