[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Georg Brandl
Georg Brandl added the comment: Sure, I wasn't concerned with compilation, only saving lines of code. But I agree that the buffer way sounds much more promising. Just seemed odd that METH_O was clean and METH_NOARGS less so :) -- ___ Python tracker

[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Larry Hastings
Larry Hastings added the comment: (Actually a self converter would be fine too. Those are only allowed to cast.) I'm not doing this; here's why. I want the call signature to the impl function to be the *idealized* signature of that function. And METH_NOARGS passes in a dumb stupid second ar

[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> larry nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seconded. But only if there are no self or result converters. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue20225] Argument Clinic: simplify METH_NOARGS generated code

2014-01-12 Thread Georg Brandl
New submission from Georg Brandl: For METH_NOARGS, you can get rid of the separate _impl function. This makes the generated code much smaller. -- messages: 207943 nosy: georg.brandl priority: normal severity: normal status: open title: Argument Clinic: simplify METH_NOARGS generated co