Changing the private variables content

Xavier Ho contact at xavierho.com
Wed Jul 22 14:52:45 CEST 2009


>
> val('self.' + attr + '=\'' + val + '\'')
>

Obviously that was eval, not val. Also it doesn't work without the escaped
single quotes, either.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090722/5a4fa4b4/attachment.html>


More information about the Python-list mailing list