[Python-ideas] Introduce constant: `pathlib.null_path`

Victor Stinner victor.stinner at gmail.com
Sun Jan 5 00:27:25 CET 2014


There is already os.path.devnull.

Victor
Le 4 janv. 2014 23:48, "Ram Rachum" <ram.rachum at gmail.com> a écrit :

> What do you think about introducing this constant in the `pathlib` module:
>
>    null_path = pathlib.Path('\\Device\\Null') if os.name = 'nt' else
> pathlib.Path('/dev/null')
>
>
> Thanks,
> Ram.
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140105/c4a5c7ef/attachment.html>


More information about the Python-ideas mailing list