There was a description method I didn't know about in the code of s3 target of spotify / luigi.
self.fs = client or S3Client()
It seems that this or is not a logical operator that is generally used in conditional expressions. The left side has priority, and when the left side is None, the right side is entered.
[Python or can be used for other than conditional branching](http://momijiame.tumblr.com/post/29966747567/python-%E3%81%AE-or-%E3%81%AF%E6%9D%A1 % E4% BB% B6% E5% 88% 86% E5% B2% 90% E4% BB% A5% E5% A4% 96% E3% 81% AB% E3% 82% 82% E4% BD% BF% E3 % 81% 88% E3% 82% 8B)
Recommended Posts