View Single Post
Old 08-21-2018, 10:38 PM   #1
flaviut
Junior Member
flaviut began at the beginning.
 
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)
in calibre/__init__.py

I'm curious why this was done like this instead of creating a separate module to be imported?
flaviut is offline   Reply With Quote