Jul-05-2018, 05:29 AM
i am writing a function that may be given a pathlib Path or PurePath object, or a string, or bytes, or bytearray. the first two are what concerns me. how can i test what it is that the function is getting when called? will a test for Path be True if what i got was really a PurePath? or the reverse? or are they distinctive enough for isinstance() to tell them apart? i don't know,yet, if i do need to tell them apart. this function will be a file tree recursion generator yield Path objects of all types found in the tree. i have already done such a function that yields strings. i want to make this more useable.
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.