Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a conditional with
#2
User a ternary expression: with open_file if already_open else maybe_open(...) as wf:.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
a conditional with - by Skaperen - Sep-16-2019, 11:50 PM
RE: a conditional with - by ichabod801 - Sep-17-2019, 12:37 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020