Message2751

Author mehendran
Recipients
Date 2007-07-27.06:22:02
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2008-02-20 17:18:44adminlinkissue1761139 messages
2008-02-20 17:18:44admincreate