"Delaney, Timothy (Tim)" <tdelaney at avaya.com> wrote in message > before, sep, after = s.partition('?') > ('http://www.python.org', '', '') > > before, sep, after = s.rpartition('?') > ('', '', 'http://www.python.org') I can also see this as left, sep, right, with the sep not found case putting all in left or right depending on whether one scanned to the right or left. In other words, when the scanner runs out of chars to scan, everything is 'behind' the scan, where 'behind' depends on the direction of scanning. That seems nicely symmetric. Terry J. Reedy
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