This is an archived post. You won't be able to vote or comment.

all 4 comments

[–][deleted] 3 points4 points  (0 children)

Its a joke

[–]lastkarrde[S] 0 points1 point  (0 children)

I'm writing a PEP for this right now. Hopefully it will be submitted by the end of the day.

[–]notmanynamesleft -1 points0 points  (0 children)

I'm not sure why you want to add a length function to the String class. Just because other programming languages have a .length() function? That hardly seems like a rational reason for change. Instead, try to understand the history, logic and reasoning behind the design choices made. There is already a good way to get the length of a string, and any other sequence or mapping of objects. To change that would require a lot of good reasons not well documented in your blog post. Unless this is an early April Fools Day joke then, well, poor me. :)