in particular sage's id()  gives different results (memory) address  for the 
below examples whereas python's id() gives the same  (expected)


sage: version()
'Sage Version 4.7, Release Date: 2011-05-23'
sage: id(lambda x: x+1)
4516762400
sage: id(lambda x: x+1)
4516761800                  
sage: id(lambda x: x+1)
4516762400
sage: id(lambda x: x+1)
4516761800
sage: id(lambda x: x+1)
4516762400
sage: id(lambda x: x+1)
4516761800



Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> id(lambda x: x+1)
4300019184
>>> id(lambda x: x+1)
4300019184
>>> id(lambda x: x+1)
4300019184
>>> id(lambda x: x+1)
4300019184
>>> id(lambda x: x+1)
4300019184



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

Reply via email to