Menu

#452 Report platform-specific names always as undefined

open
nobody
None
5
2010-06-03
2010-05-20
No

WindowsError is a built-in exception name in Python on Windows. Portable code needs to catch it. Sometimes one must edit such code on non-Windows platforms.

Similarly, 'sys.getwindowsversion()' is reported as an undefined variable.

These variables (and others) should not be reported as errors.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2010-06-03
    • summary: platform-specific names always reported as undefined --> Report platform-specific names always as undefined
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2010-06-03

    I'm changing that to a feature request. Note that I'm not sure how feasible it would be to actually implement it, as I'm not sure how that info could be obtained...

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.