[Python-bugs-list] [ python-Bugs-532388 ] reverse copy of sequence returns None

noreply@sourceforge.net noreply@sourceforge.net
Wed, 20 Mar 2002 01:16:17 -0800


Bugs item #532388, was opened at 2002-03-20 17:04
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=532388&group_id=5470

Category: None
Group: Not a Bug
>Status: Deleted
Resolution: None
Priority: 1
Submitted By: Bing Ren (renbing)
Assigned to: Nobody/Anonymous (nobody)
Summary: reverse copy of sequence returns None

Initial Comment:
I tried to get a reversed sequence and keep the 
original, so I tried this:

>>> a=[1,2,3,4]
>>> b=(a[:]).reverse()
>>> b
>>> b=a[:]
>>> b.reverse()
>>> b
[4, 3, 2, 1]
>>>

I think this should be a bug. I tried to search this 
bug but get no result. Hope my submit helps.

My version:

Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for 
more information.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=532388&group_id=5470