By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,931 Members | 1,976 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,931 IT Pros & Developers. It's quick & easy.

RuntimeError: restricted attribute

P: n/a
Does anyone know where the documentation for "restricted environments"
is? I see this referred to in the documentation for eval[1], but not
explained. Does eval use rexec? I thought that was deprecated, but I
get the following error:

py> eval('sub.func_globals', dict(__builtins__=None,
.... sub=string.Template.substitute))
Traceback (most recent call last):
File "<interactive input>", line 2, in ?
File "<string>", line 0, in ?
RuntimeError: restricted attribute

Anyone know what this means or where I could find it explained?



Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.