Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-22 Thread Grant Edwards
On 2015-12-22, Ian Kelly wrote: > On Tue, Dec 22, 2015 at 8:17 AM, Grant Edwards > wrote: >> On 2015-12-21, Steven D'Aprano wrote: >> >>> So as far as I am concerned, if changes of subject line breaks threading for >>> you, so sad, too bad. Go without threading or use a better mail client. >> >

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-22 Thread Tim Chase
On 2015-12-21 23:24, Jon Ribbens wrote: > That sounds a bit confused - if the *intention* of changing the > subject line is to create a new thread, then breaking the thread > is not "breaking threading" ;-) I'm pretty sure that the purpose is not to *break* the thread, but to suggest that the sub-

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-22 Thread Ian Kelly
On Tue, Dec 22, 2015 at 8:17 AM, Grant Edwards wrote: > On 2015-12-21, Steven D'Aprano wrote: > >> So as far as I am concerned, if changes of subject line breaks threading for >> you, so sad, too bad. Go without threading or use a better mail client. > > Same here. After getting what is effectiv

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-22 Thread Grant Edwards
On 2015-12-21, Steven D'Aprano wrote: > So as far as I am concerned, if changes of subject line breaks threading for > you, so sad, too bad. Go without threading or use a better mail client. Same here. After getting what is effectively a "F*&# Y*& I'm too lazy to do things right" from multiple

Re: Ignore error with non-zero exit status

2015-12-22 Thread Thomas 'PointedEars' Lahn
Terry Reedy wrote: > On 12/21/2015 9:05 AM, Thomas 'PointedEars' Lahn wrote: >> Chris Angelico wrote: >>> On Tue, Dec 22, 2015 at 12:19 AM, Thomas 'PointedEars' Lahn >>> wrote: Mark Lawrence wrote: > On 21/12/2015 07:51, Thomas 'PointedEars' Lahn wrote: >> Chris Angelico wrote: >

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-21 Thread Cameron Simpson
On 22Dec2015 10:14, Steven D'Aprano wrote: On Tue, 22 Dec 2015 08:44 am, Jon Ribbens wrote about mail clients that use the Subject line to thread messages: Also: Thunderbird, The Bat!, Eudora, Gnus, Outlook, Outlook Express, Pegasus Mail, Pine, Apple Mail, Windows Live Mail, Yahoo Mail, Evolut

Re: Ignore error with non-zero exit status

2015-12-21 Thread Chris Angelico
On Tue, Dec 22, 2015 at 11:17 AM, Ian Kelly wrote: > On Dec 21, 2015 4:55 PM, "Terry Reedy" wrote: >> >> Nothing has changed since except for >> https://www.python.org/dev/peps/pep-0498/ >> already added to 3.6. > > https://xkcd.com/927/ The 927ness of it was discussed at length prior to impleme

Re: Ignore error with non-zero exit status

2015-12-21 Thread Ian Kelly
On Dec 21, 2015 4:55 PM, "Terry Reedy" wrote: > > Nothing has changed since except for > https://www.python.org/dev/peps/pep-0498/ > already added to 3.6. https://xkcd.com/927/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Ignore error with non-zero exit status

2015-12-21 Thread Chris Angelico
On Tue, Dec 22, 2015 at 10:53 AM, Terry Reedy wrote: > Nothing has changed since except for > https://www.python.org/dev/peps/pep-0498/ > already added to 3.6. And the flip side of the argument is https://www.python.org/dev/peps/pep-0461/ in 3.5, expanding on percent formatting. Both are useful,

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-21 Thread Ian Kelly
On Mon, Dec 21, 2015 at 4:24 PM, Jon Ribbens wrote: > On 2015-12-21, Steven D'Aprano wrote: >> The whole purpose of the change of subject is to indicate in a human-visible >> way that the subject of the thread has changed, i.e. that it is a new >> thread derived from the old one. If that breaks t

Re: Ignore error with non-zero exit status

2015-12-21 Thread Terry Reedy
On 12/21/2015 9:05 AM, Thomas 'PointedEars' Lahn wrote: Chris Angelico wrote: On Tue, Dec 22, 2015 at 12:19 AM, Thomas 'PointedEars' Lahn wrote: Mark Lawrence wrote: On 21/12/2015 07:51, Thomas 'PointedEars' Lahn wrote: Chris Angelico wrote: But it's been clearly stated that .format is not

