Loading ...
Sorry, an error occurred while loading the content.

[PATCH] pythoncomplete

Expand Messages
  • Roberto Miura Honji
    I think that it s a bug. from b import classParent class classChild(classParent): def __init__(self): print blabla def anyfunction(self): print anyfunction
    Message 1 of 1 , Mar 11, 2009
    • 0 Attachment
      I think that it's a bug.

      from b import classParent
      class classChild(classParent):
          def __init__(self):
              print 'blabla'
          def anyfunction(self):
              print 'anyfunction'

      object = classChild()
      object.<C-x><C-o>

      it's not working, because the line 'from b import classParent' appears after
      class Child's declaration when the src (variable of pythoncomplete.vim) is created.

      This patch changes this.
      The line 'from b import classParent' will appear together with all imports (in other words, before all class' declaration)


      --
      ----------------------------------------------
      Roberto Miura Honji
      LAS - Laboratório de Administração e Segurança de Sistemas
      Engenharia de Computação - 2006
      Instituto de Computação - UNICAMP

      email: miurahonji@... (principal)
      email: ra064201@...
      msn:   miurahonji@...
      -------------------------------------------

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---

    Your message has been successfully submitted and would be delivered to recipients shortly.