This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nadavhoresh
Recipients
Date 2003-11-27.08:54:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Consider the following:

>>> import string
>>> def test1():
	join = string.join

	
>>> def test2():
	join = string.join
	string = string.split

	
>>> test1()
>>> test2()

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in -toplevel-
    test2()
  File "<pyshell#7>", line 2, in test2
    join = string.join
UnboundLocalError: local variable 'string' referenced
before assignment
>>> 

How the second statement in test2 generates an error in
first one?

  Nadav.
History
Date User Action Args
2007-08-23 14:18:30adminlinkissue850110 messages
2007-08-23 14:18:30admincreate