Am 21.11.2015 um 17:53 schrieb D'Arcy J.M. Cain:
This is with Python 2.7 and PyGreSQL trunk. Python 3 is dumping core
on me but I will attack that issue after getting Python2 to test
cleanly.
The tests run for me on trunk with Python 2. Can you do an SVN update
and run again? Your line numbers differ from mine.
With Python 3, things are much better now.
TEST_PyGreSQL_classic_functions is already green with Py 3.
TEST_PyGreSQL_classic_functions also dumps core for me with Py 3.
Try this under Python 3:
>>> import pg
>>> con = pg.connect('unittest')
>>> dir(con)
TypeError: object does not provider __dir__
>>> con.query
<built-in method ...>
>>> dir(con)
['__class__', ... 'transaction']
Do you understand what's going on here? First dir() does not work, but
after accessing the query attribute only once (without even calling it),
dir() suddenly and magically works.
I believe this has something to do with your change from tp_gettattr to
tp_getattro, but I can't find what's wrong with that change.
-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql