Welcome, guest | Sign In | My Account | Store | Cart
def index_id(a_list, elem):
    return (index for index, item in enumerate(a_list) if item is elem).next()

History

  • revision 2 (13 years ago)
  • previous revisions are not available