Sep-05-2019, 12:41 AM
i also want to be able to output a progress indicator, such as the number of bytes copied so far. that rules out using anything that carries out the whole copy before completing. i'm thinking of implementing my copier as a generator that yields an int of the number of byte copied so far.
1 2 |
for number_of_bytes in copy_gen(fin,fout): print ( f '\r{number_of_bytes} ' ,end = '',flush = True ) |
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.