Created
November 10, 2012 23:51
-
-
Save gkmngrgn/4053025 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
size = map(lambda x: int(x), size) | |
except ValueError: | |
size = map(lambda x: int(x), self.default_size) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any way to do this without using Exceptions
No Exception, but if we have a list that have only integer strings, we will iterate over the list twice.