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

IndexError: tuple index out of range on formatting string in multitraverse.py #128

Open
wiso opened this issue Apr 16, 2013 · 1 comment

Comments

@wiso
Copy link
Member

wiso commented Apr 16, 2013

Hello, I am getting an index error on this line:

https://github.com/rootpy/WebOOT/blob/master/weboot/views/multitraverse.py#L131

I think the problem is because of the formatting syntax '?' on line 110 and 119. Which kind of syntax is this? I cannot find any documentation about it.

@pwaller
Copy link
Member

pwaller commented Apr 16, 2013

The ? is just a character which appears in the result of formatting. The str.format is the new way in python to format strings, superceding the % operator, so I prefer to use it in WebOOT. The examples at the bottom of the linked page may be more informative than some of the immediate documentation.

Re: the bug, I think that should actually read .format(*values). Can you try it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants