May-27-2019, 10:07 AM
i have a big script with a line that assigns an IPv6 address string literal to the variable
these lines were not indented at all and not in any if statements or loops. it should have been straight unconditional execution.
ipv6
and the next line tries to print it:ipv6 = 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/128' print('ipv6 =',repr(ipv6))running it in Python 3.5.2 gets:
Output:Traceback (most recent call last):
File "get_ipv6.py", line 96, in <module>
print('ipv6 =',repr(ipv6))
NameError: name 'ipv6' is not defined
then i add print() calls to dump out locals() and globals() and 'ipv6' just was just not in there. how can i go about debugging this?these lines were not indented at all and not in any if statements or loops. it should have been straight unconditional execution.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.