Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Re: [Python-checkins] peps: Use Guido's preferred wording re: line length

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


ncoghlan at gmail

Aug 2, 2013, 7:26 PM

Post #1 of 2 (36 views)
Permalink
Re: [Python-checkins] peps: Use Guido's preferred wording re: line length

On 3 Aug 2013 11:07, "Terry Reedy" <tjreedy [at] udel> wrote:
>
> On 8/2/2013 6:19 AM, nick.coghlan wrote:
>
>> +The Python standard library is conservative and requires limiting
>> +lines to 79 characters (and docstrings/comments to 72).
>
>
> If you (and Guido) mean that as a hard limit, then patchcheck should
check line lengths as well as trailing whitespace.

That raises issues when modifying existing non-compliant files, because it
removes the human judgement on whether a non-compliance is worth fixing or
not.

Cheers,
Nick.

> _______________________________________________
> Python-checkins mailing list
> Python-checkins [at] python
> http://mail.python.org/mailman/listinfo/python-checkins


ncoghlan at gmail

Aug 2, 2013, 7:51 PM

Post #2 of 2 (36 views)
Permalink
Re: [Python-checkins] peps: Use Guido's preferred wording re: line length [In reply to]

On 3 Aug 2013 12:45, "Terry Reedy" <tjreedy [at] udel> wrote:
>
>
>
> On 8/2/2013 10:26 PM, Nick Coghlan wrote:
>>
>>
>> On 3 Aug 2013 11:07, "Terry Reedy" <tjreedy [at] udel
>> <mailto:tjreedy [at] udel>> wrote:
>> >
>> > On 8/2/2013 6:19 AM, nick.coghlan wrote:
>> >
>> >> +The Python standard library is conservative and requires limiting
>> >> +lines to 79 characters (and docstrings/comments to 72).
>> >
>> >
>> > If you (and Guido) mean that as a hard limit, then patchcheck should
>> check line lengths as well as trailing whitespace.
>>
>> That raises issues when modifying existing non-compliant files, because
>> it removes the human judgement on whether a non-compliance is worth
>> fixing or not.
>
>
> I meant tools/scripts/patchcheck.py, not the pre-commit hook. The check
would inform (especially for old files) or remind (for new files) so that
judgment could be applied.

Ah, right. Yeah, that may be reasonable.

A warning option on reindent.py may be a place to start if someone wanted
to implement it. Whether or not patchcheck used that option would likely
depend on the initial results of running it manually :)

Cheers,
Nick.
>
> _______________________________________________
> Python-checkins mailing list
> Python-checkins [at] python
> http://mail.python.org/mailman/listinfo/python-checkins

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.