[Cython] Pure python mode
Robert Kern
robert.kern at gmail.com
Mon Oct 6 19:27:14 CEST 2008
Robert Kern wrote:
> Robert Bradshaw wrote:
>> On Oct 6, 2008, at 9:47 AM, Robert Kern wrote:
>>
>>> Robert Bradshaw wrote:
>>>> I polished off some more of the pure python mode stuff tonight. I
>>>> just pushed it to cython-devel. Now you can do stuff like:
>>>>
>>>>> import cython # you need a single file to be in your path to use
>>>>> it in pure Python mode, provided (and installed) with Cython
>>> Hmm, does this cause a problem on systems with case-insensitive
>>> files? cython.py
>>> and Cython/ won't actually conflict on the filesystem, but I
>>> suspect the import
>>> mechanism may get confused.
>> Currently all the emulating stuff is in Cython/Shadow.py. Both Cython/
>> __init__.py and cython.py import it, thus it should work on both case-
>> sensitive and case-insensitive filesystems.
>
> Cython/Shadow.py is not what I'm concerned about. It's the presence of both
> cython.py and Cython/__init__.py. I'm wondering if the statement "import cython"
> might actually import Cython/__init__.py on some case-insensitive file system.
Oh, never mind. I see what you're saying. But then why do we need cython.py if
everything is provided by Cython/__init__.py?
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Cython-dev
mailing list