[Python-checkins] r83078 - in python/branches/py3k: Doc/library/os.rst Lib/test/test_posix.py Misc/NEWS Modules/posixmodule.c

Benjamin Peterson benjamin at python.org
Fri Jul 23 14:25:36 CEST 2010


2010/7/23 martin.v.loewis <python-checkins at python.org>:
> Author: martin.v.loewis
> Date: Fri Jul 23 14:16:41 2010
> New Revision: 83078
>
> Log:
> Issue #6095: Make directory argument to os.listdir optional.
> Patch by Virgil Dupras.
>
>
> Modified:
>   python/branches/py3k/Doc/library/os.rst
>   python/branches/py3k/Lib/test/test_posix.py
>   python/branches/py3k/Misc/NEWS
>   python/branches/py3k/Modules/posixmodule.c
>
> Modified: python/branches/py3k/Doc/library/os.rst
> ==============================================================================
> --- python/branches/py3k/Doc/library/os.rst     (original)
> +++ python/branches/py3k/Doc/library/os.rst     Fri Jul 23 14:16:41 2010
> @@ -1049,10 +1049,10 @@
>    Availability: Unix.
>
>
> -.. function:: listdir(path)
> +.. function:: listdir([path])

You can use the new default argument convention in the docs:
listdir(path=curdir)


-- 
Regards,
Benjamin


More information about the Python-checkins mailing list