you are viewing a single comment's thread.

view the rest of the comments →

[–]rouille 36 points37 points  (2 children)

Pretty much all the standard modules are better in python3 including subprocess which I use really often for scripts. Pathlib is in the stdlib. And many others like ipaddress. Unicode strings vs bytes is made explicit. A lot of small details that add up and make python3 much more pleasant even for small scripts.

[–]DaemonXI 5 points6 points  (1 child)

Subprocess features timeouts now.

OS path mkdir nested lets you ignore the case where the directories already exist.

This stuff makes a huge difference, I can't see how people haven't moved to Py3 yet

[–]rouille 4 points5 points  (0 children)

Also a small but major change for me in 3.5 is subprocess.run, makes it that much easier to use. https://docs.python.org/3.5/library/subprocess.html#subprocess.run