On 1/19/2016 02:21, Larry Hastings       wrote:
    
    ">

(original) (raw)



On 18 January 2016 at 23:25, Alexander Walters <tritium-list@sdamon.com> wrote:


On 1/19/2016 02:21, Larry Hastings wrote:

On 01/18/2016 08:40 PM, Alexander Walters wrote:
I am not a core developer, but I just kind of feel its hypocritical to oppose always using brackets for the development of \*python\*

CPython isn't written in Python, it's written in C. So we use C idioms, which naturally are different from Python idioms.


Yes, and always using brackets is an accepted C idiom (one of two, the other being only use brackets when you must). Always using them is more in line with the spirit of python.

​And in the spirit of safety, which I think is Brett's concern.
Yes, there are tools that could catch the Apple bug, by catching incorrect indentation. But if the rule is to \*always\* use braces, that just feels safer. Even if it offends some people's ability to read everything at one glance (my suggestion: use a smaller font or a larger screen; or refactor the code so it isn't as big a chunk).

There's a fairly exhaustive list of styles here: https://en.wikipedia.org/wiki/Indent\_style
I'm sure that some of these have not been advocated in this thread.​


/arry


\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Python-Dev mailing list  
Python-Dev@python.org  
https://mail.python.org/mailman/listinfo/python-dev  
Unsubscribe: https://mail.python.org/mailman/options/python-dev/tritium-list%40sdamon.com  


_______________________________________________

Python-Dev mailing list

Python-Dev@python.org

https://mail.python.org/mailman/listinfo/python-dev

Unsubscribe: https://mail.python.org/mailman/options/python-dev/pludemann%40google.com