Hacker News new | ask | show | jobs
by dalke 3592 days ago
Many of the comments concern bpython. I believe may more people work with IPython/Jupyter for this sort of thing. I wonder if this would have improved things for the author.

> I have to know empty collections in python are false: ... That fits poorly Zen of Python:

I disagree. I found that code to be completely Pythonic.

> In Julia you can write e.g.: joinpath(homedir(), "bar", "foo") ; But there is no such natural extension in python

It's in Python 3.5:

  >>> from pathlib import Path
  >>> Path.home()
  PosixPath('/Users/dalke')
  >>> Path.home().joinpath("bar", "foo")
  PosixPath('/Users/dalke/bar/foo')
Yes, I quite dislike the location of "shutil.rmtree".

The author writes "I can run call command but that will not print result to console." The subprocess.call() prints its results to my console, so I don't know what is going on.