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

SourceForge.net noreply at sourceforge.net
Wed Sep 10 15:13:32 EDT 2003


Patches item #803449, was opened at 2003-09-09 16:37
Message generated for change (Comment added) 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: Closed
>Resolution: Accepted
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.

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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-09-10 16:13

Message:
Logged In: YES 
user_id=80475

Accepted and applied after a few mofications.

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

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