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


Groups > comp.lang.python > #107782

Re: Dunder docs again (was Pythonic style)

From MRAB <python@mrabarnett.plus.com>
Newsgroups comp.lang.python
Subject Re: Dunder docs again (was Pythonic style)
Date 2016-04-28 13:02 +0100
Message-ID <mailman.184.1461844978.32212.python-list@python.org> (permalink)
References (8 earlier) <c7ca7770-7dfa-463c-b776-cab472d9f79e@googlegroups.com> <540fc958-52d6-6049-75f2-5ee42657688e@mrabarnett.plus.com> <mailman.183.1461842191.32212.python-list@python.org> <e74de2de-1e5a-448d-9c5c-3852c8a7607a@googlegroups.com> <bdb727b6-9363-a9cf-9c9e-5581533ac9cb@mrabarnett.plus.com>

Show all headers | View raw


On 2016-04-28 12:45, Rustom Mody wrote:
> On Thursday, April 28, 2016 at 4:46:43 PM UTC+5:30, MRAB wrote:
>> On 2016-04-28 06:16, Rustom Mody wrote:
>> > On Thursday, April 28, 2016 at 9:26:21 AM UTC+5:30, Chris Angelico wrote:
>> >> My rule of thumb is: Dunders are for defining, not for calling. It's
>> >> not a hard-and-fast rule, but it'll get you through 99%+ of
>> >> situations.
>> >
>> > Neat and clever.
>> > Should get in the docs somewhere
>> >
>> Is it worthy of being in the Zen of Python?
>
> :-)
> Thats more than I intended... But heck why not?!
> I find that dunder methods are poorly documented, especially when compared to
> their 'pythonic-ness'.
> Ive spoken of this on and off, eg https://mail.python.org/pipermail/python-list/2015-May/691329.html
>
'pythonic-ness'? Surely it's 'pythonicity'! :-)

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


Thread

Re: Pythonic style Chris Angelico <rosuav@gmail.com> - 2016-04-28 13:56 +1000
  Re: Pythonic style Rustom Mody <rustompmody@gmail.com> - 2016-04-27 22:16 -0700
    Re: Pythonic style MRAB <python@mrabarnett.plus.com> - 2016-04-28 12:16 +0100
      Dunder docs again (was Pythonic style) Rustom Mody <rustompmody@gmail.com> - 2016-04-28 04:45 -0700
        Re: Dunder docs again (was Pythonic style) MRAB <python@mrabarnett.plus.com> - 2016-04-28 13:02 +0100
          Re: Dunder docs again (was Pythonic style) Marko Rauhamaa <marko@pacujo.net> - 2016-04-28 15:25 +0300
            Re: Dunder docs again (was Pythonic style) MRAB <python@mrabarnett.plus.com> - 2016-04-28 14:22 +0100
      Re: Pythonic style Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-04-29 12:48 +1200
        Re: Pythonic style Chris Angelico <rosuav@gmail.com> - 2016-04-29 10:57 +1000
          Re: Pythonic style Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-04-29 18:12 +1200
            Re: Pythonic style Chris Angelico <rosuav@gmail.com> - 2016-04-29 16:45 +1000
        Re: Pythonic style Steven D'Aprano <steve@pearwood.info> - 2016-04-29 19:59 +1000
    Re: Pythonic style Random832 <random832@fastmail.com> - 2016-04-28 09:31 -0400

csiph-web