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

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


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: bzr (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/837221

Title:
  "Variable referenced before initialization" using Cython 0.15 to
  compile extensions

Status in Bazaar Version Control System:
  Fix Released
Status in Bazaar 2.4 series:
  Fix Released
Status in “bzr” package in Ubuntu:
  New
Status in “bzr” source package in Oneiric:
  Fix Committed

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/837221/+subscriptions




More information about the foundations-bugs mailing list