homepage

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 JunyiXie
Recipients JunyiXie, shihai1991
Date 2021年11月10日.03:33:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636515192.67.0.193691596779.issue44532@roundup.psfhosted.org>
In-reply-to
Content
Include/internal/pycore_structseq.h:
 10 
 11 
 12: PyAPI_FUNC(int) _PyStructSequence_InitType(
 13 PyTypeObject *type,
 14 PyStructSequence_Desc *desc,
Modules/_cursesmodule.c:
 4794 /* ncurses_version */
 4795 if (NcursesVersionType.tp_name == NULL) {
 4796: if (_PyStructSequence_InitType(&NcursesVersionType,
 4797 &ncurses_version_desc,
 4798 Py_TPFLAGS_DISALLOW_INSTANTIATION) < 0) {
Objects/structseq.c:
 463 
 464 int
 465: _PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc *desc,
 466 unsigned long tp_flags)
 467 {
 ...
 527 PyStructSequence_InitType2(PyTypeObject *type, PyStructSequence_Desc *desc)
 528 {
 529: return _PyStructSequence_InitType(type, desc, 0);
 530 }
 531 
Python/sysmodule.c:
 2813 /* version_info */
 2814 if (VersionInfoType.tp_name == NULL) {
 2815: if (_PyStructSequence_InitType(&VersionInfoType,
 2816 &version_info_desc,
 2817 Py_TPFLAGS_DISALLOW_INSTANTIATION) < 0) {
 ....
 2827 // sys.flags: updated in-place later by _PySys_UpdateConfig()
 2828 if (FlagsType.tp_name == 0) {
 2829: if (_PyStructSequence_InitType(&FlagsType, &flags_desc,
 2830 Py_TPFLAGS_DISALLOW_INSTANTIATION) < 0) {
 2831 goto type_init_failed;
 ....
 2837 /* getwindowsversion */
 2838 if (WindowsVersionType.tp_name == 0) {
 2839: if (_PyStructSequence_InitType(&WindowsVersionType,
 2840 &windows_version_desc,
 2841 Py_TPFLAGS_DISALLOW_INSTANTIATION) < 0) {
History
Date User Action Args
2021年11月10日 03:33:12JunyiXiesetrecipients: + JunyiXie, shihai1991
2021年11月10日 03:33:12JunyiXiesetmessageid: <1636515192.67.0.193691596779.issue44532@roundup.psfhosted.org>
2021年11月10日 03:33:12JunyiXielinkissue44532 messages
2021年11月10日 03:33:12JunyiXiecreate

AltStyle によって変換されたページ (->オリジナル) /