Hi all,

there is a problem with save(), (at least) with sage 4.3, 4.3.1, 4.3.3.

I found trac#2046, but i am not sure if it is connected. somehow the
".sobj"-suffixing mechanism seems to be broken. i'd suggest just leaving the
filenames as specified.

see below for the details.

regards and thank You
felix



######################################
# the implementation works:
sage: 1.save("foo")
sage: load("foo")
1

####################################
# but then:
sage: [1,2].save("foo")
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)

/home/felix/hesage/<ipython console> in <module>()

AttributeError: 'list' object has no attribute 'save'

###################################
# interestingly this works:
sage: save([1,2],"foo")
sage: load("foo")
[1, 2]

###################################
# and now this is absurd:
sage: save([1,2],"foo.bar")
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)

/`pwd`/<ipython console> in <module>()

/path/to/sage/local/lib/python2.6/site-packages/sage/structure/sage_object.so 
in sage.structure.sage_object.save (sage/structure/sage_object.c:8108)()

AttributeError: 'list' object has no attribute 'save'

##############################
# since this again works:
sage: save(1,"foo.bar")

-- 
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