Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Handling 3 operands in an expression without raising an exception
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Denis McMahon, post: 5117592"] Perhaps you need something that looks more like: some_value = some_function_of( some_value ) or some_function_of ( some_value ) if some_value: host = some_function_of( some_value ) else: host = some_value or even: try: host = some_function_of( some_function_of( some_value ) or some_function_of( some_value ) ) except some_error_type [ or some_error_type .... ]: host = some_value [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Handling 3 operands in an expression without raising an exception
Top