[Patches] [ python-Patches-803449 ] modernize demo scripts

SourceForge.net noreply at sourceforge.net
Wed Sep 10 13:03:35 EDT 2003


Patches item #803449, was opened at 2003-09-09 16:37
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=803449&group_id=5470

Category: Demos and tools
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: George Yoshida (quiver)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: modernize demo scripts

Initial Comment:
I've tried modernizing and cleaning up Vec.py and 

Rev.py

at /Demo/classes/ directory.



Changes are:

* remove deprecated apply.

* use isinstance() instead of type().

* avoid calling list's append method repeatedly.

* use string method instead of string module

* remove whitespaces inside parentheses.

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

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



More information about the Patches mailing list