pygame - importing GL - very bad...

someone newsboost at gmail.com
Sat Jan 5 08:06:30 EST 2013


On 01/05/2013 12:47 PM, Chris Angelico wrote:
> C has typed variables, so it's a compile-time error to try to put any
> other type into that variable. Python doesn't. That flexibility comes
> at the cost of error-catching. There are hybrid systems, but in
> general, type declarations imply variable declarations, and that's
> something that Python doesn't want. (I'm of the opinion that
> declarations aren't such a bad thing; they make some aspects of
> scoping easier. However, that's a design decision that Python is as
> unlikely to reverse as indentation-defined blocks.)

Understood.

>> Ok, I'll look forward to that. Recently I had some problems with
>> pass-by-value vs pass-by-reference. I googled the problem and found that by
>> default python passes by reference.
>
> No, it doesn't. You can find good references on the subject in various
> places, but call-by-reference as implemented in Pascal simply doesn't
> exist in most modern languages, because its semantics are way
> confusing. The name given to this technique varies; here's a couple of
> links:
>
> http://effbot.org/zone/call-by-object.htm
> http://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_sharing

If you don't like calling it "pass-by-reference", perhaps you prefer 
calling it: “call by object reference“...  From: 
http://effbot.org/zone/call-by-object.htm

In any case I think we understand each other.






More information about the Python-list mailing list