This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | shihai1991 |
|---|---|
| Recipients | petr.viktorin, shihai1991, vstinner |
| Date | 2021年01月16日.05:36:16 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1610775376.13.0.0303552185494.issue41618@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
>Not a function, shouldn't be used with PyType_Slot: > * tp_dict - I'd add a PyType_GetDict if there is a need to get this > * tp_mro - I'd add a PyType_GetMRO if there is a need to get this I checked some other projects which use type fileds directly. cpython doesn't expose the tp_dict and tp_mro directly in headers. I am not sure which way is more better(calling function vs using fileld directly). refs: https://gitlab.gnome.org/GNOME/pygobject/-/blob/master/gi/gimodule.c#L1168 https://github.com/biolab/orange2/blob/db40a9449cb45b507d63dcd5739b223f9cffb8e6/source/orange/cls_orange.cpp#L587 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2021年01月16日 05:36:16 | shihai1991 | set | recipients: + shihai1991, vstinner, petr.viktorin |
| 2021年01月16日 05:36:16 | shihai1991 | set | messageid: <1610775376.13.0.0303552185494.issue41618@roundup.psfhosted.org> |
| 2021年01月16日 05:36:16 | shihai1991 | link | issue41618 messages |
| 2021年01月16日 05:36:16 | shihai1991 | create | |