Alternative to id( ) or deepcopy

Please use a mailing-list, see http://gephi.org/developers/
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
karanbudhraja
Posts:1
Joined:08 Nov 2013 00:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Alternative to id( ) or deepcopy

Post by karanbudhraja » 08 Nov 2013 00:52

I am trying to override __deepcopy__ (as in http://stackoverflow.com/questions/1500 ... bject-in-p) for an object so that I may use it in code (Gephi gives problems if used otherwise: "TypeError: Could not deepcopy Java object because it is not Serializable. Consider monkeypatching __deepcopy__ for org.gephi.graph.dhns.node.AbstractNode")

I tried using id( ) but then I get this: "NameError: name 'id' is an ambiguous column name". Is there some other way to get the ID or to specify that it is a function and not a column number? Or an alternative way to deepcopy?

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable