# werkzeug.Accept.index¶

Accept.index(key)[source]

Get the position of an entry or raise ValueError.

Parameters: key – The key to be looked up.

Changed in version 0.5: This used to raise IndexError, which was inconsistent with the list API.