Hi George, While the old “let’s treat strings as paths” modules are split up like you said, pathlib can do what they do and more: https://docs.python.org/3/library/pathlib.html
It’s also prettier and easier to use, especially when using autocompletion (just type “path.is<tab>” and see what you can test the path for) Best, Philipp George Fischhof <geo...@fischhof.hu> schrieb am Do., 12. Jan. 2017 um 10:06 Uhr: > Hi There, > > OS related file operations (copy, move, delete, rename...) should be > placed into one module... > As it quite confusing that they are in two moduls (os and shutil). > > I have read that one is higher level than other, but actually to use them > I have to think which function can be found in which module. > > It is confuse for beginners, and makes the usage more complex instead of > make it more simple (as Zen of Python says ;-) ) > > An alias could good, not to cause incompatibility. > > Best regards, > George > _______________________________________________ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/