Re: Ignore error with non-zero exit status

2015-12-21 Thread Steven D'Aprano
On Tue, 22 Dec 2015 09:27 am, Thomas 'PointedEars' Lahn wrote: [...] > No, it is not. Your logic is flawed, too, pseudonymous nobody with the > unreadable posting style. If its unreadable, how do you know what it says? "PointedEars", you're doing a marvellous job of acting like a self-righteous

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-21 Thread Jon Ribbens
On 2015-12-21, Steven D'Aprano wrote: > On Tue, 22 Dec 2015 08:44 am, Jon Ribbens wrote about mail clients that use > the Subject line to thread messages: >> Also: Thunderbird, The Bat!, Eudora, Gnus, Outlook, Outlook Express, >> Pegasus Mail, Pine, Apple Mail, Windows Live Mail, Yahoo Mail, >> Ev

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-21 Thread Steven D'Aprano
On Tue, 22 Dec 2015 08:44 am, Jon Ribbens wrote about mail clients that use the Subject line to thread messages: > Also: Thunderbird, The Bat!, Eudora, Gnus, Outlook, Outlook Express, > Pegasus Mail, Pine, Apple Mail, Windows Live Mail, Yahoo Mail, > Evolution, SquirrelMail, KMail, Windows Mail, e

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-21 Thread Jon Ribbens
On 2015-12-21, Ian Kelly wrote: > On Mon, Dec 21, 2015 at 1:58 PM, Ben Finney > wrote: >> Ian Kelly writes: >>> This isn't just a Usenet group; it's also a mailing list, and many >>> MUAs rely on the Subject header for proper threading. >> >> If such MUAs do that, they're misinterpreting the Su

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-21 Thread Ian Kelly
On Mon, Dec 21, 2015 at 1:58 PM, Ben Finney wrote: > Ian Kelly writes: >> This isn't just a Usenet group; it's also a mailing list, and many >> MUAs rely on the Subject header for proper threading. > > If such MUAs do that, they're misinterpreting the Subject field. Other > fields are available w

Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-21 Thread Ben Finney
Ian Kelly writes: > Better yet, please don't change the Subject header for trivial reasons > in the first place. When the subject of the ongoing discussion changes, it's normal to change the Subject field accordingly. I agree with your admonition against trivial alterations to that field; I hop

Re: Ignore error with non-zero exit status

2015-12-21 Thread Ian Kelly
On Sun, Dec 20, 2015 at 3:46 PM, Thomas 'PointedEars' Lahn wrote: > Chris Angelico wrote: > >> On Mon, Dec 21, 2015 at 8:22 AM, Thomas 'PointedEars' Lahn >> wrote: > > It is supposed to be an attribution *line*, _not_ an attribution novel. > Also, the “(was: …)” part is to be removed from the Sub

Re: Ignore error with non-zero exit status

2015-12-21 Thread Random832
Thomas 'PointedEars' Lahn writes: > Chris Angelico wrote: CA Proof that percent formatting isn't planned for deprecation, much less CA removal. TL>>> Then it would have failed to accomplish that. CA There is strong support for it in certain quarters of python-dev. […] TL>>> There *was*.

Re: Ignore error with non-zero exit status

2015-12-21 Thread Mark Lawrence
On 21/12/2015 14:19, Thomas 'PointedEars' Lahn wrote: Chris Angelico wrote: […] Thomas 'PointedEars' Lahn […] wrote: Chris Angelico wrote: […] Thomas 'PointedEars' Lahn […] wrote: Mark Lawrence wrote: On 21/12/2015 07:51, Thomas 'PointedEars' Lahn wrote: Chris Angelico wrote: But it's bee

Re: Ignore error with non-zero exit status

2015-12-21 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > […] Thomas 'PointedEars' Lahn […] wrote: >> Chris Angelico wrote: >>> […] Thomas 'PointedEars' Lahn […] wrote: Mark Lawrence wrote: > On 21/12/2015 07:51, Thomas 'PointedEars' Lahn wrote: >> Chris Angelico wrote: >>> But it's been clearly stated that .forma

Re: Ignore error with non-zero exit status

