On 03/19/18 09:17, Stephen J. Turnbull wrote:
Nathaniel Smith writes:
  > Similarly, it's hard to explain why we have Path.mkdir but not
  > Path.makedirs

So what?  Let's fix that.  As you propose:

  > (maybe it should be Path.mkdir(include_parents=True)
> is fine, although that default seems a little risky vs. typos.  I know
I have confused myself with mkdir -p that way a few (though very few)
times.  Perhaps Guido would prefer Path.makedirs for this functionality.

This is already there as Path.mkdir(parents=True).

_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to