"Goto" statement in Python

Bernd Nawothnig Bernd.Nawothnig at t-online.de
Fri Apr 14 09:30:39 EDT 2017


On 2017-04-13, Mikhail V wrote:
> On 13 April 2017 at 18:48, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>> On Thu, Apr 13, 2017 at 10:23 AM, Mikhail V <mikhailwas at gmail.com> wrote:
>>> Now I wonder, have we already collected *all* bells and whistles of Python
>>> in these two examples, or is there something else for expressing trivial thing.
>>
>> Functions and exceptions are considered "bells and whistles"?
>
> You mean probably classes and exceptions? For me, indeed they are,
> but it depends.
>
> And breaking the code into def() chunks that are not
> functions but just chunks... I don't know, looks bad.

Organising code in a bunch of small functions is by far better coding
style and better readable than put it all together in one chunk. And
that holds for all programming languages, not only for Python.



Bernd

-- 
Die Antisemiten vergeben es den Juden nicht, dass die Juden ‘Geist’
haben – und Geld. Die Antisemiten – ein Name der
‘Schlechtweggekommenenen’ [Friedrich Nietzsche]


More information about the Python-list mailing list