Git Product home page Git Product logo

Comments (5)

rtobar avatar rtobar commented on July 21, 2024 1

A new 2.5.1 version has been uploaded to PyPI to add the automatic reader conversion to the other backends, restoring backwards compatibility for users of the default ijson backend. A warning is shown when users access this functionality to indicate they should move to byte-based readers.

from ijson.

caduvieira avatar caduvieira commented on July 21, 2024

Maybe related to #12

Look #12 (comment)

from ijson.

roll avatar roll commented on July 21, 2024

Ok. Thanks. I've rebased tabulator on [email protected] - frictionlessdata/tabulator-py@16af3de - and it works. My main point was that the change like this is not what you expect on the minor release 😃 I would consider preserving compatibility at least until ijson@3. But thanks anyway.

PS.
Probably this library - https://github.com/reubano/meza/search?q=ijson&unscoped_q=ijson - can also stop working after [email protected]

from ijson.

rtobar avatar rtobar commented on July 21, 2024

I hadn't realised the python backend was different in this aspect from the other ones -- all other backends (which I tend to focus more on) work with bytes and have always failed when a string reader is passed, while the python backend is the only one that can take either. This definitely wasn't an intentional change, but an effect on changing the default backend from python to the fastest available.

Regarding breaking backwards compatibility and how to handle it now that this new version is out there, I'm a bit torn. On the one hand I understand that the default backend that gets selected behaves now differently, but on the other the change on default backend selection is documented, and explicitly selecting a backend is still possible (and their behaviours haven't changed), so users relying on the behavior of the python backend can easily continue using it. I think at the end of the day I'll probably end up releasing an ijson 2.5.1 with the warning you suggest to avoid further confusion.

from ijson.

bz2 avatar bz2 commented on July 21, 2024

Caught this breakage in our CI when docker images updated today. Will update our tabulator-py version pin to fix.

from ijson.

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.