Feb-25-2022, 02:31 AM
the code i was going to use this for gets an object passed via a method argument. it tests to see if it is an iterator using
isinstance(the_arg,collections.abc.Iterator)
then it would be nice to know if it is empty. but this is not essential to know. it could just handle things better, i'll still do the if not
test in case i's an empty sequence.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.