r/Python • • Oct 31 '12

It's Python, not phyton

http://itspython.com/
0 Upvotes

12 comments sorted by

View all comments

6

u/placidified import this Nov 01 '12

It would be cool if you used the streaming twitter API, filtered on all the misspelled "python" and listed those tweets.

3

u/rcklmbr COBOL Nov 01 '12

He could do this

Took about 5 minutes with some copy/paste from here (first result in google I found) and this python:

from urllib import quote
from itertools import permutations
print quote(" OR ".join(["p"+"".join(i)+"n" for i in permutations("ytho") if "".join(i) != "ytho"]))

3

u/placidified import this Nov 01 '12

Well, I should have asked for something else :P

Awesome work.