Code Monkey home page Code Monkey logo

Comments (5)

sdispater avatar sdispater commented on May 19, 2024 1

I just released the 0.6.1 version that fixes the issue.

from pendulum.

sdispater avatar sdispater commented on May 19, 2024

Thanks for reporting this.

There are two sides to this issue:

  • First, the possible comparison between Pendulum instances and strings or integer. This is an idea that will create problems more than it will solve any.
  • Second, comparison methods do not catch ValueError exceptions.

Anyway, the best approach for this is to catch the ValueError exceptions and return NotImplemented since if an exception is raised it means that other is not compatible.

I will push a fix and it should land officially in the next bugfix release next week.

from pendulum.

AndreasBackx avatar AndreasBackx commented on May 19, 2024

Good to hear. I feel ashamed for these 3 references btw. Close your eyes.

from pendulum.

sdispater avatar sdispater commented on May 19, 2024

Don't worry :-)

The idea was there anyway and it would have worked, so no need to feel ashamed.

from pendulum.

AndreasBackx avatar AndreasBackx commented on May 19, 2024

Commit 1: I commited my .python-version file.
Commit 2: somehow it inserted 3 spaces instead of 4.

I feel like I had to say that. GitHub should make these references like they are in PRs, which I thought they were. Lesson learned I guess: "Don't reference issues in commit messages."

On a side note regarding #48, I have implemented Period.exclude along with the previous methods. You could always use these in case you want to implement these here. But you said you wanted to do it only for one? Period._exclude does it only for one period, but still returns a list of periods.

from pendulum.

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.