PyWart: NameError trackbacks are superfluous

Rick Johnson rantingrickjohnson at gmail.com
Sat Mar 16 19:50:00 EDT 2013


On Saturday, March 16, 2013 6:29:52 PM UTC-5, Oscar Benjamin wrote:
> I wasn't looking to convince *you*, just to set the record
> straight that this behaviour is sometimes useful.

And you claim to "set the record strait" by posting code that *purposely* raises a NameError when some function parameter is not within a predefined range? That's ludicrous!

Look, i don't want you to think that i am arguing with you, i just want you to show us an example that proves your argument to be true; but you cannot prove the argument by doing foolish things. Imagine the following scenario:

 * CarMakerA claims their new automobile is safest on the
   road.

 * CarMakerB purposely drives the car into a ditch and then
   claims the car is unsafe and CarMakerA is a liar.
   
That's what your example just did! Please provide a "real world" example that proves your argument. I am open to changing my mind *IF* someone can provide proof.

> In any case, even when the traceback information is not
> helpful, printing it is really not a problem and hardly a
> "wart".

 * Warts are ugly

 * Superfluous trackbacks are not only ugly, they damage
   productivity.

Therefore this *IS* a wart.



More information about the Python-list mailing list