> > So that means a view() function (with maybe a different name) -- however, > that brings up the issue of where to put it. I'm not sure that it warrants > being in builtins, but where does it belong? Maybe the collections module? > And I really think the extra import would be a barrier. > > It occurs to me-- and please quickly shut me down if this is a really dumb idea, I won't be offended-- `memoryview` is already a top-level built-in. I know it has a near completely different meaning with regards to bytes objects than we are talking about with a sequence view object. But could it do double duty as a creator of views for sequences, too?
--- Ricky. "I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/UB6ATNLI3LPIAC75PDGLFMD6GACEBV4X/ Code of Conduct: http://python.org/psf/codeofconduct/