Issue 20971: HTML output of difflib (original) (raw)

Created on 2014-03-18 17:19 by Jasvir.Singh, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (5)
msg213992 - (view) Author: Jasvir Singh (Jasvir.Singh) Date: 2014-03-18 17:19
HTML output of python difflib is in HTML1 which is outdated now. I am working on updating this library and I'll submit a patch as soon as possible.
msg213994 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-03-18 17:55
This is a new feature, so it can go only in 3.5. Updating the generated HTML sounds like a good idea, however we must consider if this might cause any problems related to backward compatibility. If you are going to do this, please use (valid) HTML5.
msg213997 - (view) Author: Jasvir Singh (Jasvir.Singh) Date: 2014-03-18 18:01
Why we can't add this in 2.7? Major projects and OS supporting 2.7 now and I am updating this because I am need of feature for 2.7. Can't we do it like release new version with new name(or something like). If one wants to download it, he/she can download using pip and make it default in python 3.5?
msg214005 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-03-18 19:01
Yes, you could make patches for Python 3.5 and release a PyPI package that includes these changes and it's compatible with older versions. The same has been done for other modules as well (e.g. unittest2 includes features that are available on recent versions of Python but it's compatible with older versions too). The reason why we can't add this to 2.7 (or even 3.4) is because they only receive bug fixes (and older versions only receive security fixes). Since there won't be a 2.8, new features can only go on 3.5. You can find more information about this on the devguide.
msg214011 - (view) Author: Jasvir Singh (Jasvir.Singh) Date: 2014-03-18 20:11
Ok Ezio Melotti, I'll start working on it :)
History
Date User Action Args
2022-04-11 14:58:00 admin set github: 65170
2016-05-06 11:57:05 berker.peksag set status: open -> closedsuperseder: Modernize HTML output of difflib.HtmlDiff.make_file()resolution: duplicatestage: needs patch -> resolved
2014-03-18 20:11:44 Jasvir.Singh set messages: +
2014-03-18 19:01:02 ezio.melotti set messages: +
2014-03-18 18:01:37 Jasvir.Singh set messages: +
2014-03-18 17:55:03 ezio.melotti set versions: + Python 3.5, - Python 2.7nosy: + ezio.melottimessages: + stage: needs patch
2014-03-18 17:19:02 Jasvir.Singh create