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 scoder
Recipients Arfrever, brett.cannon, scoder
Date 2012-08-12.04:35:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344746133.72.0.793481565829.issue15623@psf.upfronthosting.co.za>
In-reply-to
Content
We are continuously testing Cython against all CPython versions starting from 2.4, so I can assure you that it's still working for all other versions. Here's our CI server:

https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests/618/

I just tried it and it definitely works for me in 3.2 and prints the right module names.

I attached the unfolded test directory. The only changes I applied were to change the setup.py script so that you can build it without Cython, and to replace the absolute paths stored in the C files by relative paths (which happily continue to work). Just run "python3.3 setup.py build_ext -i" and then "PYTHON=python3.3 ./test.sh".

Note that the output for "FILE" will be the original Python source file. Cython sets this at init time because CPython fails to provide the correct import file path at that point. The value is actually written down verbatimly in the C sources.

It prints sys.modules at module init time, so you can see that it contains "my_test_package" in Py<3.3 but does not contain it in Py3.3.

The code for the relative import in __init__.c starts in line 1097. It actually calls "__import__()" internally.
History
Date User Action Args
2012-08-12 04:35:33scodersetrecipients: + scoder, brett.cannon, Arfrever
2012-08-12 04:35:33scodersetmessageid: <1344746133.72.0.793481565829.issue15623@psf.upfronthosting.co.za>
2012-08-12 04:35:33scoderlinkissue15623 messages
2012-08-12 04:35:32scodercreate