[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-dev
Subject:    Re: [pypy-dev] Python Execution Contexts
From:       "Amaury Forgeot d'Arc" <amauryfa () gmail ! com>
Date:       2013-03-25 17:13:43
Message-ID: CAGmFidYvRUaeyxXvzpS31aFwLkoqnq5=zsjhLeSSsU06R6nn=w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2013/3/25 anatoly techtonik <techtonik@gmail.com>

> This module opened a Pandora box of Python internals. Version 0.4 still
> fails to
> trace files specified on command line, and I am lost in internal details
> of execfile
> + locals()/globals()/namespacing/scoping. Python tracker doesn't help here.
>

Seriously: always always pass your own locals and globals to functions like
exec and execfile.
Good luck.


-- 
Amaury Forgeot d'Arc

[Attachment #5 (text/html)]

<br><div class="gmail_quote">2013/3/25 anatoly techtonik <span dir="ltr">&lt;<a \
href="mailto:techtonik@gmail.com" \
target="_blank">techtonik@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div>This \
module opened a Pandora box of Python internals. Version 0.4 still fails \
to</div><div>trace files specified on command line, and I am lost in internal details \
of execfile</div>

<div>+ locals()/globals()/namespacing/scoping. Python tracker doesn&#39;t help \
here.</div></blockquote></div><div><br></div>Seriously: always always pass your own \
locals and globals to functions like exec and execfile.<br> Good luck.<br><br \
clear="all"><div><br></div>-- <br>Amaury Forgeot d&#39;Arc



_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic