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


Groups > comp.lang.python > #100632 > unrolled thread

How to ignore error with anon-zero exit status

Started byGanesh Pal <ganesh1pal@gmail.com>
First post2015-12-20 23:00 +0530
Last post2015-12-21 08:54 +0100
Articles 20 on this page of 40 — 14 participants

Back to article view | Back to comp.lang.python


Contents

  How to ignore error with anon-zero exit status Ganesh Pal <ganesh1pal@gmail.com> - 2015-12-20 23:00 +0530
    Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-20 22:22 +0100
      Re: Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status) Chris Angelico <rosuav@gmail.com> - 2015-12-21 08:56 +1100
        Re: Ignore error with non-zero exit status Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-20 23:46 +0100
          Re: Ignore error with non-zero exit status Chris Angelico <rosuav@gmail.com> - 2015-12-21 10:09 +1100
            Re: Ignore error with non-zero exit status Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-21 08:51 +0100
              Re: Ignore error with non-zero exit status Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-21 12:58 +0000
                Re: Ignore error with non-zero exit status Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-21 14:19 +0100
                  Re: Ignore error with non-zero exit status Chris Angelico <rosuav@gmail.com> - 2015-12-22 00:23 +1100
                    Re: Ignore error with non-zero exit status Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-21 15:05 +0100
                      Re: Ignore error with non-zero exit status Chris Angelico <rosuav@gmail.com> - 2015-12-22 01:11 +1100
                        Re: Ignore error with non-zero exit status Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-21 15:19 +0100
                          Re: Ignore error with non-zero exit status Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-21 16:07 +0000
                            Re: Ignore error with non-zero exit status Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-21 23:30 +0100
                          Re: Ignore error with non-zero exit status Random832 <random832@fastmail.com> - 2015-12-21 11:30 -0500
                            Re: Ignore error with non-zero exit status Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-21 23:27 +0100
                              Re: Ignore error with non-zero exit status Steven D'Aprano <steve@pearwood.info> - 2015-12-22 10:32 +1100
                      Re: Ignore error with non-zero exit status Terry Reedy <tjreedy@udel.edu> - 2015-12-21 18:53 -0500
                        Re: Ignore error with non-zero exit status Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-22 13:17 +0100
                      Re: Ignore error with non-zero exit status Chris Angelico <rosuav@gmail.com> - 2015-12-22 11:05 +1100
                      Re: Ignore error with non-zero exit status Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-21 17:17 -0700
                      Re: Ignore error with non-zero exit status Chris Angelico <rosuav@gmail.com> - 2015-12-22 11:25 +1100
          Re: Ignore error with non-zero exit status Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-21 13:30 -0700
          Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Ben Finney <ben+python@benfinney.id.au> - 2015-12-22 07:58 +1100
          Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-21 14:16 -0700
            Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-12-21 21:44 +0000
              Re: Meaning and purpose of the Subject field Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-21 23:55 +0100
              Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Steven D'Aprano <steve@pearwood.info> - 2015-12-22 10:14 +1100
                Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-12-21 23:24 +0000
                  Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-21 16:57 -0700
                  Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Tim Chase <python.list@tim.thechases.com> - 2015-12-22 09:56 -0600
                Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Cameron Simpson <cs@zip.com.au> - 2015-12-22 14:36 +1100
                Re: Meaning and purpose of the Subject field Random832 <random832@fastmail.com> - 2015-12-21 23:22 -0500
                  Re: Meaning and purpose of the Subject field Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-22 13:26 +0100
                Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Grant Edwards <invalid@invalid.invalid> - 2015-12-22 15:17 +0000
                  Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-22 08:28 -0700
                    Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Grant Edwards <invalid@invalid.invalid> - 2015-12-22 22:32 +0000
          Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status) Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-12-21 16:55 -0500
      Re: Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status) Ganesh Pal <ganesh1pal@gmail.com> - 2015-12-21 08:22 +0530
        Re: Ignore error with non-zero exit status Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-21 08:54 +0100

Page 1 of 2  [1] 2  Next page →


#100632 — How to ignore error with anon-zero exit status

FromGanesh Pal <ganesh1pal@gmail.com>
Date2015-12-20 23:00 +0530
SubjectHow to ignore error with anon-zero exit status
Message-ID<mailman.4.1450632635.2237.python-list@python.org>
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't run %s got %s (%d)!" % (cmd, err, ret))
                return False
        except Exception as e:
            logging.exception("Failed to run %s got %s" % (cmd, e))
            return False
    logging.info("Mount /tmp.....Done !!!")
    time.sleep(30)


Iam on python 2.6 and Linux , I need  you inputs on how to ignore an
specific error when the mount fails


