Hi list, i just tried the following pice of code and returned an unexcepted, but explainable behavior:
sage: p = los[0][1] A lattice polytope: 3-dimensional, 4 vertices. sage: list(set([ p for p in reduce (lambda x,y : x + y,[ f.points() for f in p.facets() ])])) [0, ... some list of points ] sage: p 34 my old variable p = los[0][1] is overwritten by the one i used in the list comprehension. Is this the default sage or python behavior? or is this an bug in sage/python? In my eyes, every a variable created in a listcomprehension should overwrite an existing one (i think in my case this happens, because the in every step i have to access my orginal p) and after that should be destroyed again. greatz Johannes -- 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