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

Ram Rachum ram at rachum.com
Sun Jan 5 00:27:54 CET 2014


Cool, I didn't know about that. Thanks!


On Sun, Jan 5, 2014 at 1:25 AM, Benjamin Peterson <benjamin at python.org>wrote:

> 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)?
>
>
>
>
> _______________________________________________
> 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/
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "python-ideas" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-ideas/eXtl40Ysgu8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-ideas+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140105/beda9c35/attachment-0001.html>


More information about the Python-ideas mailing list