In general the mount has zero status if it succeeds and anon-zero exit
status if it fails.

1.But for one rare case the mount succeeds but returns anon-zero exit
status and when we get “Reading GUID from da0xxx: No such file or
directory” error , how to ignore this error and proceed with the above
code

2. Also need to add this check only for mount case i.e   mount
/filesystems  and not scanner_start

Any recommendations would be appreciated.

Regards,
Ganesh

[toc] | [next] | [standalone]


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

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-20 22:22 +0100
SubjectIgnore error with non-zero exit status (was: How to ignore error with anon-zero exit status)
Message-ID<3883651.fOIMIIEhYO@PointedEars.de>
In reply to#100632
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't run %s got %s (%d)!" % (cmd, err,
>                 ret))

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(cmd, err, ret))

<https://docs.python.org/2.6/library/stdtypes.html#str.format>

On the other hand, you do not need the format operator to begin with:

  logging.error("Can't run %s; got %s (%d)!", cmd, err, ret)

<https://docs.python.org/2.6/library/logging.html#logging.error>

>                 return False
>         except Exception as e:
>             logging.exception("Failed to run %s got %s" % (cmd, e))

See above.

>             return False
>     logging.info("Mount /tmp.....Done !!!")
>     time.sleep(30)
> 
> 
> Iam on python 2.6 and Linux , I need  you inputs on how to ignore an
> specific error when the mount fails

(Polite people would *ask* a *question*.)
  
> In general the mount has zero status if it succeeds and anon-zero exit
> status if it fails.

(“_a non-zero_”, with a space in-between.  “anon” can be misunderstood as an 
abbreviation for “anonymous”.)
 
> 1.But for one rare case the mount succeeds but returns anon-zero exit
> status and when we get “Reading GUID from da0xxx: No such file or
> directory” error , how to ignore this error and proceed with the above
> code

If the non-zero exit status is distinguishable from other non-zero statuses, 
then you just test for that particular status code.  Otherwise, you should 
simply test if the filesystem has been mounted before you proceed.
 
> 2. Also need to add this check only for mount case i.e   mount
> /filesystems  and not scanner_start

Most simple solution for this: Do not use a loop.  More "complicated" 
solution: Use an “if” statement.

<http://www.catb.org/~esr/faqs/smart-questions.html>
 
-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


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

FromChris Angelico <rosuav@gmail.com>
Date2015-12-21 08:56 +1100
SubjectRe: Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)
Message-ID<mailman.7.1450648598.2237.python-list@python.org>
In reply to#100634
On Mon, Dec 21, 2015 at 8:22 AM, Thomas 'PointedEars' Lahn
<PointedEars@web.de> 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(cmd, err, ret))
>
> <https://docs.python.org/2.6/library/stdtypes.html#str.format>

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().

> On the other hand, you do not need the format operator to begin with:
>
>   logging.error("Can't run %s; got %s (%d)!", cmd, err, ret)
>
> <https://docs.python.org/2.6/library/logging.html#logging.error>
>

See? Another good reason to hang onto percent formatting.

ChrisA

[toc] | [prev] | [next] | [standalone]


#100637 — Re: Ignore error with non-zero exit status

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-20 23:46 +0100
SubjectRe: Ignore error with non-zero exit status
Message-ID<2062582.Z8LLNUJk5W@PointedEars.de>
In reply to#100636
Chris Angelico wrote:

> On Mon, Dec 21, 2015 at 8:22 AM, Thomas 'PointedEars' Lahn
> <PointedEars@web.de> 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.

>> 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(cmd, err, ret))
>>
>> <https://docs.python.org/2.6/library/stdtypes.html#str.format>
> 
> 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().

,-<https://docs.python.org/2/library/stdtypes.html#str.format>
| 
| […]
| This method of string formatting is the new standard in Python 3, and 
| should be preferred to the % formatting described in <String Formatting 
| Operations> in new code.

>> On the other hand, you do not need the format operator to begin with:
>>
>>   logging.error("Can't run %s; got %s (%d)!", cmd, err, ret)
>>
>> <https://docs.python.org/2.6/library/logging.html#logging.error>
> 
> See? Another good reason to hang onto percent formatting.

Your logic is flawed.

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#100640 — Re: Ignore error with non-zero exit status

FromChris Angelico <rosuav@gmail.com>
Date2015-12-21 10:09 +1100
SubjectRe: Ignore error with non-zero exit status
Message-ID<mailman.10.1450652970.2237.python-list@python.org>
In reply to#100637
On Mon, Dec 21, 2015 at 9:46 AM, Thomas 'PointedEars' Lahn
<PointedEars@web.de> 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().
>
> ,-<https://docs.python.org/2/library/stdtypes.html#str.format>
> |
> | […]
> | This method of string formatting is the new standard in Python 3, and
> | should be preferred to the % formatting described in <String Formatting
> | Operations> in new code.

