4 Jan
2014
4 Jan
'14
11:27 p.m.
There is already os.path.devnull. Victor Le 4 janv. 2014 23:48, "Ram Rachum" <ram.rachum@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@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/