Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rewrite_title
#4
I don't think me using *args is a blocker to this solution....
all i hear from you is bad practice (but no specific reasoning...why it is bad practice )
there are a million ways of writing programs, as long as it is working I do not care  (unless there is some added benefit to using it a particular way!!; this only comes through experience, if you have experience of this problem then explain why it is bad way to use it, i'd be happy to listen analyze and learn)

replace the above lines with this....

rehtmlbody = htmlbody.replace (title[0], newtitle)

    print ("'" + rehtmlbody + "'")
Reply


Messages In This Thread
rewrite_title - by roadrage - Dec-05-2016, 08:26 PM
RE: rewrite_title - by nilamo - Dec-05-2016, 08:30 PM
RE: rewrite_title - by micseydel - Dec-05-2016, 08:32 PM
RE: rewrite_title - by roadrage - Dec-05-2016, 09:30 PM
RE: rewrite_title - by nilamo - Dec-05-2016, 10:44 PM
RE: rewrite_title - by micseydel - Dec-06-2016, 08:42 PM
RE: rewrite_title - by roadrage - Dec-07-2016, 06:32 PM
RE: rewrite_title - by nilamo - Dec-07-2016, 06:50 PM
RE: rewrite_title - by roadrage - Dec-07-2016, 07:31 PM
RE: rewrite_title - by Ofnuts - Dec-08-2016, 10:16 PM
RE: rewrite_title - by roadrage - Dec-21-2016, 04:21 PM
RE: rewrite_title - by snippsat - Dec-21-2016, 05:14 PM
RE: rewrite_title - by roadrage - Dec-21-2016, 06:47 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020