That text doesn't exist in the 3.x documentation:

https://docs.python.org/3/library/stdtypes.html#str.format

There's a somewhat weaker recommendation here:

https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting

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.

ChrisA

[toc] | [prev] | [next] | [standalone]


#100648 — Re: Ignore error with non-zero exit status

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-21 08:51 +0100
SubjectRe: Ignore error with non-zero exit status
Message-ID<2721557.Hpeo4xmTem@PointedEars.de>
In reply to#100640
Chris Angelico wrote:

> On Mon, Dec 21, 2015 at 9:46 AM, Thomas 'PointedEars' Lahn
> <PointedEars@web.de> 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().
>>
>> ,-<https://docs.python.org/2/library/stdtypes.html#str.format>
>> |
>> | […]
>> | This method of string formatting is the new standard in Python 3, and
>> | should be preferred to the % formatting described in <String Formatting
>> | Operations> in new code.
> 
> That text doesn't exist in the 3.x documentation:
> 
> https://docs.python.org/3/library/stdtypes.html#str.format

Of course it does not.  That would be stupid.

> There's a somewhat weaker recommendation here:
> 
> https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting

AISB.

> 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.
 
-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#100667 — Re: Ignore error with non-zero exit status

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-12-21 12:58 +0000
SubjectRe: Ignore error with non-zero exit status
Message-ID<mailman.25.1450702711.2237.python-list@python.org>
In reply to#100648
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://www.gossamer-threads.com/lists/python/dev/969817

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#100668 — Re: Ignore error with non-zero exit status

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-21 14:19 +0100
SubjectRe: Ignore error with non-zero exit status
Message-ID<2726691.rQGQ7FqzaZ@PointedEars.de>
In reply to#100667
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.
>>
>> Wishful thinking, twice.
> 
> http://www.gossamer-threads.com/lists/python/dev/969817

What is this supposed to be evidence of?

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#100669 — Re: Ignore error with non-zero exit status

FromChris Angelico <rosuav@gmail.com>
Date2015-12-22 00:23 +1100
SubjectRe: Ignore error with non-zero exit status
Message-ID<mailman.26.1450704200.2237.python-list@python.org>
In reply to#100668
On Tue, Dec 22, 2015 at 12:19 AM, Thomas 'PointedEars' Lahn
<PointedEars@web.de> 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 "new-style formatting" has been
>>>> removed so as not to cause confusion.
>>>
>>> Wishful thinking, twice.
>>
>> http://www.gossamer-threads.com/lists/python/dev/969817
>
> What is this supposed to be evidence of?

Proof that percent formatting isn't planned for deprecation, much less
removal. There is strong support for it in certain quarters of
python-dev. It's a fully supported language feature, not an old and
outmoded feature that is kept solely for backward compatibility (as
"old-style classes" are in Python 2.7 - you can still use them, but as
of Python 3, only "new-style classes" exist).

ChrisA

[toc] | [prev] | [next] | [standalone]


#100672 — Re: Ignore error with non-zero exit status

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-21 15:05 +0100
SubjectRe: Ignore error with non-zero exit status
Message-ID<2827307.1DEaE21uzt@PointedEars.de>
In reply to#100669
Chris Angelico wrote:

> On Tue, Dec 22, 2015 at 12:19 AM, Thomas 'PointedEars' Lahn
> <PointedEars@web.de> 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 "new-style formatting" has
>>>>> been removed so as not to cause confusion.
>>>> Wishful thinking, twice.
>>> http://www.gossamer-threads.com/lists/python/dev/969817
>> What is this supposed to be evidence of?
> 
> Proof that percent formatting isn't planned for deprecation, much less
> removal.

Then it would have failed to accomplish that.

> There is strong support for it in certain quarters of python-dev. […]

There *was*.  The referred thread is from 2012-02.  It is 2015-12.

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#100673 — Re: Ignore error with non-zero exit status

