Python Forum
using a try/except in a conditional expression
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using a try/except in a conditional expression
#6
the specific example case is a function that tests for existence of a file under try so the caller does not get an exception. the general case is a function that can do any test the caller requests and do it under try. the issue will be how the general case would be implemented to get that request and carry it out.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: using a try/except in a conditional expression - by Skaperen - Aug-30-2019, 03:38 AM

Forum Jump:

User Panel Messages

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