2015-12-21 Thread Chris Angelico
On Tue, Dec 22, 2015 at 1:05 AM, Thomas 'PointedEars' Lahn wrote: > Chris Angelico wrote: > >> On Tue, Dec 22, 2015 at 12:19 AM, Thomas 'PointedEars' Lahn >> wrote: >>> Mark Lawrence wrote: On 21/12/2015 07:51, Thomas 'PointedEars' Lahn wrote: > Chris Angelico wrote: >> But it's been

Re: Ignore error with non-zero exit status

2015-12-21 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Tue, Dec 22, 2015 at 12:19 AM, Thomas 'PointedEars' Lahn > wrote: >> Mark Lawrence wrote: >>> On 21/12/2015 07:51, Thomas 'PointedEars' Lahn wrote: Chris Angelico wrote: > But it's been clearly stated that .format is not going to do away with > percent form

Re: Ignore error with non-zero exit status

2015-12-21 Thread Chris Angelico
On Tue, Dec 22, 2015 at 12:19 AM, Thomas 'PointedEars' Lahn wrote: > Mark Lawrence wrote: > >> On 21/12/2015 07:51, Thomas 'PointedEars' Lahn wrote: >>> Chris Angelico wrote: But it's been clearly stated that .format is not going to do away with percent formatting, and all language of "n

Re: Ignore error with non-zero exit status

2015-12-21 Thread Thomas 'PointedEars' Lahn
Mark Lawrence wrote: > On 21/12/2015 07:51, Thomas 'PointedEars' Lahn wrote: >> Chris Angelico wrote: >>> But it's been clearly stated that .format is not going to do away with >>> percent formatting, and all language of "new-style formatting" has been >>> removed so as not to cause confusion. >>

Re: Ignore error with non-zero exit status

2015-12-21 Thread Mark Lawrence
On 21/12/2015 07:51, Thomas 'PointedEars' Lahn wrote: Chris Angelico wrote: But it's been clearly stated that .format is not going to do away with percent formatting, and all language of "new-style formatting" has been removed so as not to cause confusion. Wishful thinking, twice. http://w

Re: Ignore error with non-zero exit status

2015-12-20 Thread Thomas 'PointedEars' Lahn
Ganesh Pal wrote: [repaired Subject, restored attribution] > Thomas 'PointedEars' Lahn wrote: >> Most simple solution for this: Do not use a loop. More "complicated" >> solution: Use an “if” statement. > > I want to stick on to loop and try modifying the code with if. Should I > use some compar

Re: Ignore error with non-zero exit status

2015-12-20 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Mon, Dec 21, 2015 at 9:46 AM, Thomas 'PointedEars' Lahn > wrote: >>> Percent formatting isn't going away. There's no need to tell people to >>> abandon it in favour of .format(), unless they actually need a feature >>> of .format(). >> >> ,-

Re: Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)

2015-12-20 Thread Ganesh Pal
> (Polite people would *ask* a *question*.) I am a polite person , sorry if the wording was harsh. > (“_a non-zero_”, with a space in-between. “anon” can be misunderstood as an > abbreviation for “anonymous”.) It was a typo. > Most simple solution for this: Do not use a loop. More "complicate

Re: Ignore error with non-zero exit status

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 9:46 AM, Thomas 'PointedEars' Lahn wrote: >> Percent formatting isn't going away. There's no need to tell people to >> abandon it in favour of .format(), unless they actually need a feature >> of .format(). > > ,-

Re: Ignore error with non-zero exit status

2015-12-20 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Mon, Dec 21, 2015 at 8:22 AM, Thomas 'PointedEars' Lahn > wrote: It is supposed to be an attribution *line*, _not_ an attribution novel. Also, the “(was: …)” part is to be removed from the Subject header field value to complete the change of subject in a thread. >>

Re: Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 8:22 AM, Thomas 'PointedEars' Lahn wrote: > Python 2.6 (why are you using the oldest Python minor version?) introduced > string.format(), so you should use that instead of the old string format > operator (“%”): > > logging.error("Can't run {0}; got {1} ({2:d})!".format(c

Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)

2015-12-20 Thread Thomas 'PointedEars' Lahn
Ganesh Pal wrote: > def run_scanner(): > """ > Mount /filesystems and run scanner > """ > for cmd in [" mount /filesystems ", " scanner_start"]: > try: > out, err, ret = run(cmd, timeout=3600) > if ret != 0: > logging.error("Can