Message285400
| Author |
serhiy.storchaka |
| Recipients |
methane, serhiy.storchaka, vstinner |
| Date |
2017年01月13日.14:47:35 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1484318855.58.0.766914460402.issue29259@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
* If a type only defines tp_fastcall: tp_fastcall is always use (tp_call uses the wrapper)
Is tp_call set to the wrapper rather then inheriting? What if tp_call is defined in a superclass?
> * If a type defines tp_call and tp_fastcall, PyObject_Call() uses tp_call whereas _PyObject_FastCallDict() uses tp_fastcall.
I would consider this as a bug. It would be weird if different ways of calling cause executing different code.
What about dynamically changed Python types? What if you set or delete the __call__ attribute of Python class? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年01月13日 14:47:35 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, methane |
| 2017年01月13日 14:47:35 | serhiy.storchaka | set | messageid: <1484318855.58.0.766914460402.issue29259@psf.upfronthosting.co.za> |
| 2017年01月13日 14:47:35 | serhiy.storchaka | link | issue29259 messages |
| 2017年01月13日 14:47:35 | serhiy.storchaka | create |
|