On Thu, Feb 7, 2013 at 1:04 PM, Dag Sverre Seljebotn
<d.s.seljeb...@astro.uio.no> wrote:
> On 02/07/2013 06:32 PM, Stefan Behnel wrote:
>>
>> Hi,
>>
>> I finally found the time to refactor the analysis phase.
>>
>>
>> https://github.com/cython/cython/commit/f9c385e08401ed96b5b0afb8411480037dc772b9
>>
>> The methods now return a node, which allows them to replace themselves
>> with
>> a different implementation.
>>
>> Note that the relatively large code impact of this change also means that
>> you might easily run into merge conflicts with your own local changes, so
>> here's how to fix them. The transformation pattern is pretty straight
>> forward. The "analyse_types()" method returns "self", unless it wants to
>> replace itself, i.e. this
>>
>>      def analyse_types(self, env):
>>          self.index.analyse_types(env)
>>
>> becomes
>>
>>      def analyse_types(self, env):
>>          self.index = self.index.analyse_types(env)
>>          return self
>
>
> Wohoo!

Yay!

- Robert
_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to