Tim Chase wrote:
Stripping off the exec() call makes it pretty transparent that you're
attempting (successfully on some platforms) to set the value of "4"
to "5".
But you have to do that in *another* Python session, because
the first one is broken in interesing ways, e.g.
>>> (lambda *fs: redu
On Tue, Jun 3, 2014 at 1:47 AM, Ian Kelly wrote:
> On Mon, Jun 2, 2014 at 9:38 AM, Steven D'Aprano
> wrote:
>> On Mon, 02 Jun 2014 23:23:53 +1000, Chris Angelico wrote:
>>
>>> On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase
>>> wrote:
Stripping off the exec() call makes it pretty transparent tha
On Tue, Jun 3, 2014 at 1:38 AM, Steven D'Aprano
wrote:
> On Mon, 02 Jun 2014 23:23:53 +1000, Chris Angelico wrote:
>
>> On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase
>> wrote:
>>> Stripping off the exec() call makes it pretty transparent that you're
>>> attempting (successfully on some platforms) to
On Mon, Jun 2, 2014 at 9:38 AM, Steven D'Aprano
wrote:
> On Mon, 02 Jun 2014 23:23:53 +1000, Chris Angelico wrote:
>
>> On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase
>> wrote:
>>> Stripping off the exec() call makes it pretty transparent that you're
>>> attempting (successfully on some platforms) to
On Mon, 02 Jun 2014 23:23:53 +1000, Chris Angelico wrote:
> On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase
> wrote:
>> Stripping off the exec() call makes it pretty transparent that you're
>> attempting (successfully on some platforms) to set the value of "4" to
>> "5". But a cute hack.
>
> And not
On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase
wrote:
> Stripping off the exec() call makes it pretty transparent that you're
> attempting (successfully on some platforms) to set the value of "4"
> to "5". But a cute hack.
And not on Windows inside IDLE, where attempting to use 4 results in a
=
On 2014-06-02 12:11, Steven D'Aprano wrote:
> Kids, don't try this at home!
>
> In Python 2.7, run this:
>
> exec((lambda *fs: reduce(lambda f, g: lambda x: f(g(x)),
> fs))(*([lambda s:
> s[1::2]+s[-2::-2]]*54))('motcye;cye._n8fo_drs(d4+)vle=5 ua.8)
> (isedamr.ticspt spt rpi'))
>
>
> Then run
Kids, don't try this at home!
In Python 2.7, run this:
exec((lambda *fs: reduce(lambda f, g: lambda x: f(g(x)), fs))(*([lambda
s: s[1::2]+s[-2::-2]]*54))('motcye;cye._n8fo_drs(d4+)vle=5 ua.8)
(isedamr.ticspt spt rpi'))
Then run these:
10 - 6 == 10 - 5
4 + 1 == 7 - 1
2*2 == 10//2
A shiny