Code Monkey home page Code Monkey logo

Comments (1)

mk-fg avatar mk-fg commented on June 7, 2024

Unfortunately, one-liner reason is "I don't want to maintain or change 2.6-compatible code (esp. alongside 3.x), it's not super-hard but hard and pointless".
Longer explaination follows.

Biggest problem would be the fact that I don't have 2.6 anywhere (for years by now) and don't ever try to run this code on it, so stuff is likely to break on every other change.
I've tried this "exercise self-discipline" approach in the past, it didn't work even few years ago, when memories of 2.6-2.7 diffs were still there.
Maybe having more tests and some travis setup would help a lot here.

Then there's an issue of new stuff - iirc OrderedDict wasn't in 2.6 stdlib (needs +1 dependency, one more set of compatibility hacks in code), and same for many fairly minor features that are nice to use (and that I got used to) from 2.7 (especially 3.x compat stuff) - I just don't want to code in 2.6.

In my experience, it's trivial to build 2.7 either as a package for super-old systems (probably some LTS release of debian or RH-like), or in a separate dir, even from unprivileged user. Given stability promise of such stale systems, it's also simple to do it in any of container away from production.
So I also have serious doubts whether supporting 2.6 is even sane at this point, and larger python projects like Django already dropped that, for instance.

Best way to maintain such compatibility that I can think of is for someone interested in 2.6 to keep a stack of 2.7->2.6 patches and rebase them on top of any changes here (in a fork or something), testing thoroughly (or checking diffs) at such sync-points.
It will be pretty much the same workflow (conceptually) that I'd have to use too (if I had to) on every single change, due to first two reasons above.

from pretty-yaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.