MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/igvny1/python_goes_brrrr/g2wkzfc/?context=3
r/ProgrammerHumor • u/das_freak • Aug 26 '20
789 comments sorted by
View all comments
Show parent comments
425
Remove the white space and we have a deal. :)
164 u/[deleted] Aug 26 '20 edited Aug 26 '20 ''.join(itertools.product('abc', 'de')) If you want me to fix it submit a ticket, thanks.edit: Ticket assigned, standby.import itertools as it ''.join(it.chain.from_iterable(it.product('abc', 'de'))) 4 u/deeplearning666 Aug 26 '20 How about a patch?< "".join(itertools.product("abc", "de")) --- > "".join(map(lambda t: t[1] + t[0], itertools.product("de", "abc"))) 3 u/[deleted] Aug 26 '20 Alternate patch submitted for your review.
164
''.join(itertools.product('abc', 'de')) If you want me to fix it submit a ticket, thanks.
edit: Ticket assigned, standby.
import itertools as it ''.join(it.chain.from_iterable(it.product('abc', 'de')))
4 u/deeplearning666 Aug 26 '20 How about a patch?< "".join(itertools.product("abc", "de")) --- > "".join(map(lambda t: t[1] + t[0], itertools.product("de", "abc"))) 3 u/[deleted] Aug 26 '20 Alternate patch submitted for your review.
4
How about a patch?
< "".join(itertools.product("abc", "de")) --- > "".join(map(lambda t: t[1] + t[0], itertools.product("de", "abc")))
3 u/[deleted] Aug 26 '20 Alternate patch submitted for your review.
3
Alternate patch submitted for your review.
425
u/itoshkov Aug 26 '20
Remove the white space and we have a deal. :)