[Python-mode] [PATCH] Improved pycomplete

2012-07-01 Thread Urs Fleisch
Hi, Here is a little patch, which fixes the following problems in pycomplete: py-find-global-imports(): Support dot in "from ... import" statements, e.g. "from PyQt4.QtGui import QMainWindow". get_all_completions(): Return an empty list when no symbol is found (e.g. when trying to complete "[].a

Re: [Python-mode] [PATCH] Improved pycomplete

2012-07-01 Thread Andreas Röhler
Am 01.07.2012 15:04, schrieb Urs Fleisch: Hi, Here is a little patch, which fixes the following problems in pycomplete: py-find-global-imports(): Support dot in "from ... import" statements, e.g. "from PyQt4.QtGui import QMainWindow". get_all_completions(): Return an empty list when no symbol

Re: [Python-mode] [PATCH] Improved pycomplete

2012-07-01 Thread Urs Fleisch
Hi, > If you might open a ticket at > > https://bugs.launchpad.net/python-mode > > for it, the patch attached, that would help still, as it's easier to refer. OK, I have opened a bug: https://bugs.launchpad.net/python-mode/+bug/1019791. I have another little patch, not related to a bug, rath

Re: [Python-mode] [PATCH] Improved pycomplete

2012-07-01 Thread Andreas Röhler
Am 01.07.2012 16:19, schrieb Urs Fleisch: Hi, If you might open a ticket at https://bugs.launchpad.net/python-mode for it, the patch attached, that would help still, as it's easier to refer. OK, I have opened a bug: https://bugs.launchpad.net/python-mode/+bug/1019791. I have another lit