Re: reason for working on a copy of POST object

2009-03-03 Thread Ishwor Gurung
Hi Alex, Alex Gaynor wrote: > On Tue, Mar 3, 2009 at 6:29 PM, Ishwor Gurung wrote: > >> Hi, >> >> What is the motive behind working on a copy of 'request.POST': >> e.g - >> if request.method == "POST": >>post = request.POST.copy() >> >> AFAIK, this implies making a copy of POST and workin

Re: reason for working on a copy of POST object

2009-03-03 Thread Alex Gaynor
On Tue, Mar 3, 2009 at 6:29 PM, Ishwor Gurung wrote: > Hi, > > What is the motive behind working on a copy of 'request.POST': > e.g - > if request.method == "POST": >post = request.POST.copy() > > AFAIK, this implies making a copy of POST and working on it. > Rather wouldn't it be faster i

reason for working on a copy of POST object

2009-03-03 Thread Ishwor Gurung
Hi, What is the motive behind working on a copy of 'request.POST': e.g - if request.method == "POST": post = request.POST.copy() AFAIK, this implies making a copy of POST and working on it. Rather wouldn't it be faster if we work on request.POST directly? : if request.method == "POST: