[Neo4j] different behavior of python bindings and Java API

Thomas Fenzl thomas.fenzl at gmail.com
Sun Aug 1 16:47:48 CEST 2010

Hi all,

I'm writing some learning tests to understand the python bindings to
neo4j. The code can be found at bitbucket (
https://bitbucket.org/another_thomas/learnneo4jpy) if anyone is interested.
Still working on basic stuff, I found a difference between the behavior
of neo4j-python and neo4j as described in the Java API.

I did not expect the following to work:

>with graph.transaction as tx:
>    id = graph.node(name="foo").id
>with graph.transaction as tx:
>    print graph.node[id]

as according the Java API, transactions should roll back unless
explicitly marked successful.
Neo4j-python used was head from svn, using jpype.

Is that different behavior on purpose?


More information about the User mailing list