Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90316

Re: anomaly

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: anomaly
Date 2015-05-11 01:19 +0100
References <CAMjeLr--RfnfgWc1hdOcHiEBpq3QwC7SZk-m14wM65JtpbgMLQ@mail.gmail.com> <CAMjeLr-_jd2wAJJTZRO3+p58hzD+B3UiDyrkhz-Vw-=Lopmrmg@mail.gmail.com> <CAMjeLr9v3vVHmyThb=uTNTG6XJcWmebZE35=cmFognfsKj6-Sg@mail.gmail.com> <CAMjeLr-67ZJNF3N5nWuDNGRWjOY_B41++737TxC4V6DYFH1t5Q@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.330.1431303600.12865.python-list@python.org> (permalink)

Show all headers | View raw


On 11/05/2015 01:14, Mark Rosenblitt-Janssen wrote:
> In case the example given at the start of the thread wasn't
> interesting enough, it also works in the other direction:
>
>>>> class str(int):  pass
>
>>>> str('2')
> 2  #<----- an integer!!!
>
> Mark
>

Thanks for this, I've not found anybody new for my dream team in months.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: anomaly Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-11 01:19 +0100
  Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-10 17:57 -0700
    Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-11 16:11 +1000
      Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-11 07:23 -0700
        Re: anomaly Skip Montanaro <skip.montanaro@gmail.com> - 2015-05-11 09:45 -0500
          Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-11 08:11 -0700
            Re: anomaly Skip Montanaro <skip.montanaro@gmail.com> - 2015-05-11 10:48 -0500
              Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-11 09:43 -0700
                Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-12 11:59 +1000
            Re: anomaly Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-11 17:12 +0100
          Re: anomaly Grant Edwards <invalid@invalid.invalid> - 2015-05-11 15:34 +0000
            Re: anomaly zipher <dreamingforward@gmail.com> - 2015-05-11 08:39 -0700
              Re: anomaly alex23 <wuwei23@gmail.com> - 2015-05-12 15:02 +1000
                Re: anomaly Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-12 12:56 +0100
                Re: anomaly Grant Edwards <invalid@invalid.invalid> - 2015-05-12 15:36 +0000
            Re: anomaly Emile van Sebille <emile@fenx.com> - 2015-05-11 15:36 -0700
        Re: anomaly Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-12 01:55 +1000
    Re: anomaly lorenzo.gatti@gmail.com - 2015-05-11 00:16 -0700

csiph-web