nekto0n
unread,Jun 7, 2010, 9:09:27 AM6/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlalchemy
Hi there!
Interesting feature was discovered. When you supply queries with non-
unicode values you get this:
Unicode type received non-unicode bind param value
'ya37esbr24qhlu9kojf5z1x6m8gvinc0'
All warnings after being emitted go into the warning registry in order
to be able to ignore them in future. Registy is a dict, with key:
key = (text, category, lineno)
"text" is always different as you can see, so eventually - every
single warnings ends up being held in the registry, causing memory
leak. Wasn't sure if it's a bug or just nice feature - decided to
write here. Maybe it should be better to put 'value' somewhere else,
not in actual text?