Author rhettinger
Recipients jaraco, ncoghlan, rhettinger
Date 2018-03-26.20:43:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
What kind useful information to you expect to get before an exception is raised?

For example:

    with suppress(FileNotFoundError) as e:

What could *e* possibly be that would be useful.  AFAICT, all we know at the time of __enter__ is the exception class.  No new information was created by the context manager call.

Ideally, it would be great is this API were to remain simple.  User code would likely be more clear if any other logic were done outside the context manager rather than happening indirectly and inexplicitly in the suppress call.  To me, "suppress" means suppress -- it doesn't mean capture and analyze that which is ignored.  So, at first glance, this seems like a mix of feature creep and mission creep.
Date User Action Args
2018-03-26 20:43:26rhettingersetrecipients: + rhettinger, jaraco, ncoghlan
2018-03-26 20:43:26rhettingersetmessageid: <>
2018-03-26 20:43:26rhettingerlinkissue33146 messages
2018-03-26 20:43:26rhettingercreate