[IronPython] Namespace pollution

Dino Viehland dinov at exchange.microsoft.com
Sat Apr 15 18:03:06 CEST 2006


Thanks for the report, we've actually already got a fix for this for beta 6.

There was a bunch of weirdness around these as well - for example you also used to be able to delete the builtins inside of a module.

For beta 6 we've cleaned all of that up so you don't see these external to the module unless they've been explicitly assigned to (e.g:

one = len('a')
len = 'abc'

and then if you delete len again external callers will no longer see it.


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 Sanghyeon Seo
Sent: Saturday, April 15, 2006 8:48 AM
To: Discussion of IronPython
Subject: [IronPython] Namespace pollution

# test.py
one = len('a')

>>> import test
>>> test.len
<built-in function len>

It seems that builtin function names are inroduced to the module
namespace if they are used. This is unlike CPython, where only
test.one would be available in the above example.

Seo Sanghyeon
_______________________________________________
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