Comments (1)
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)
- pyaml converts integer-like strings to integers HOT 7
- Default to safe=True? HOT 10
- pyaml output stringified inexplicably in places HOT 1
- dump fails on numpy arrays HOT 3
- Cannot install with Python 3.6 on Windows 10 HOT 2
- Multiline String as block and quoted Strings HOT 3
- Since dict is ordered by default since 3.6, the order is lost now HOT 1
- yaml.composer.ComposerError: expected a single document in the stream HOT 1
- Deprecation warning HOT 1
- Format and write into file HOT 2
- RepresenterError: 'cannot represent an object' for custom object HOT 5
- pyaml not compatible with ruamel.yaml HOT 8
- openapi.yaml is invalid after re-formatting HOT 2
- % cannot start any token HOT 1
- Why does it sort my keys in alphabet order? HOT 2
- Although I'm using string_val_style='plain', a string value is still quoted HOT 2
- pretty-yaml creates output not readable by itself for escaped strings HOT 2
- Test regression with Python 3.11: DumpTests.test_enum HOT 2
- To ensure Python compatibility, it is recommended to avoid using the := operator in your code. HOT 1
- 23.5.9 from pypi installs empty directory HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pretty-yaml.