pg.ddx.io  psycopg/psycopg GitHub issues and pull requests  
help / color / mirror / Atom feed
From: dvarrazzo (@dvarrazzo) <noreply+dvarrazzo@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: Re: [psycopg/psycopg] PR #1322: Add pg_lsn adapter
Date: Wed, 18 Nov 2026 14:03:45 +0000
Message-ID: <gh-psycopg-psycopg-1322-rc4615196127@github.com> (raw)
In-Reply-To: <gh-psycopg-psycopg-1322-rc3407165411@github.com>
References: <gh-psycopg-psycopg-1322@github.com>
	<gh-psycopg-psycopg-1322-rc3407165411@github.com>

(on tests/types/test_lsn.py:157)

...we cannot, because a == b implies hash(a) == hash(b). But because these are strings, they will have the hash of the string. In Python numeric system hash(0) == hash(0.0) for this reason.

view thread (28+ messages)  latest in thread

Message-ID: <gh-psycopg-psycopg-1322-rc4615196127@github.com>
Permalink:  ../gh-psycopg-psycopg-1322-rc4615196127@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox