I have a question about the future of srange under python 3, which changes 
the behaviour of range. Probably this has been discussed before but I could 
not find it.

In 9.0.beta10 we have

sage: range(1,3)
range(1, 3)
sage: srange(1,3)
[1, 2]
sage: sxrange(1,3)
<generator object at 0x7efd99ef8e88>
sage: [1..2]
[1, 2]
sage: type(range(1,3)), type(srange(1,3)), type(sxrange(1,3)), type([1..2])
(<class 'range'>, <class 'list'>, <class 'generator'>, <class 'list'>)

and no xrange anymore.

Would it make sense to drop sxrange and make srange an iterator like range, 
while keeping [a..b] as a list as suggested by its notation?

Chris


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/eb56b434-5e1e-4ce7-9585-16f00efb49f6%40googlegroups.com.

Reply via email to