CLASS.__module__ vs FUNCTION.__module__

17 views
Skip to first unread message

Sébastien Boisgérault

unread,
Feb 26, 2018, 4:06:14 PM2/26/18
to cython-users

Hello,

If I define a class C and a function f in the root of a package PACKAGE (in the __init__.pyx file),
the value of f.__module__ is "PACKAGE" but  C.__module__ is equal to "PACKAGE.__init__"
which is not what I was expecting.

Am I supposed to organize the files differently? Is is a bug?

Cheers,

SB

Stefan Behnel

unread,
Apr 1, 2018, 11:27:09 AM4/1/18
to Cython-users
Seems like a bug. Could you open a ticket on github please?

A PR that fixes it would also be nice. :)

Stefan
Reply all
Reply to author
Forward
0 new messages