FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make base objects hashable, use it for equality check, and include srid by yohanboniface · Pull Request #8 · tilery/python-postgis · GitHub

Make base objects hashable, use it for equality check, and include srid - #8

Open
yohanboniface wants to merge 1 commit into
masterfrom
hash
Open

Make base objects hashable, use it for equality check, and include srid#8
yohanboniface wants to merge 1 commit into
masterfrom
hash

Conversation

Copy link
Copy Markdown
Member

I wonder if we should make sure neither self.coords nor self.srid is changed during the lifetime of a geometry, given hash depends on them, and a hash of an instance must never change.

srid defaults to 0, as ST_SRID does:

```
 st_srid
---------
       0
(1 row)
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL