Apr-05-2019, 04:25 AM
this one is not as hard as my last one. it is more about getting all the details right so it works correctly and gracefully in all cases. it processes a file. if names are given it first checks for any files it cannot process such as because the file is missing, lack of permission, or not enough space to write the result. it should abort for any error before processing any file, including the case of a duplicate file name. it MUST handle files with UTF-8 characters correctly (not mangling them and counting them correctly). it MUST work in Python3 because it MUST work when/where there is no Python2. if it also works in Python2, that's OK. if no file names are given, it reads stdin and writes the result to stdout.
the processing to do is untabify the file contents. it can support options to specify unusual tabs.
an advanced version will recognize tabified Python code and normalize it to accepted standards, eliminating the tabs and using normal indentation.
the processing to do is untabify the file contents. it can support options to specify unusual tabs.
an advanced version will recognize tabified Python code and normalize it to accepted standards, eliminating the tabs and using normal indentation.
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.