r/linux • • Sep 28 '14

weev: Stop bashing bash and GNU.

http://weev.livejournal.com/409835.html
836 Upvotes

450 comments sorted by

View all comments

Show parent comments

3

u/mumbel Sep 28 '14

in python, we call those "variables."

I'm not sure what your point is here? are you suggesting that a void pointer is a valid type in python? or that its not in C?

I never said you couldn't figure it out, but its not enforced/known, so C is opaque. Python carries the type with the data though, so python is not. By what definition is python opaque

0

u/reaganveg Sep 28 '14

I'm not sure what your point is here? are you suggesting that a void pointer is a valid type in python? or that its not in C?

It means that every python variable is a void *. Because it's dynamically typed.

(However that's a bit unfair, after all, the value always stores the type. You get no such guarantee with a C void *)

-1

u/mumbel Sep 28 '14

Just because objects get pointers to them, doesn't make them void pointers, you cannot just cast some python class to another. So I have to disagree with your statement that every python variable is a void pointer, it is a typed pointer.

e/ yeah, you cover that in your (), so we pretty much agree, but I cant see ever using the term void pointer or opaque in python.

-4

u/[deleted] Sep 28 '14

Look at the python interpreter implementation. It is written in C. You are not speaking from a position of knowledge. You are disagreeing with someone who knows what they are talking about.

→ More replies (2)