Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789101112 |
- """Warn about binary operations used as exceptions."""
- from __future__ import print_function
- try:
- pass
- except Exception or BaseException: # [binary-op-exception]
- print("caught1")
- except Exception and BaseException: # [binary-op-exception]
- print("caught2")
- except Exception or BaseException: # [binary-op-exception]
- print("caught3")
- except (Exception or BaseException) as exc: # [binary-op-exception]
- print("caught4")
|