Oddity in 2.4 with eval('None')

Leif K-Brooks eurleif at ecritters.biz
Mon Dec 20 22:02:35 CET 2004


Steve Holden wrote:
> Yes. "print eval('None')" is printing the value of None as defined in 
> your module's global namespace:

Right, but why? The expression "None" doesn't worry about the global 
namespace when used in normal code; why does it when used in eval()ed code?



More information about the Python-list mailing list