Re: [Sqlalchemy-tickets] [sqlalchemy] #2794: CircularDependencyError with jython because WeakSequen
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-08-03 00:40:54
|
#2794: CircularDependencyError with jython because WeakSequence doesn't preserve
order
---------------------------+-----------------------------------
Reporter: sayap | Owner: zzzeek
Type: defect | Status: new
Priority: highest | Milestone: 0.8.xx
Component: utils | Severity: trivial - <10 minutes
Resolution: | Keywords:
Progress State: in queue |
---------------------------+-----------------------------------
Comment (by sayap):
Yeah. It looks like because an integer always hashes to itself, a dict in
cpython with keys in sequential integers (and inserted in the same order)
will always have its ordering "preserved".
Meanwhile, in the Javaland, while an integer still hashes to itself, a Map
would perform another hash function to determine the final hash key, so
the ordering become rather random.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2794#comment:6>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|