08-21-2018, 10:38 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2018
Device: none
|
__builtin__.__dict__['dynamic_property']
Hi, I was browsing through the source code and came across the following line:
Code:
__builtin__.__dict__['dynamic_property'] = lambda func: func(None) I'm curious why this was done like this instead of creating a separate module to be imported? |
08-21-2018, 11:03 PM | #2 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Because it is used in lots of places. THere are a few extra code-wide globals calibre uses.
|
Advert | |
|