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

Benjamin Peterson benjamin at python.org
Sun Jan 5 00:25:40 CET 2014


Ram Rachum <ram.rachum at ...> writes:

> 
> 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')
=
What's wrong with pathlib.Path(os.devnull)?






More information about the Python-ideas mailing list