what does this mean?

B

bobueland

In van Rossum's tutorial there is a paragraph in chapter 9.6 which says

"Notice that code passed to exec, eval() or evalfile() does not
consider the classname of the invoking class to be the current class;
this is similar to the effect of the global statement, the effect of
which is likewise restricted to code that is byte-compiled together.
The same restriction applies to getattr(), setattr() and delattr(), as
well as when referencing __dict__ directly."

What does this mean? Could someone give a simple example or point to a
web page explaining this.

Bob
 
B

bobueland

Brian van den Broek has answered this in the topic

newbie-one more example of difficulty in van Rossum's tutorial
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top