Re: [Python-ideas] PEP 8 update on line length

2019-02-21 Thread Paul Ferrell
I think the solution is for everyone to rotate their widescreen monitors 90° into a really tall portrait mode. :) On Thu, Feb 21, 2019, 11:44 AM Mike Miller wrote: > > On 2/18/19 8:37 PM, Simon wrote: > > I'd like to propose an update to PEP8. Indeed, the 80 characters per > line > > guideline

Re: [Python-ideas] PEP 8 update on line length

2019-02-21 Thread Paul Ferrell
My linter is fine with a double indent after an 'if (A and'. I thought it was in the standard. (Pycharm's built-in pep-8 highlighter) On Thu, Feb 21, 2019, 1:04 AM Christopher Barker On Wed, Feb 20, 2019 at 11:51 PM Lele Gaifax wrote: > >> that most annoys me is the "if" when the condition is

Re: [Python-ideas] PEP 8 update on line length

2019-02-20 Thread Paul Ferrell
erve everything > that represents the programmer's intention. > > ChrisA > _______ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/

Re: [Python-ideas] Multi-line string indentation

2019-02-08 Thread Paul Ferrell
ake a lot of care in the error > > messages you give to the user. I write a LOT of them, very long, very > > descriptive, and I have to either import textwrap or play the > > concatenation game. > > > > Having a str.dedent() method would be nice, but the d prefix has the > > huge advantage to be able to dedent on parsing, and hence be more > > performant. > > > ___ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Paul Ferrell pfl...@gmail.com ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] Potential PEP: with/except

2019-01-22 Thread Paul Ferrell
Is it such a natural extension to 'with', that it would immediately be weird to find it missing in the future? If the answer to either of those questions is 'no', then I absolutely retract my idea. On Tue, Jan 22, 2019 at 3:22 PM Steven D'Aprano wrote: > On Tue, Jan

Re: [Python-ideas] Potential PEP: with/except

2019-01-22 Thread Paul Ferrell
'try', and was pretty surprised when I told him that the except part of the with wasn't actually valid Python. On Tue, Jan 22, 2019 at 2:30 PM Chris Angelico wrote: > On Wed, Jan 23, 2019 at 7:11 AM Paul Ferrell wrote: > > As a result, I would like to propose that the

[Python-ideas] Fwd: Potential PEP: with/except

2019-01-22 Thread Paul Ferrell
use of an object, and the type of objects one tends to use in a 'with' are prone to throwing exceptions. Other statements like it don't intrinsically encapsulate the usage of an object. On Tue, Jan 22, 2019 at 1:23 PM Calvin Spealman wrote: > > > On Tue, Jan 22, 2019 at

Re: [Python-ideas] Potential PEP: with/except

2019-01-22 Thread Paul Ferrell
22, 2019 at 1:31 PM Michael Selik wrote: > On Tue, Jan 22, 2019, 12:11 PM Paul Ferrell >> I see this as the natural evolution of what 'with' is all about - >> replacing necessary try-finally blocks with something more elegant. We just >> didn't include the 'ex

[Python-ideas] Potential PEP: with/except

2019-01-22 Thread Paul Ferrell
bout it getting shot down - that's kind of the point here. I'm just pretty strongly against to unnecessary syntactical additions to the language. This though, I think I can except. It introduces no new concepts and requires no special knowledge to use. There's no question abou