Activity log for bug #245514

Date Who What changed Old value New value Message
2008-07-04 13:15:17 Eleanor Berger bug added bug
2008-07-04 13:28:29 Francis J. Lacoste launchpad: status New Incomplete
2008-07-04 13:47:19 Eleanor Berger description Occasionally we want to import a module, but only if the import of another module fails, using the same name. For example, this is a popular idiom when importing a module which has a native code version which is only available on some tergets: try: from themodule import TheClass except: from cThemodule import cTheClass as TheClass Currently, lint warns about such cases, but it should be possible to recognize that this is valid, and not warn. Occasionally we want to import a module, but only if the import of another module fails, using the same name. For example, this is a popular idiom when importing a module which has a native code version which is only available on some tergets: try: from themodule import TheClass except: from cThemodule import cTheClass as TheClass Currently, PyFlakes warns about such cases, but it should be possible to recognize that this is valid, and not warn. We could either try to fix PyFlakes, or figure out in what cases it's safe to ignore the warning.
2008-07-04 13:47:19 Eleanor Berger title lint should recognize (and not warn about) try...except imports of modules make lint should recognize (and not warn about) try...except imports of modules
2008-07-04 13:49:25 Eleanor Berger launchpad: status Incomplete New
2008-07-04 14:07:02 Francis J. Lacoste launchpad: status New Confirmed
2008-07-04 14:07:02 Francis J. Lacoste launchpad: importance Undecided Medium
2010-07-05 22:07:08 Curtis Hovey visibility private public
2010-07-06 15:59:47 Curtis Hovey launchpad-foundations: assignee Curtis Hovey (sinzui)
2010-07-06 15:59:53 Curtis Hovey launchpad-foundations: milestone 10.08
2010-07-06 15:59:56 Curtis Hovey launchpad-foundations: status Triaged In Progress
2010-07-06 16:00:08 Curtis Hovey launchpad-foundations: importance Medium High
2010-07-08 02:56:11 Reinhard Tartler removed subscriber Reinhard Tartler
2010-07-08 18:04:12 Curtis Hovey launchpad-foundations: status In Progress Fix Released
2010-07-11 15:53:33 Curtis Hovey tags qa-ok
2012-08-09 23:40:25 William Grant removed subscriber Launchpad Security