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 jdemeyer
Recipients erik.bray, jdemeyer, paul.moore, sth
Date 2018-05-01.17:31:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525195899.75.0.682650639539.issue32797@psf.upfronthosting.co.za>
In-reply-to
Content
> How does CPython display the source for tracebacks in Cython modules?

Do you mean the "python" command-line program? That uses a different algorithm: to find a file FOO, it searches

[os.path.join(p, os.path.basename(FOO)) for p in sys.path]

This is completely broken because it ignores all leading path components of FOO. So it will only work if your file is in the root of your package, not in a subdirectory.
History
Date User Action Args
2018-05-01 17:31:39jdemeyersetrecipients: + jdemeyer, paul.moore, erik.bray, sth
2018-05-01 17:31:39jdemeyersetmessageid: <1525195899.75.0.682650639539.issue32797@psf.upfronthosting.co.za>
2018-05-01 17:31:39jdemeyerlinkissue32797 messages
2018-05-01 17:31:39jdemeyercreate