[issue36584] cython nametuple TypeError

beruhan report at bugs.python.org
Wed Apr 10 03:24:54 EDT 2019


New submission from beruhan <baiwenping00 at gmail.com>:

I have a class that inherits from NamedTuple,I have compile it to pyd file on windows use cython,when I import the class  and create a object in another py file,It throws error 'TypeError: __new__() takes 1 positional argument but 4 were given'

when I don't compile it to pyd,It can use normally,How to deal with it?

----------
components: Cross-Build
messages: 339828
nosy: Alex.Willmer, beruhan, gvanrossum, levkivskyi
priority: normal
severity: normal
status: open
title: cython nametuple TypeError
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36584>
_______________________________________


More information about the Python-bugs-list mailing list