What about having a .get(index, default) method for arrays like we have for dicts?

Show replies by date

58
days inactive
120
days old

python-ideas@python.org

Manage subscription

88 comments
19 participants

Add to favorites Remove from favorites

tags (0)
participants (19)
  • 2QdxY4RzWzUUiLuE@potatochowder.com
  • Alex Hall
  • Alexander Hill
  • Chris Angelico
  • Christopher Barker
  • Daniel.
  • David Lowry-Duda
  • David Mertz
  • Greg Ewing
  • Guido van Rossum
  • Juancarlo Añez
  • Kyle Lahnakoski
  • M.-A. Lemburg
  • MRAB
  • Paul Moore
  • Richard Damon
  • Ricky Teachey
  • Stephen J. Turnbull
  • Steven D'Aprano