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

Ram Rachum ram.rachum at gmail.com
Sat Jan 4 23:05:27 CET 2014


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140104/12fd088d/attachment.html>


More information about the Python-ideas mailing list