Am 03.10.12 20:05, schrieb Chris Barker:
> On Wed, Oct 3, 2012 at 10:55 AM, Robert Bradshaw <
robe...@gmail.com> wrote:
>> On Wed, Oct 3, 2012 at 10:50 AM, Chris Barker <
chris....@noaa.gov> wrote:
>
>>> I find this all a bit confusing -- but maybe __version__ should be
>>> defined in Cython.Shadow.
>>
>> Yeah, this is a bit confusing. +1 to adding it to Shadow (which could
>> be resolved at compile time as well).
Yes, I think it makes sense to have it in Shadow.
>> Also, you could try importing Cython instead of cython.
>
> yup -- that gets me the version, but shy does the cython.py wierd
> import thing exist anyway? Presumably there is a reason.
It's two things: the main program entry point and the "magic" namespace
that holds all the nice Cython language goodies (that's the part in
Shadow.py).
> Also, I think it's a bad a idea to have a package module with an
> upper-case name (particularly one mirroring a lower-case name) --
> there are case-insensitive file systems out there (what does this do
> on Windows?)
Nothing special on Windows here. The package name is "Cython" and the
name of the module file is "cython.py". Module names are always case
sensitive in Python. The "Cython" package is an entirely different thing
than the "cython" namespace module.
Stefan