Comments (5)
I just released the 0.6.1
version that fixes the issue.
from pendulum.
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.
Good to hear. I feel ashamed for these 3 references btw. Close your eyes.
from pendulum.
Don't worry :-)
The idea was there anyway and it would have worked, so no need to feel ashamed.
from pendulum.
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)
- Unable to build pendulum for 32bit HOT 10
- Segmentation fault at import when running 3.0.0 under Docker Alpine linux
- Arithmetic overflow during the compilation of the Rust code for the "_pendulum" library. HOT 1
- Allow formatting of `in_words`
- dst_rule not implemented in 3.x? Has it in documentation but examples don't work. HOT 3
- in_months() returns wrong values in some cases in January to February HOT 1
- pendulum PanicException on FreeBSD 14 HOT 4
- [Feature Request] Add strict mode for from_format()
- backports-zoneinfo does not compile on 3.10, and hard to package (pyinstaller, zipapp,...) HOT 3
- Bug / regression: Unable to parse string '031' with 'DDDD' format using Pendulum 3.0.0
- Regression - Inconsistent DBAPI serialization of pendulum datetimes
- Duration division, multiplication and mod broken for month lengths. HOT 1
- Default datetime string format changed in 3.0 release HOT 2
- Security issue or bug with pipenv ? HOT 1
- to_iso8601_string
- instance() fails for datetimes with pytz.FixedOffsets
- "import pendulum" causes unwanted import of pytest (presence of pytest in sys.modules often used to control Python behaviour) HOT 1
- MMM is not case-insensitive like Java
- If you have the /etc/timezone file set to a timezone string, pendulum.UTC has that timezone's utcoffset instead of None HOT 1
- in_words() exclude week
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 pendulum.