[IronPython] Updating globals()

Dino Viehland dinov at exchange.microsoft.com
Mon Mar 27 18:31:17 CEST 2006


Did you run it at the console or from a file you imported?

IronPython will actually use different underlying CLR dictionary objects depending on how the code gets compiled (which is the reason why this compiles in one spot but not another).

Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Rene Olsthoorn
Sent: Monday, March 27, 2006 12:52 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Updating globals()

Hello Seo,

On Windows XP, it runs without a problem.

Greets, Rene Olsthoorn.

On 3/27/06, Sanghyeon Seo <sanxiyn at gmail.com> wrote:
> Updating module-level globals() raises AttributeError.
>
> vars = {'a': 1, 'b': 2}
> globals().update(vars)
> print a, b
>
> Seo Sanghyeon
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list