(Sep-30-2019, 03:24 PM)buran Wrote: (Sep-30-2019, 04:30 AM)Skaperen Wrote: by invoking a copy command or by opening the files and reading and writing all the data?
why do you continue to ignore python tools in os, shutil, pathlib?
i didn't say i was ignoring python tools. i don't yet know them all while as the same time i am trying to learn things from an internals perspective.
for example, i could copy a file by doing
subprocess.call(['cp',fn1,fn2])
. that command name might not exist everywhere. there is more than one way to do things in python. just because i know about one that is the "wrong" way to do things does not mean i am ignoring them. if i just don't know, yet, that's not ignoring.
the documentation is huge. it is not an easy straight read. and if i just don't code anything at all while reading it, i won't remember it, and i will, again, be accused of ignoring it.
can you point me to the concise document that lists the right way to do everything? it would need to be indexed by each thing to do in some order with the "answer" for each. "how to copy a file" would be one or more of these. there could be variations on copying files that might need a very different answer? and this document could be important in case there might be debates regarding the right way to do things in python.
where did
you learn all these? did you read them somewhere? did you do any coding before you knew at least a significant number of them?
before i get to the point of knowing the right way to do everything in python, i would need to find out somewhere. all google does is, in most cases, prove that there is more than one way to do it. asking seems to not get more than vague answers or accusations. reading documentation is often like trying to navigate a maze.