3 ms·
I originally implemented it that way and had that exact same issue (it's one of the revisions on github). Similarly, {/} would also be a problem.
by philipbjorge 14y ago
I originally implemented it that way and had that exact same issue (it's one of the revisions on github). Similarly, {/} would also be a problem.
- digisign 14y agoHow about {,} or s{} ?
- philipbjorge 14y agoI didn't think to do {,} which I like. s{} looks weird to me, but I couldn't tell you why.
- digisign 14y agoThe s{} alternatve is based on the strange r'' or u'' syntax i've gotten used to.
- mkhattab 14y agoI think {,} is intuitive because it reminds me of syntax for one-element tuples, e.g. (1,) -- but it may make code harder to read, which is not Pythonic.