[Python-bugs-list] [ python-Bugs-458430 ] convert library to use inplace ops

noreply@sourceforge.net noreply@sourceforge.net
Tue, 04 Sep 2001 09:16:18 -0700


Bugs item #458430, was opened at 2001-09-04 09:16
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=458430&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Grant Griffin (dspguru)
Assigned to: Nobody/Anonymous (nobody)
Summary: convert library to use inplace ops

Initial Comment:
The Python library contains a large number of lines 
which could be converted to use inplace operators 
("+=" and friends).  That would make the library 
modules marginally smaller and faster.

The attached program identifies these cases and prints 
out a list.  It has found 647 instances in 91 files of 
the 2.2a2 library.

There are so many of these that I recommend that a 
tool be made to automatically convert these things.  
Failing that, perhaps at least the most frequently-
used modules could be manually converted.  (For 
example, sre and fnmatch [used by glob] contain a few 
of these.)

If there's any interest in a conversion tool, I could 
take a shot at doing it.  (It could be done fairly 
easily by adapting the attached program.)

thanks,

=g2

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

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