Message194091
The fix in 2.6, 2.7, 3.1 and 3.2 branches introduced UnboundLocalError occurring when a non-None baseName parameter is passed.
At least a part of fa82071bb7e1 should be backported to 2.6, 2.7, 3.1 and 3.2 branches.
$ python2.7 -c 'import Tkinter; print(repr(Tkinter.Tk(baseName="some_name")))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1748, in __init__
if not sys.flags.ignore_environment:
UnboundLocalError: local variable 'sys' referenced before assignment
$ python3.2 -c 'import tkinter; print(repr(tkinter.Tk(baseName="some_name")))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python3.2/tkinter/__init__.py", line 1734, in __init__
if not sys.flags.ignore_environment:
UnboundLocalError: local variable 'sys' referenced before assignment |
|
Date |
User |
Action |
Args |
2013-08-01 17:31:28 | Arfrever | set | recipients:
+ Arfrever, barry, georg.brandl, terry.reedy, mark.dickinson, pitrou, larry, christian.heimes, benjamin.peterson, gpolo, asvetlov, skrah, python-dev, Ramchandra Apte, zach.ware |
2013-08-01 17:31:28 | Arfrever | set | messageid: <1375378288.18.0.687807032585.issue16248@psf.upfronthosting.co.za> |
2013-08-01 17:31:28 | Arfrever | link | issue16248 messages |
2013-08-01 17:31:27 | Arfrever | create | |
|