Message2751
Thanks for your comments.
I have seen sentences in the PEP like,
"This proposal is to add a builtin function to support
reverse iteration over sequences."
"Add a builtin function called reversed() that makes a
reverse iterator over sequence objects that support
__getitem__() and __len__()"
And also, in cpython implementation they verified like
in the following
+ if (!PySequence_Check(seq)) {
+ PyErr_SetString(PyExc_TypeError,
+ "argument to reversed() must be a sequence");
+ return NULL;
+
+ }
I maybe interpreted "Sequences" wrongly.
Kindly verify once and make me understand.
http://www.python.org/doc/2.4.3/whatsnew/node7.html
http://www.python.org/dev/peps/pep-0322/
Thanks,
Mehendran
|
|
Date |
User |
Action |
Args |
2008-02-20 17:18:44 | admin | link | issue1761139 messages |
2008-02-20 17:18:44 | admin | create | |
|