> > Greg> re in string > > > > Greg> should be made to work too, where re is a regular > > Greg> expression object? > > > > Then the core language would have to know about regular > > expressions, right? > > Um, yes. That kills the idea (unless you want to write this as > "string in re", which almost makes sense :-). Maybe there should be an __in__ method that gets called on the left operand if the __contains__ of the right operand doesn't know what to do? 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