by dfinninger · 5y ago · 0 comments
> And why are some classes (int, str, float) allowed to be lower case
Also, boolean. These are primitive data types. For instance, in Java there's a difference between int and Integer. I'd assume that Python special-cases these because they are primitive. But I haven't been through the Python internals, so it's only a guess.
Also, the main reasons for special cases are historical; also, they predate PEP8 by a long time.
They are a bit more convenient than the built-ins.