On Mon, Jan 4, 2016 at 4:49 AM, Nick Coghlan wrote:
> When some of the default settings for the pep8 utility became a
> problem, I was able to talk to the developers and persuade them to
> tune their defaults to be more in line with the actual PEP text, and
> keep their
On Sun, Jan 3, 2016 at 11:49 PM, Nick Coghlan wrote:
> On 4 January 2016 at 17:01, Terry Reedy wrote:
> > Ask the PSF/pypi people to either prohibit such names or require a
> > disclaimer of some sort. They are inherently confusing: "I took a look
> at
> >
On Tue, Dec 29, 2015 at 1:03 PM, Facundo Batista
wrote:
> On Tue, Dec 29, 2015 at 4:38 PM, Andrew Barnert
> wrote:
>
> > Isn't the same thing true for every special method? There are lots of
> classes where __add___ just says "a.__add__(b) = a + b"
On 4 January 2016 at 17:01, Terry Reedy wrote:
> Ask the PSF/pypi people to either prohibit such names or require a
> disclaimer of some sort. They are inherently confusing: "I took a look at
> pep008" does not mean that one even looked at the PEP. Even when the
> context
On 1/3/2016 6:21 PM, Guido van Rossum wrote:
On Tue, Dec 29, 2015 at 1:03 PM, Facundo Batista
> wrote:
On Tue, Dec 29, 2015 at 4:38 PM, Andrew Barnert > wrote:
> Isn't the same
Hola!
(I was doubting in sending this mail to this list or to the normal
one, but as it affects a "style recommendation" we propose for the
whole community, I finally sent it here)
I was reading PEP 257 and it says that all public methods from a class
(including __init__) should have a
On Dec 29, 2015, at 13:03, Facundo Batista wrote:
>
>> On Tue, Dec 29, 2015 at 4:38 PM, Andrew Barnert wrote:
>> I usually just don't bother. You can violate PEP 257 when it makes sense,
>> just like PEP 8. They're just guidelines, not iron-clad
Facundo Batista writes:
> Note that I'm ok to include a docstring when the actual behaviour
> would deviate from the expected one as per Reference Docs. My point is
> to not make it mandatory.
I disagree with the exception you're making for ‘__init__’. The
parameters
On Tue, Dec 29, 2015 at 1:27 PM, Facundo Batista
wrote:
> I was reading PEP 257 and it says that all public methods from a class
> (including __init__) should have a docstring.
>
> Why __init__?
>
> It's behaviour is well defined (inits the instance), and the
>
On Tue, Dec 29, 2015 at 4:38 PM, Andrew Barnert wrote:
> Isn't the same thing true for every special method? There are lots of classes
> where __add___ just says "a.__add__(b) = a + b" or (better following the PEP)
> "Return self + value." But, in the rare case where the
On Dec 29, 2015, at 10:27, Facundo Batista wrote:
> I was reading PEP 257 and it says that all public methods from a class
> (including __init__) should have a docstring.
>
> Why __init__?
>
> It's behaviour is well defined (inits the instance), and the
>
On 12/29/2015 2:40 PM, Fred Drake wrote:
On Tue, Dec 29, 2015 at 1:27 PM, Facundo Batista
wrote:
I was reading PEP 257 and it says that all public methods from a class
(including __init__) should have a docstring.
Why __init__?
It's behaviour is well defined (inits
12 matches
Mail list logo