pygame - importing GL - very bad...

Nobody nobody at nowhere.com
Wed Jan 2 04:01:02 CET 2013


On Wed, 02 Jan 2013 00:49:36 +0100, someone wrote:

> In [11]: del format
> ---------------------------------------------------------------------------
> NameError                                 Traceback (most recent call last)
> <ipython-input-11-028e6ffb84a8> in <module>()
> ----> 1 del format
> 
> NameError: name 'format' is not defined
> --------
> 
> What does this mean? Why does it say 'format" cannot be deleted after I 
> did the wildcard import ?

You can't delete built-in names. 

It has nothing to do with the wildcard import. The PyOpenGL modules delete
"format" from the module's variables as soon as they are finished with
it, so the set of names created by the wildcard import doesn't include
"format".




More information about the Python-list mailing list