[Patches] [ python-Patches-598039 ] Set constructor to use .update()

noreply@sourceforge.net noreply@sourceforge.net
Tue, 20 Aug 2002 19:13:29 -0700


Patches item #598039, was opened at 2002-08-20 21:05
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=598039&group_id=5470

Category: Library (Lib)
Group: Python 2.3
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Raymond Hettinger (rhettinger)
Summary: Set constructor to use .update()

Initial Comment:
Using .update() necessitates more extreme 
optimization to avoid spoiling the use case of 
uniquifying sequences.

The optimization is to factor the try/excepts out of 
the inner-loop.  The only part that gives me the willies 
is the resumption of the for-loop.

Sorry to bug you with the patch manager, but it 
seems to be the best tool for communicating specific 
code change proposals.  At least this one is short.

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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2002-08-20 21:13

Message:
Logged In: YES 
user_id=80475

As requested, will close the SF patch and email directly.

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2002-08-20 21:08

Message:
Logged In: YES 
user_id=80475

Needs a little more testing.
Will re-assign back when fixed-up.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=598039&group_id=5470