MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/igvny1/python_goes_brrrr/g2x3fhf/?context=3
r/ProgrammerHumor • u/das_freak • Aug 26 '20
789 comments sorted by
View all comments
Show parent comments
2
Does * unpacking not work with non-sequence iterables?
2 u/[deleted] Aug 26 '20 Works afaik. How were you planning on using it? 2 u/murtaza64 Aug 26 '20 ''.join(it.chain(*it.product('abc', 'de')))unless from_iterable is considered more Pythonic 4 u/[deleted] Aug 26 '20 Both do essentially the same thing, but from_iterable is the lazier method. Neither really seems more pythonic imo. → More replies (1)
Works afaik. How were you planning on using it?
2 u/murtaza64 Aug 26 '20 ''.join(it.chain(*it.product('abc', 'de')))unless from_iterable is considered more Pythonic 4 u/[deleted] Aug 26 '20 Both do essentially the same thing, but from_iterable is the lazier method. Neither really seems more pythonic imo. → More replies (1)
''.join(it.chain(*it.product('abc', 'de')))
unless from_iterable is considered more Pythonic
4 u/[deleted] Aug 26 '20 Both do essentially the same thing, but from_iterable is the lazier method. Neither really seems more pythonic imo. → More replies (1)
4
Both do essentially the same thing, but from_iterable is the lazier method. Neither really seems more pythonic imo.
→ More replies (1)
2
u/murtaza64 Aug 26 '20
Does * unpacking not work with non-sequence iterables?