In graph.data.list(), there are two places where PyX attempts to
access the builtin list() function as builtins.list under certain
conditions. This is not correct, since builtins appears as a
dictionary and has no list attribute, and throws an exception.
If your really must create a class with the name graph.data.list
(which, because of the possible conflict with python's built-in list()
function, especially if someone does
from graph.data import *
may be a bad idea), it is probably best to, at the top of graph.data,
do something like
and then use a=builtin_list(...)
where you currently use builtins.list(...)
In general, though, I think it would be even better to rename this
class to avoid some really mysterious behavior if anyone does do
an import * from it.
Log in to post a comment.