Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50094

__builtin__.__dict__['dynamic_property']

$
0
0
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?

Viewing all articles
Browse latest Browse all 50094

Latest Images

Trending Articles



Latest Images