Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rulings count #12

Open
raquelalegre opened this issue Jan 26, 2015 · 0 comments
Open

Rulings count #12

raquelalegre opened this issue Jan 26, 2015 · 0 comments

Comments

@raquelalegre
Copy link
Contributor

Why have the ruling count saved as an int by the parser, when the serialiser has to do so much extra work to convert it back to a string? I.e.:

def getRulingType(self):
    typeArr = [ "single", "double", "triple"]
    try:
        return typeArr[self.count - 1]
    except TypeError:
        print("Error: Ruling count " + self.count + " must be an integer.")
    except IndexError:
        print("Error: Ruling count (" + self.count + ") is out of bounds (" + typeArr.__len__() + ").")
@raquelalegre raquelalegre self-assigned this Jan 26, 2015
@raquelalegre raquelalegre removed their assignment Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant