4 ms·
Wouldn't a regular tuple be the most pythonic (and possibly most efficient) way to represent a point? I think that's what most image libraries do (at least Pil
by martinp 13y ago
Wouldn't a regular tuple be the most pythonic (and possibly most efficient) way to represent a point?
I think that's what most image libraries do (at least Pillow).
- chmike 13y agoIt was just an example to illustrate the problem. Pythons don't have legs. So they can't run, not even slowly. It would have been more instructive if the author showed the alternate solutions classified by measured speed.
- pekk 13y agoThat depends very much on what you are going to do with your points