consider the following code. In [1] : a = range(10) In [2] : all(True if [i for i in a[:-2]] < [j for j in a[1:-1]] else False)
When I run it with the internal Ipython console it returns True: Out [2] : True When I run with an Ipython console outside spyder it returns the following error: In [2]: all(True if [i for i in a[:-2]] < [j for j in a[1:-1]] else False) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /home/panos/Programming/Python/Various/<ipython console> in <module>() TypeError: 'bool' object is not iterable Is this normal? -- You received this message because you are subscribed to the Google Groups "spyder" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
