pygame - importing GL - very bad...

someone newsboost at gmail.com
Wed Jan 2 04:43:15 CET 2013


On 01/02/2013 04:01 AM, Nobody wrote:
> 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.

Ah, ok - and cannot overwrite it too, I guess... A shame that pylint 
didn't knew about this.

> 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".

Ok, sounds to me like I can safely ignore this pylint warning in any 
case... Thanks!





More information about the Python-list mailing list