Encapsulation in Python

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Mar 14 19:19:58 EDT 2016


On 14/03/2016 22:40, BartC wrote:
> On 14/03/2016 22:20, Mark Lawrence wrote:
>> On 14/03/2016 22:07, BartC wrote:
>>> On 14/03/2016 21:23, Mark Lawrence wrote:
>>>
>>>> Python 2.8, RickedPython, and the latest entry into the race,
>>>> BartCPython, all vapourware.
>>>
>>> I'm not creating a new version of Python or CPython (you should have
>>> used an underscore).
>>>
>>> But I do have considerable experience of creating dynamically-typed
>>> languages and writing byte-code interpreters for them. They are not
>>> vapourware.
>>>
>>
>> Really?  So why do you keep arguing, most notably with Steven D'Aprano,
>> about the benefits of dynamic typing, whereby you appear to be
>> completely against it?
>
> I'm not against dynamic typing.
>
> I'm against mutable, dynamic names, among other dynamic features that
> are well known to make Python hard to optimise, and which for me appear
> to give little added value.

There is no need to optimise python, it is fast enough.  For me every 
advantage of Python is that I can do what I like with it, when I like 
with it, and I'm not stuck in the dreadful straight jacket of the 
statically typed languages.  If someone wants to make it faster I'm not 
going to complain, but your obsession with speed is going to have me 
dying of laughter if this goes on much longer.

>
>   Your dreadful piece of code
>> published earlier today around a switch statement summed it up.
>
> Was that in Python? It was /supposed/ to be dreadful. I was making a
> case for it to be supported directly.

You mean the huge great long list of hard coded function calls.  They 
are directly supported.  So is the loop.  Anything wrong with the Paul 
Rubin response?  And as my earlier link showed you often simply don't 
need a switch statement in an OO language.  Not much point providing 
something, much worse optimising it, if it isn't needed in the first place?

>
>  > The RUE kept stating that he was an expert in unicode, but never once
>  > provided a single shred of evidence to support his claim.  Until I see
>  > substantiated evidence from you I am going to state quite cleary that
>  > you've no idea, you're just another RUE.
>
> Sorry, I'm not going to do that, and I don't expect anyone here to have
> to do so either. You will have to take my posts as they are.
>

Drivel.  Any establised member of this community, or any other community 
for that matter, will always publish, unless, like the RUE, they've got 
something to hide.  So you're just a chicken.  Where do you buy the 
paint from for the streaks down your back?  Just in case you can't guess 
it is yellow.  I'll state the colour just in case your knowledge of 
colours is the same as your so called knowledge of computing, something 
of which I'm far from persuaded, on the grounds that speed simply is not 
the sole criteria for a language.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list