On Dec 27, 2010, at 11:25 , Robert Bradshaw wrote:

> On Mon, Dec 27, 2010 at 11:14 AM, Justin C. Walker <[email protected]> wrote:
>> Thanks for the reply.
>> 
>> On Dec 26, 2010, at 03:17 , Volker Braun wrote:
>> 
>>> Python has no "const". You can always manually change the innards of your
>>> class. The set_immutable() is just implemented by hand.
>> 
>> Tuples are "really" immutable, correct?  Is this possible because the tuple 
>> is an internal data type?
[snip]
>> Are 'attributes' the same as (or do they include) instance variables?
> 
> Yes, attributes include variables, methodes, etc. When you do
> 
> x.a = var
> 
> Then x.__gsetattr(x, a, var)
> 
> gets called, which by default just updates the dictionary of attributes of x.

Ah.  That's what I was looking for.  I get the picture now.  Thanks!

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
--
Democracy is two wolves and a lamb
   voting on what to have for lunch.
Liberty is a well-armed lamb contesting
   the vote.



-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to