4 ms·
I think this is generally a good idea, but the danger is that programs start checking for implementation instead of supported features (or quirks). It's importa
by rlpb 15y ago
I think this is generally a good idea, but the danger is that programs start checking for implementation instead of supported features (or quirks). It's important to make sure that the dictionary definition stays updated with features (or quirks) to prevent this.
See the HTTP User-Agent mess to see what can result if this goes the wrong way.
- notatoad 15y agothis was my initial reaction too, but it seems as though this PEP doesn't expose any new information, just makes existing variables cleaner to access.
- snprbob86 15y agoThere's a big difference between HTTP User-Agents and this PEP's sys.implementation. User Agent sniffing is a bad idea because browsers are outside of your control. They evolve while web sites stand still. In this case, you can control which implementation you run. You can control what software runs on that implementation. You can change both of them. They are both under your control.
- lukeschlather 15y agoWhat if you're running on a PaaS like Google App Engine or Heroku?
- snprbob86 15y agoPresumably, you can still choose or edit the software you run on it, outside of the corelibs. Also, you can ask them to fix a bug, but you can't ask somebody else's grandma to update her browser.