Newbie pythoner, with bizzare problem

Paul Prescod paul at prescod.net
Sat Jul 22 16:27:16 EDT 2000


Gordon McMillan wrote:
> 
> Only sometimes. At other times __builtins__ is a dictionary, so
> 
> inp = __builtins__.open("...")
> 
> would fail, and you'd have to use
> 
> inp = __builtins__['open']("....")

Why is __builtins__ a shape-shifter?

-- 
 Paul Prescod - Not encumbered by corporate consensus
New from Computer Associates: "Software that can 'think', sold by 
marketers who choose not to."




More information about the Python-list mailing list