[Python-ideas] Deprecate "slice" on built-ins, move it to "types"?

Steven D'Aprano steve at pearwood.info
Thu Dec 28 19:15:10 EST 2017


On Thu, Dec 28, 2017 at 06:09:32PM -0200, Joao S. O. Bueno wrote:
> This is probably too little  to justify the compatibility breakage,

Indeed.

[...]
> It seems to me it should lie on the "types" module (or some other
> place), rather than
> eat built-in namespace (which can confuse newcomers anyway).

Have you actually come across newcomers who are confused by slice being 
a built-in? I've been on the tutor mailing list, and comp.lang.python, 
for many years now and I don't recall anyone even asking about slice let 
alone being confused by it.



-- 
Steve


More information about the Python-ideas mailing list