or in stdout=self.stdout or Capture(),

14 views
Skip to first unread message

maziar navahan

unread,
Jul 27, 2021, 12:27:58 PM7/27/21
to sarge

Hi

i frequently see :


in call Run user for set  stdout use
stdout=self.stdout or Capture(),

i can not understand OR operator in  self.stdout or Capture( ....

what do ?


Vinay Sajip

unread,
Jul 27, 2021, 12:57:58 PM7/27/21
to sarge
Frequently? The use of "or" is standard Python usage, nothing to do with sarge. See for example https://realpython.com/python-or-operator/

maziar navahan

unread,
Jul 31, 2021, 7:02:59 AM7/31/21
to sarge
Hi

Thx, I come from c++ then confused It
Reply all
Reply to author
Forward
0 new messages