4 ms·
I assume it's based on the C behavior, where it can be handy with macros I don't think it fits well in python
by Palomides 5y ago
I assume it's based on the C behavior, where it can be handy with macros
I don't think it fits well in python
- pletnes 5y agoI assumed it was borrowed from shell, where everything can just be put next to eachother since it’s all text.
- pmontra 5y agoMaybe. We must remember that Python was designed at the very end of the 80s so what was normal for developers back then could be unexpected nowadays. An example: the self in Python's OO is a C pointer to struct of data and function pointers. It should be perfectly clear to anybody writing OO code in plain C at the time (rising hand.) Five years later new OO languages (Java, Ruby) kept self inside the classes but hide it in method definitions.
- wartijn_ 5y agoBut Python 3 was designed in the 2000s and had many breaking changes. Seems like they could have changed this behavior with that version.