Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 6358:42db48c30d31
Validate indexer values
Make sure that indexer values are one of the supported indexers.
Invalid values would have raised an invalid indexer exception on
access.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 30 Mar 2021 02:24:22 -0400 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
