Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109642
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Possible PEP - two dimensional arrays? |
| Date | 2016-06-07 17:28 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <8737oobk20.fsf@jester.gateway.pace.com> (permalink) |
| References | <CACMigy1yXKuX0HCyAcE7MrWdC5DJhOMVtnxbcLVkU_Qw4MZsYg@mail.gmail.com> <mailman.66.1465345153.2306.python-list@python.org> |
Harrison Chudleigh <harrison.chudleigh1@education.nsw.gov.au> writes:
> Currently, the closest thing Python has to a 2D array is a dictionary
> containing lists.
Tuples work fine:
d = {}
d[2,3] = 5 # etc...
> Is this idea PEPable?
I don't think it would get any traction. If you're doing something
numerical that needs 2d arrays, numpy supports them. Actually, looking
at your application, numpy might be what you want.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Possible PEP - two dimensional arrays? Harrison Chudleigh <harrison.chudleigh1@education.nsw.gov.au> - 2016-06-08 10:17 +1000 Re: Possible PEP - two dimensional arrays? Paul Rubin <no.email@nospam.invalid> - 2016-06-07 17:28 -0700 Re: Possible PEP - two dimensional arrays? Ned Batchelder <ned@nedbatchelder.com> - 2016-06-07 17:38 -0700 Re: Possible PEP - two dimensional arrays? Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2016-06-08 00:45 +0000
csiph-web