On Sep 11, 9:34 pm, "Diez B. Roggisch" wrote:
> DarkBlue wrote:
> > Here is some code from a pyqt4.5.4 application on python 2.6
>
> > def findData(self):
>
> > self.ui.label.setText('Processing... ')
>
> > # here we do something which takes a few seconds
> > self.refreshGrid()
DarkBlue wrote:
> Here is some code from a pyqt4.5.4 application on python 2.6
>
> def findData(self):
>
> self.ui.label.setText('Processing... ')
>
> # here we do something which takes a few seconds
> self.refreshGrid()
>
>
>
> The problem is that the text in the self.ui.
Ah, no wonder. I test with p=[5,4].
thanks. so basically, I still need to expand it first given this
behaviour.
Robert Kern wrote:
> [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I am wondering how this is evaluated.
> >
> > a=(x for x in [1,2,3,4])
> > p=[4,5]
> >
> > c=[x for x in p if x in list(a)]
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am wondering how this is evaluated.
>
> a=(x for x in [1,2,3,4])
> p=[4,5]
>
> c=[x for x in p if x in list(a)]
>
> c is []
>
> but if I expand a first, like a = list(a)
>
> c is [4]
>
> So it seems that the "if" part don't get expanded ?
Well, for every elemen
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am wondering how this is evaluated.
>
> a=(x for x in [1,2,3,4])
> p=[4,5]
>
> c=[x for x in p if x in list(a)]
>
> c is []
No it isn't.
In [1]: a=(x for x in [1,2,3,4])
In [2]: p=[4,5]
In [3]: c=[x for x in p if x in list(a)]
In [4]: c
Out[4]: [4]
I'm