[Bug 837221] [NEW] "Variable referenced before initialization" using Cython 0.15 to compile extensions

Launchpad Bug Tracker 837221 at bugs.launchpad.net
Fri Nov 4 20:34:51 UTC 2011


You have been subscribed to a public bug:

I did a test build, upgrading to Cython 0.15 (the current latest). They
changed the code so that now variables are no longer implicitly
initialized. eg:

cdef foo

if foo is not None:
...

In earlier Cython (and Pyrex) objects were always initialized to None,
and other variables to a reasonable default (pointers to NULL, etc).

The one bit I investigated was spurious, the variable was being set by a
function call as an 'out' parameter. However, there were about 10
warnings, and it would be nice to be warning free.

This would apply to older versions of bzr as well, since the windows
build host uses the same version of Cython across all versions.

** Affects: bzr
     Importance: Medium
     Assignee: Denys Duchier (denys.duchier)
         Status: Fix Released

** Affects: bzr/2.4
     Importance: Medium
     Assignee: Martin Packman (gz)
         Status: Fix Released

** Affects: bzr (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: cython
-- 
"Variable referenced before initialization" using Cython 0.15 to compile extensions
https://bugs.launchpad.net/bugs/837221
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to bzr in Ubuntu.




More information about the foundations-bugs mailing list