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="Dave Angel, post: 5117567"] On 26/9/2013 06:51, Íßêïò wrote: In Python 3.3, but not on a web server, I get: Traceback (most recent call last): Question, do you get the same result on your server? (You can put the Greek string in place of "unknown" of course) If so, then the default value makes no sense; it'll cause an exception if it's ever used. If you insist on sticking to expressions (no try/catch, no if statements), then perhaps you should default to a string representing a domain which will always exist. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Handling 3 operands in an expression without raising an exception
Top