Hello again,
Attached is a patch that continues with the idea of declaring
constants using their corresponding type.
Great work on Cython, by the way. It's very useful.
Mansour
From 4f537f477d845468f36ac7b9370185124250520a Mon Sep 17 00:00:00 2001
From: Mansour Moufid
Date: Fri, 20 Jan 2012 13:
Chris Colbert, 19.01.2012 09:18:
> If it doesn't pass PyDict_CheckExact you won't be able to use it as the
> globals to eval or exec.
What makes you say that? I tried and it worked for me, all the way back to
Python 2.4:
Python 2.4.6 (#2, Jan 21 2010, 23:45:25)
[GCC 4.4.1] on
Vitja Makarov, 19.01.2012 08:49:
> 2012/1/19 Robert Bradshaw:
>> On Wed, Jan 18, 2012 at 12:30 PM, Vitja Makarov wrote:
>>> I tried to optimize module lookups (__pyx_m) by caching internal PyDict
>>> state.
>>>
>>> In this example bar() is 1.6 time faster (500us against 842us):
>>>
>>> C = 123
>>>
On Fri, Jan 20, 2012 at 11:58 PM, Stefan Behnel wrote:
> Chris Colbert, 19.01.2012 09:18:
> > If it doesn't pass PyDict_CheckExact you won't be able to use it as the
> > globals to eval or exec.
>
> What makes you say that? I tried and it worked for me, all the way back to
> Python 2.4:
>
>
Ah, y
On Fri, Jan 20, 2012 at 10:00 PM, Stefan Behnel wrote:
> Vitja Makarov, 19.01.2012 08:49:
>> 2012/1/19 Robert Bradshaw:
>>> On Wed, Jan 18, 2012 at 12:30 PM, Vitja Makarov wrote:
I tried to optimize module lookups (__pyx_m) by caching internal PyDict
state.
In this example bar