Python handles globals badly.

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Sep 12 00:17:36 EDT 2015


On 12/09/2015 05:06, Random832 wrote:
> Mark Lawrence <breamoreboy at yahoo.co.uk> writes:
>
>> On 12/09/2015 01:11, random832 at fastmail.us wrote:
>> If everything in Python is an object, how can it assign a pointer?
>> Especially how do Jython and IronPython assign pointers?
>
> The Java and .NET runtimes also have pointers, they just don't [usually]
> call them pointers, just like Python doesn't call them pointers (a match
> made in... well, somewhere starting with an H, for sure).
>
> Honestly, whether you want to call the thing a pointer or a reference,
> you have to call it *something*, and I think "reference" is a worse fit
> based on its connotations from C++. Whatever you call it, it's an arrow
> on a diagram.
>

I think pointer is even worse because of its connection with C and hence 
cPython.  What is wrong with object if that is the only thing Python 
knows about?

-- 
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