This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Simplifiy coding in cmd.py
Type: Stage:
Components: None Versions: Python 2.4
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: anthonybaxter Nosy List: anthonybaxter, nnorwitz, rhettinger
Priority: low Keywords:

Created on 2004-05-19 01:54 by rhettinger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg20844 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-05-19 01:54
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.
msg20845 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-06-07 05:01
Logged In: YES 
user_id=80475

Neal, is this a simplification you would like to make?
msg20846 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2004-06-13 00:48
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.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40269
2004-05-19 01:54:35rhettingercreate