2 ms·
It would also be nice to see some interface-based type assertions. For instance, def comma_sep(items): return ','.join(map(str, items)) requires t
by piinbinary 12y ago
It would also be nice to see some interface-based type assertions. For instance,
def comma_sep(items):
return ','.join(map(str, items))
requires two things:
- items be iterable
- each item have a __str__ method