Nested scope warning in PIL

Edward C. Jones edcjones at erols.com
Mon Apr 30 22:35:45 EDT 2001


I installed RedHat 7.1 on a PC, Python 2.1, and then PIL. I get the following
nested scope warning:

ROOT> python
Python 2.1 (#5, Apr 28 2001, 10:44:16)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-81)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import _imaging
>>> import Image
/usr/local/src/Imaging-1.1.1/PIL/ImagePalette.py:64: SyntaxWarning: local
name 'randint' in 'random' shadows use of 'randint' as global in nested
scope 'lambda'  def random(mode = "RGB"):
>>>
ROOT>





More information about the Python-list mailing list