Python Source Code Beautifier

Delaney, Timothy (Tim) tdelaney at avaya.com
Tue Feb 27 15:53:47 EST 2007


Alan Franzoni wrote:

>> self.scriptcount = self.scriptcount + 1 => self.scriptcount += 1
> 
> the += operator is syntactic sugar just to save time... if one
> doesn't use it I don't think it's a matter of beauty.

This change can have semantic differences, and so should not be done for
anything except basic, immutable objects (such as integers). As such, it
can't be done automatically.

Tim Delaney



More information about the Python-list mailing list