Re: pydev code completion problem

2007-10-14 Thread Lukasz Mierzejewski
> He is right. What would you expect from this piece of code: > > > foo = random.choose([A(), B(), C(), ..., Z()]) Thank you all for dispelling my stupid doubts! > What PyDev does is to implement some heuristics that can guess easy > cases - as you saw for yourself. But there is a limit to wha

Re: pydev code completion problem

2007-10-14 Thread Lukasz Mierzejewski
> But maybe someone use Komodo IDE or Wing IDE and can tell how they handle > situations like this? How works code completion in those IDE's? I've downloaded and checked both of them (both have Linux version which is nice thing). Both did worse job with code completion then PyDev with my simple ex

Re: pydev code completion problem

2007-10-14 Thread Lukasz Mierzejewski
On Sun, 14 Oct 2007 20:36:07 +, cyberco wrote: > Confirmed (with exactly the same software). > > Please discuss this issue at the PyDev discussion forum: > http://sourceforge.net/forum/forum.php?forum_id=293649 Thank you for replay, but I'm still not sure what to think about it... Marc 'Bla

Re: pydev code completion problem

2007-10-14 Thread Lukasz Mierzejewski
> I can confirm and it's something I would expect. It is obvious to *you* > that there is a `One` object in that list, but it would get very Thank you for confirmation and your time! > quickly very complicated for an IDE to keep track of objects if not > even impossible. I guess that you are ri

pydev code completion problem

2007-10-14 Thread Lukasz Mierzejewski
Hi, I need help with pydev code completion... Let's assume that we have something like this: class One: def fun(self): return 1 class Two: li = [] li.append(One()) one = li[0] print one.fun() one2 = li.pop() print one2.fun()