When Cython is run with the --embed-position option (or when Cython.Compiler.Options.embed_pos_in_docstring is true), Cython writes headers in the docstring like

File: sage/rings/integer.pyx (starting at line 358)

The filenames that Cython uses here are always made relative to the current working directory. This is annoying for tools which extract this information for introspection. It would be more useful to just write the path as-is instead of making it relative.

It would be easy to change this behaviour in Cython but I was wondering if there is a specific reason for these relative paths.
_______________________________________________
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel

Reply via email to