What feature of Python would you change?

I like Python but I don’t like having to use self as the first parameter in each method when I create a class. If you could change Python what would you change?

Python has built-in’s like len() and str(), they’re called from within the global namespace.

I’d prefer to call those methods like this: object.len() and object.str().

I’d also prefer if mypy’s type checker was included by default, but that’s just me!

1 Like