Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
condensing try except
#4
@Gribouillis
I think this is very elegant. Can you give me a quick run down of the what the function is doing. I don't quite understand it.

I'm not very familiar with the functools module. My first impression is that this is similar to a wrapper (aka hard coded decorator...which I've only recently gotten to...)

I'm stuck on the concept of the definition name used as a leading argument when the int and float objects are instantiated...

I understand the if clause at the bottom. That is crystal clear. I'm lost on the interplay between function and object here....would u pls run through it (even if only briefly)...thx
Reply


Messages In This Thread
condensing try except - by mepyyeti - Jan-18-2018, 06:39 AM
RE: condensing try except - by metulburr - Jan-18-2018, 06:47 AM
RE: condensing try except - by Gribouillis - Jan-18-2018, 08:15 AM
RE: condensing try except - by mepyyeti - Jan-18-2018, 05:20 PM
RE: condensing try except - by Gribouillis - Jan-18-2018, 06:20 PM
RE: condensing try except - by mepyyeti - Jan-26-2018, 10:19 PM
RE: condensing try except - by Gribouillis - Jan-26-2018, 11:13 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020