Changing the private variables content

Xavier Ho contact at xavierho.com
Wed Jul 22 08:52:45 EDT 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-0001.html>


More information about the Python-list mailing list