Hacker News new | past | comments | ask | show | jobs | submit login

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.



How about {,} or s{} ?


I 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.


I didn't think to do {,} which I like. s{} looks weird to me, but I couldn't tell you why.


The s{} alternatve is based on the strange r'' or u'' syntax i've gotten used to.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: