Re: [Tutor] script in Raspberry pi python

2013-07-28 Thread Kirk Bailey
which python /usr/bin/python root@KirksPiBox1:/home/pi: ./RR.py bash: ./RR.py: /usr/bin/python^M: bad interpreter: No such file or directory root@KirksPiBox1:home/pi:_ On 7/25/2013 1:47 PM, Walter Prins wrote: Hi, On 25 July 2013 18:02, Kirk Bailey > wrote:

Re: [Tutor] True and 1 [was Re: use of the newer dict types]

2013-07-28 Thread Steven D'Aprano
On 28/07/13 18:07, Alan Gauld wrote: Comparison operators haven't depended on cmp() for a long time. You can google "rich comparison operators" for more info: https://duckduckgo.com/?q=rich%20comparison%20operators I only read the first two but one question remains: If cmp() is gone is __cmp__

Re: [Tutor] True and 1 [was Re: use of the newer dict types]

2013-07-28 Thread Alan Gauld
On 28/07/13 05:04, Steven D'Aprano wrote: On 28/07/13 09:53, Alan Gauld wrote: Its not that false propagates out, it's how Python does a comparison ... comparison operations return -1, 0 or 1. You're thinking of the cmp() builtin I was trying to use that for simplicity. (Although given Ji