[issue14600] Change ImportError reference handling, naming

2012-07-13 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue14600] Change ImportError reference handling, naming

2012-07-13 Thread Éric Araujo
Éric Araujo added the comment: Yep, bf23a6c215f6 fixed it, thanks for the ping. Brian or Antoine, can you close this or was there something else? -- ___ Python tracker ___ ___

[issue14600] Change ImportError reference handling, naming

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Eric: your note appears to be fixed in the code. Can this issue be closed? -- nosy: +eli.bendersky ___ Python tracker ___ __

[issue14600] Change ImportError reference handling, naming

2012-04-18 Thread Éric Araujo
Éric Araujo added the comment: As was pointed on python-dev for the first commit: args = PyTuple_New(1); if (args == NULL) return NULL; kwargs = PyDict_New(); if (args == NULL) return NULL; It looks like the second block has a copy-paste typo and should check k

[issue14600] Change ImportError reference handling, naming

2012-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a32b9380ffd by Brian Curtin in branch 'default': Fix #14600. Correct reference handling and naming of ImportError convenience function http://hg.python.org/cpython/rev/7a32b9380ffd -- nosy: +python-dev ___

[issue14600] Change ImportError reference handling, naming

2012-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: You probably want to check args and kwargs for NULL-ness too. Otherwise, looks good. -- ___ Python tracker ___ ___

[issue14600] Change ImportError reference handling, naming

2012-04-16 Thread Brian Curtin
Brian Curtin added the comment: How about this patch? Adds NULL checking and merges PyErr_SetExcWithArgsKwargs inside PyErr_SetImportError since it's not needed by itself. Docs are also updated in line with these changes. -- Added file: http://bugs.python.org/file25248/issue14600.diff

[issue14600] Change ImportError reference handling, naming

2012-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oh, and is PyErr_SetExcWithArgsKwargs still useful? -- ___ Python tracker ___ ___ Python-bugs-list

[issue14600] Change ImportError reference handling, naming

2012-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good on the principle. Implementation is a bit weird: you don't need to check name and path for NULL-ness? -- ___ Python tracker ___ ___

[issue14600] Change ImportError reference handling, naming

2012-04-16 Thread Brian Curtin
New submission from Brian Curtin : Antoine mentioned in email that the reference handling should be changed, so here's a shot at it. I also condensed and renamed the convenience functions - I was paying too much attention to the surrounding conventions and made this harder than it had to be.