FromChris Angelico <rosuav@gmail.com>
Date2015-12-22 01:11 +1100
SubjectRe: Ignore error with non-zero exit status
Message-ID<mailman.29.1450707097.2237.python-list@python.org>
In reply to#100672
On Tue, Dec 22, 2015 at 1:05 AM, Thomas 'PointedEars' Lahn
<PointedEars@web.de> wrote:
> Chris Angelico wrote:
>
>> On Tue, Dec 22, 2015 at 12:19 AM, Thomas 'PointedEars' Lahn
>> <PointedEars@web.de> 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 "new-style formatting" has
>>>>>> been removed so as not to cause confusion.
>>>>> Wishful thinking, twice.
>>>> http://www.gossamer-threads.com/lists/python/dev/969817
>>> What is this supposed to be evidence of?
>>
>> Proof that percent formatting isn't planned for deprecation, much less
>> removal.
>
> Then it would have failed to accomplish that.
>
>> There is strong support for it in certain quarters of python-dev. […]
>
> There *was*.  The referred thread is from 2012-02.  It is 2015-12.

Then show some evidence that python-dev has changed in viewpoint.

ChrisA

[toc] | [prev] | [next] | [standalone]


#100674 — Re: Ignore error with non-zero exit status

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-21 15:19 +0100
SubjectRe: Ignore error with non-zero exit status
Message-ID<4322502.fjrUL15KNH@PointedEars.de>
In reply to#100673
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 .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://www.gossamer-threads.com/lists/python/dev/969817
>>>> What is this supposed to be evidence of?
>>> Proof that percent formatting isn't planned for deprecation, much less
>>> removal.
>> Then it would have failed to accomplish that.
>> 
>>> There is strong support for it in certain quarters of python-dev. […]
>> There *was*.  The referred thread is from 2012-02.  It is 2015-12.
> 
> Then show some evidence that python-dev has changed in viewpoint.

And why would I do that?  I have claimed no such thing.

Your attempt to shift the burden of proof is unsuccessful.

BTW, which part of “attribution line” did you not understand?

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#100675 — Re: Ignore error with non-zero exit status

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-12-21 16:07 +0000
SubjectRe: Ignore error with non-zero exit status
Message-ID<mailman.30.1450714074.2237.python-list@python.org>
In reply to#100674
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 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://www.gossamer-threads.com/lists/python/dev/969817
>>>>> What is this supposed to be evidence of?
>>>> Proof that percent formatting isn't planned for deprecation, much less
>>>> removal.
>>> Then it would have failed to accomplish that.
>>>
>>>> There is strong support for it in certain quarters of python-dev. […]
>>> There *was*.  The referred thread is from 2012-02.  It is 2015-12.
>>
>> Then show some evidence that python-dev has changed in viewpoint.
>
> And why would I do that?  I have claimed no such thing.
>
> Your attempt to shift the burden of proof is unsuccessful.
>
> BTW, which part of “attribution line” did you not understand?
>

Would you please go away as your continued trolling is getting tedious.

TIA.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#100701 — Re: Ignore error with non-zero exit status

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-21 23:30 +0100
SubjectRe: Ignore error with non-zero exit status
Message-ID<21657710.ZJnMDoz5I0@PointedEars.de>
In reply to#100675
Mark Lawrence wrote:

> 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 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://www.gossamer-threads.com/lists/python/dev/969817
>>>>>> What is this supposed to be evidence of?
>>>>> There is strong support for it in certain quarters of python-dev. […]
>>>> There *was*.  The referred thread is from 2012-02.  It is 2015-12.
>>> Then show some evidence that python-dev has changed in viewpoint.
>> And why would I do that?  I have claimed no such thing.
>>
>> Your attempt to shift the burden of proof is unsuccessful.
>> […]
> 
> Would you please go away as your continued trolling is getting tedious.

<https://en.wikipedia.org/wiki/Ad_hominem>

Score adjusted

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#100677 — Re: Ignore error with non-zero exit status

FromRandom832 <random832@fastmail.com>
Date2015-12-21 11:30 -0500
SubjectRe: Ignore error with non-zero exit status
Message-ID<mailman.32.1450715433.2237.python-list@python.org>
In reply to#100674
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*.  The referred thread is from 2012-02.  It is 2015-12.
CA>> Then show some evidence that python-dev has changed in viewpoint.
TL> And why would I do that?  I have claimed no such thing.

Yes, you have.  Your claim that evidence from 2012 is no longer
relevant is an implicit claim of precisely that.

[toc] | [prev] | [next] | [standalone]


#100700 — Re: Ignore error with non-zero exit status

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-21 23:27 +0100
SubjectRe: Ignore error with non-zero exit status
Message-ID<6452640.DtIUyGyQXD@PointedEars.de>
In reply to#100677
Random832 wrote:

> 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*.  The referred thread is from 2012-02.  It is 2015-12.
> CA>> Then show some evidence that python-dev has changed in viewpoint.
> TL> And why would I do that?  I have claimed no such thing.
> 
> Yes, you have.  Your claim that evidence from 2012 is no longer
> relevant is an implicit claim of precisely that.

