Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-21 Thread Martin v. Löwis
> Futrhermore, questions about the C API often concern CPython > implementation details and so they don't feel like they would belong in > comp.lang.python. As an experiment, it might make sense to open a > mailing list dedicated to the Python C API. It could become a useful > support forum for e

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-21 Thread Campbell Barton
The reason I asked on this in the first place is I had looked through the python source to make sure PyObject_Call had no equivalent that supported keywords, and since I needed to do this I figured it might be worth considering for Pythons API. Im sure everyone could write their own PyObject_Ca

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-21 Thread Hrvoje Nikšić
On Wed, 2007-06-20 at 19:26 +0200, "Martin v. Löwis" wrote: > As Hrvoje says: try python-list (aka comp.lang.python). If you don't > get an answer, you didn't phrase your question interestingly enough, > or nobody knows the answer, or nobody has the time to tell you. The thing with comp.lang.pytho

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-20 Thread Martin v. Löwis
Campbell Barton schrieb: > Hrvoje Nikšić wrote: >> [ Note that this discussion, except maybe for the suggestion to add a >> simpler way to call a method with keyword args, is off-topic to >> python-dev. ] > > Is there a list for this kind of discussion? Hrvoje wasn't explicit on *why* this disc

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-20 Thread Hrvoje Nikšić
On Wed, 2007-06-20 at 22:12 +1000, Campbell Barton wrote: > Hrvoje Nikšić wrote: > > [ Note that this discussion, except maybe for the suggestion to add a > > simpler way to call a method with keyword args, is off-topic to > > python-dev. ] > > Is there a list for this kind of discussion? I belie

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-20 Thread Campbell Barton
Hrvoje Nikšić wrote: > [ Note that this discussion, except maybe for the suggestion to add a > simpler way to call a method with keyword args, is off-topic to > python-dev. ] Is there a list for this kind of discussion? Iv tried asking questions on the freenode python chat room but almost very

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-20 Thread Hrvoje Nikšić
[ Note that this discussion, except maybe for the suggestion to add a simpler way to call a method with keyword args, is off-topic to python-dev. ] On Wed, 2007-06-20 at 20:17 +1000, Campbell Barton wrote: > I dont think I can use PyObject_GetAttrString because the subtype would > return a refere

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-20 Thread Campbell Barton
Hrvoje Nikšić wrote: > On Wed, 2007-06-20 at 00:21 +1000, Campbell Barton wrote: >> I want to add my own call's before and after PyLists standard functions >> but have a proplem with functons that use keywords and have no API >> equivalent. >> For example, I cant use the API's PyList_Sort because t

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-20 Thread Hrvoje Nikšić
On Wed, 2007-06-20 at 00:21 +1000, Campbell Barton wrote: > I want to add my own call's before and after PyLists standard functions > but have a proplem with functons that use keywords and have no API > equivalent. > For example, I cant use the API's PyList_Sort because that dosnt support > keyword