Am 30.08.2016 um 19:22 schrieb Justin Pryzby:
I believe this is triggering infinite recursion:

pg.py class DB:

    def __getattr__(self, name):
        # All undefined members are same as in underlying connection:
        if self.db:
            return getattr(self.db, name)


"if self.db" seems to be itself calling getattr (?)

As D'Arcy already mentioned, this would only happen if self.db is not defined, while it should normally always be set (to None or the underlying connection).

So there must be some strange circumstance in your code which self.db is deleted (removed) or set to itself (recursively).

Maybe we can make DB a bit more robust against such recursion, but it would be helpful if you could give us an example of the code that triggered the problem.

Btw, this might point to a possible error in your code:

> f = 0x3efd7185b0 "stance has no attribute '%.400s'"

-- Chris


_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to