Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1292 Wrong "Undefined variable from import" analysis error.

closed-fixed
Editor (491)
5
2011-02-24
2011-02-24
No

import os
os.environ.__class__

Code analysis complaints for "Undefined variable from import: __class__" .

Python 2.7.1, Windows (that might be important because os.environ is a weird old-style class that seems to be loaded from platform-specific modules).

PyDev version 1.6.5.2011022320 (current nightly build).

Discussion

  • Fabio Zadrozny
    Fabio Zadrozny
    2011-02-24

    This happens because dir(os.environ) doesn't bring __class__.

    Fixed for 1.6.6.

    Git: 6f847be 1298561364 2011-02-24

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2011-02-24

    • status: open --> closed-fixed