Menu

Odd behavior

Rune
2007-03-13
2013-03-15
  • Rune

    Rune - 2007-03-13

    I've been using py-dev 1.2.9 for a while and I find it very amusing that every time I start eclipse something new either fails or starts working :) Todays edition sprung this on me:
    -> Start a new module
    -> type #! /usr/bin/env python
    -> press enter
    ->result:
    from curses.has_key import python
    #! /usr/bin/env python

    Now, I haven't touched anything since I last used eclipse. The last change I remember doing to py-dev/eclipse was to turn off "debug code completion" but that is some days ago.
    I haven't seen this "automagic" import behavior before. It could be useful though...if it left #! lines alone :)

    regards
    /rune

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2007-03-13

      Yeap... it's not right (it should have the same behavior as in strings -- just fixed in the cvs)

      Cheers,

      Fabio

      p.s. This 'automagic' behavior is part of the pydev extensions... (but it should only do that in the default context, not in strings or comments, so... the behavior for the comments has just been fixed)