On Thu, Jan 28, 2010 at 12:35 AM, xtian <hilb...@unix-ag.org> wrote:

<SNIP>

> Load this into a sage session and the type change will show.

This is what I get:

[mv...@sage mvngu]$ sage
----------------------------------------------------------------------
| Sage Version 4.3.1, Release Date: 2010-01-20                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: class Foo:
....:     def __init__( self ):
....:         self.bar = map( vector, [ (0,0,0), (1,2,3) ] )
....:         self.plot = None
....:     def printtype( self ):
....:         print "type( bar[ i ] ):", [ type( i ) for i in self.bar ]
....:     def do( self ):
....:         self.printtype( )
....:         self.plot = line( self.bar )
....:         self.printtype( )
....:
sage: foo = Foo()
sage: foo.do()
type( bar[ i ] ): [<type
'sage.modules.vector_integer_dense.Vector_integer_dense'>, <type
'sage.modules.vector_integer_dense.Vector_integer_dense'>]
type( bar[ i ] ): [<type 'tuple'>, <type 'tuple'>]

-- 
Regards
Minh Van Nguyen

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

Reply via email to