Troywilson

Avatar
  • Total activity 3
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 1
  • Created

    List __getitem__ warning

    The following example code produces the IDE warning below:result = list()result.append(1)result.append(result[-1])Class 'list' does not define '__getitem__', so the '[]' operator cannot be used on ...
    • 2 followers
    • 2 comments
    • 0 votes