title: Difference between slash operator and comma separator in pathlib Path
body: <p>I <a href="https://docs.python.org/3/library/pathlib.html#operators" rel="noreferrer">read</a> that in <code>pathlib</code> we can create a child path by using <code>/</code> between two paths, where a comma would also work. However, I can't find out if there is a difference between the two cases. In the following example, the output is the same:</p>
  
  <pre><code>from pathlib import Path
  
  p = Path('/hello', 'world')
  s = Path(p, 'how', 'are', 'you')
  ns = Path(p / 'how', 'are', 'you')
  
  print(s)
  print(ns)
  </code></pre>
  
  <p>But considering that <code>pathlib</code> is heavily object-oriented, I guess there might be something different behind the scenes. Is there a difference between using <code>/</code> in Path in contrast with a comma?</p>