Comments (1)
The datetime
classes hash to the same value if their constituent parts are the same:
>>> d1 = datetime.date(2014, 10, 23)
>>> d2 = datetime.date(2014, 10, 23)
>>> {d1: 1, d2: 2}
{datetime.date(2014, 10, 23): 2}
>>> d1 is d2
False
>>> d1 == d2
True
from temporenc-python.
Related Issues (20)
- write usage/tutorial
- maybe add shortcuts for unpacking directly to native types
- Add LICENSE
- packing time zone aware datetime.time() instances fails
- maybe rename 'local' arg to 'as_utc'? HOT 1
- Implement Z=126 special case HOT 1
- Raise ValueError if the padding bits for DTS and DTSZ types are non-zero
- Add support for Arrow in API
- rename "moment" to "value"
- use attrs instead of hand crafting a class for deserialised data
- use underscores for missing parts in string representation
- Python optimization? HOT 3
- Demonstrate conversion from/to common date/time formats
- add proper __version__ symbols
- implement time zone handling for native types
- Maybe rename `Value` class
- Ensure leap seconds can be converted to native types
- Check whether decoded fields are within allowed range HOT 1
- write docs for packb() and all its args
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 temporenc-python.