Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63058
| Date | 2014-01-03 10:19 -0500 |
|---|---|
| Subject | Creating a list with holes |
| From | Larry Martell <larry.martell@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4852.1388762356.18130.python-list@python.org> (permalink) |
I think I know the answer is no, but is there any package that allows creating a list with holes in it? E.g. I'd want to do something like: x[10] = 12 x[20] = 30 I'm thinking of something like defaultdict but for lists (I know that's very different, but ... ) Thanks! -larry
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Creating a list with holes Larry Martell <larry.martell@gmail.com> - 2014-01-03 10:19 -0500
Re: Creating a list with holes eneskristo@gmail.com - 2014-01-03 07:30 -0800
Re: Creating a list with holes Larry Martell <larry.martell@gmail.com> - 2014-01-03 10:41 -0500
Re: Creating a list with holes Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-03 18:07 +0000
Re: Creating a list with holes Larry Martell <larry.martell@gmail.com> - 2014-01-03 19:15 -0500
Re: Creating a list with holes Roy Smith <roy@panix.com> - 2014-01-03 20:18 -0500
Re: Creating a list with holes Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-04 02:03 +0000
Re: Creating a list with holes Roy Smith <roy@panix.com> - 2014-01-03 10:38 -0500
Re: Creating a list with holes Chris Angelico <rosuav@gmail.com> - 2014-01-04 02:46 +1100
csiph-web