[Delaney, Timothy] > Fair enough. I couldn't off the top of my head think of an ambiguous case, The difficulty is that a blank is a kosher flag modifier in C formats. So, e.g., 'goofy%(name) dogs' is a legitimate Python format as is, and >>> print 'goofy%(name) dogs' % {'name': 666} goofy 666ogs >>> works correctly. Why *Python* follows these goofy rules in all respects is a question we don't ask <wink>.
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