Re: [Python-Dev] [Python-checkins] cpython: Fix #13327. Remove the need for an explicit None as the second argument to

2011-11-06 Thread Benjamin Peterson
2011/11/6 brian.curtin python-check...@python.org: - -    if (!PyArg_ParseTuple(args, OO:utime, +    PyObject* arg = NULL; You could set arg = Py_None here. + +    if (!PyArg_ParseTuple(args, O|O:utime,                           PyUnicode_FSConverter, opath, arg))         return NULL;    

Re: [Python-Dev] [Python-checkins] cpython: Fix #13327. Remove the need for an explicit None as the second argument to

2011-11-06 Thread Brian Curtin
On Sun, Nov 6, 2011 at 13:46, Benjamin Peterson benja...@python.org wrote: 2011/11/6 brian.curtin python-check...@python.org: - -    if (!PyArg_ParseTuple(args, OO:utime, +    PyObject* arg = NULL; You could set arg = Py_None here. + +    if (!PyArg_ParseTuple(args, O|O:utime,