Re: [Python-Dev] [Python-checkins] cpython: Fix email post-commit review comments.
18 Apr
2012
18 Apr
'12
9:39 p.m.
On Wed, Apr 18, 2012 at 11:31 PM, brian.curtin
- if (name == NULL) + if (name == NULL) { + Py_INCREF(Py_None); name = Py_None; + }
A slightly more traditional way to write that would be: name = Py_None; Py_INCREF(name);
- if (path == NULL) + if (path == NULL) { + Py_INCREF(Py_None); path = Py_None; + }
Ditto.
Py_INCREF(msg); - PyTuple_SetItem(args, 0, msg); + PyTuple_SetItem(args, 0, NULL);//msg);
However, *this* looks a lot more suspicious... accidental commit of debugging code? (if not for spotting this last problem, I wouldn't have even mentioned the first two) Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
4384
Age (days ago)
4384
Last active (days ago)
1 comments
2 participants
participants (2)
-
Nick Coghlan
-
R. David Murray