[Cython] Control Flow

Vitja Makarov vitja.makarov at gmail.com
Sat May 28 11:48:37 CEST 2011


2011/5/28 Robert Bradshaw <robertwb at math.washington.edu>:
> On Fri, May 27, 2011 at 7:27 AM, Vitja Makarov <vitja.makarov at gmail.com> wrote:
>> I've recently fixed some issues:
>>
>>  - closure variables were not tracked
>>  - scoped expression variables were initialized to None
>>
>> So, I should fix broken tests, here are some of them:
>>
>> nogil (should be fixed)
>> purecdef (upstream)
>> cfunc_directive_in_pyclass (upstream)
>> bufaccess_noassignT444 (should be removed?)
>> bufaccess (should be fixed)
>> ass2longlong (should be fixed)
>> builtinfuncs (should be fixed)
>> extcmethcall (should be fixed)
>> extcoerce (fixed or removed?)
>
> Unless you see this code being exercised elsewhere (a run test would
> be better her anyways) it's an easy fix that should be done.
>
>> e_extweakref (should be fixed)
>>

I've fixed all the tests. Now I see this strange error in py2.4:

https://sage.math.washington.edu:8091/hudson/view/cython-vitek/job/cython-vitek-tests-py24-c/lastCompletedBuild/testReport/(root)/CythonCompileTestCase/compiling__c__w_uninitialized_py3/

*****************
compiling (c) w_uninitialized_py3
=== Expected errors: ===
7:11: local variable 'i' referenced before assignment
13:11: local variable 'i' referenced before assignment


=== Got errors: ===
7:9: undeclared name not builtin: print
7:11: local variable 'i' referenced before assignment
13:11: local variable 'i' referenced before assignment	


-- 
vitja.


More information about the cython-devel mailing list