No, it is not.  Your logic is flawed, too, pseudonymous nobody with the 
unreadable posting style.

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail. 

[toc] | [prev] | [next] | [standalone]


#100706 — Re: Ignore error with non-zero exit status

FromSteven D'Aprano <steve@pearwood.info>
Date2015-12-22 10:32 +1100
SubjectRe: Ignore error with non-zero exit status
Message-ID<56788bf9$0$1621$c3e8da3$5496439d@news.astraweb.com>
In reply to#100700
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
and hypocritical buffoon who constantly complains about the most trivial
matters when committed by others, while ignoring that you do the same sort
of things.

You whinge about others using "fake names", whatever that means, when you
yourself go by a fake name "PointedEars".

You whinge about people's attribution lines extending over two virtual
lines, as if that matters, while ignoring the fact that your sig is twice
as long as is polite.

You whinge about people posting "dumb questions", while continuing to post
dumb answers.

When you make an error of logic, your response is never to accept that you
were wrong, but you just compound the error by insisting that the other
party is the one with flawed logic.

So, Thomas, if that is your real name, get over yourself. I don't know what
small pond you have come from, but you're in the big ocean of the Internet
now, and you're no longer the smartest person around. Admit it when you
make a mistake, and stop being such so whiny, prissy and unhelpful.

Or, if you can't do that, just go away and whine on some other newsgroup
where they might be impressed by your astonishing lack of social know-how.

Thank you.


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#100708 — Re: Ignore error with non-zero exit status

FromTerry Reedy <tjreedy@udel.edu>
Date2015-12-21 18:53 -0500
SubjectRe: Ignore error with non-zero exit status
Message-ID<mailman.46.1450742046.2237.python-list@python.org>
In reply to#100672
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
>> <PointedEars@web.de> 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 "new-style formatting" has
>>>>>> been removed so as not to cause confusion.
>>>>> Wishful thinking, twice.
>>>> http://www.gossamer-threads.com/lists/python/dev/969817
>>> What is this supposed to be evidence of?
>>
>> Proof that percent formatting isn't planned for deprecation, much less
>> removal.
>
> Then it would have failed to accomplish that.
>
>> There is strong support for it in certain quarters of python-dev. […]
>
> There *was*.  The referred thread is from 2012-02.  It is 2015-12.

Nothing has changed since except for
https://www.python.org/dev/peps/pep-0498/
already added to 3.6.

If the 2.7 doc still implies that % -formatting is deprecated, it should 
changed as in the 3.x docs.

-- 
Terry Jan Reedy

[toc] | [prev] | [next] | [standalone]


#100724 — Re: Ignore error with non-zero exit status

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-12-22 13:17 +0100
SubjectRe: Ignore error with non-zero exit status
Message-ID<2170273.ZObbXjq6a4@PointedEars.de>
In reply to#100708
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
>>> <PointedEars@web.de> 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 "new-style formatting"
>>>>>>> has been removed so as not to cause confusion.
>>>>>> Wishful thinking, twice.
>>>>> http://www.gossamer-threads.com/lists/python/dev/969817
>>>> What is this supposed to be evidence of?
>>> Proof that percent formatting isn't planned for deprecation, much less
>>> removal.
>> Then it would have failed to accomplish that.
>>
>>> There is strong support for it in certain quarters of python-dev. […]
>> There *was*.  The referred thread is from 2012-02.  It is 2015-12.
> 
> Nothing has changed since except for
> https://www.python.org/dev/peps/pep-0498/
> already added to 3.6.

Interesting – and disturbing that for lack of deprecation of the other two 
ways we would then have *three* ways.

But irrelevant evidence, again.

[I do not understand why that is so hard to understand: In order to 
substantiate the original statement, it has to be shown *what the statement 
says*: that it would have 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.”.  Everything and anything 
short of showing that *fails* to constitute *relevant* evidence for that 
statement.]

> If the 2.7 doc still implies that % -formatting is deprecated, it should
> changed as in the 3.x docs.

IBTD.  What about

,-<https://www.python.org/dev/peps/pep-0020/>
| 
| […]
| There should be one-- and preferably only one --obvious way to do it.

?

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#100710 — Re: Ignore error with non-zero exit status

FromChris Angelico <rosuav@gmail.com>
Date2015-12-22 11:05 +1100
SubjectRe: Ignore error with non-zero exit status
Message-ID<mailman.48.1450742765.2237.python-list@python.org>
In reply to#100672
On Tue, Dec 22, 2015 at 10:53 AM, Terry Reedy <tjreedy@udel.edu> 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, both are supported.

ChrisA

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.python


csiph-web