[ python-Bugs-956408 ] Simplifiy coding in cmd.py

SourceForge.net noreply at sourceforge.net
Sun Jul 11 01:47:44 CEST 2004


Bugs item #956408, was opened at 2004-05-18 20:54
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=956408&group_id=5470

Category: None
Group: Python 2.4
>Status: Closed
>Resolution: Wont Fix
Priority: 1
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Anthony Baxter (anthonybaxter)
Summary: Simplifiy coding in cmd.py

Initial Comment:
In the cmd.py 1.35 checkin on 2/6/2003, there are many
lines like:

    self.stdout.write("%s\n"%str(header))

I believe the str() call in unnecessary.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2004-06-12 19:48

Message:
Logged In: YES 
user_id=33168

The str call is necessary if header is a tuple.  AFAIK, if
header is not a tuple, using str() is redundant.

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2004-06-07 00:01

Message:
Logged In: YES 
user_id=80475

Neal, is this a simplification you would like to make?

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

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


More information about the Python-bugs-list mailing list