I wrote: > I personally see no way to defend ('' in 'x') returning false; it's so > clearly a substring that any definition of substring-ness that > excludes this seems mathematically wrong, despite your good > intentions. However, the backwards compatibility argument makes sense. It used to raise an exception and it would probably break code if it stopped doing so; longer strings are much less likely to be passed by accident so the need for the exception there is less strong. I'm of two minds on this now... --Guido van Rossum (home page: http://www.python.org/~guido/)
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