[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also r69016 and r69017. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: r69014 and r69015. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyt

[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-21 Thread Gabriel Genellina
Gabriel Genellina added the comment: After updating the import line, it still fails in 2.6, 3.0 and the current trunk. -- nosy: +gagenellina versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker

[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-21 Thread Tom Lynn
New submission from Tom Lynn : This file fails when run with doctest.testfile:: >>> print __name__ __builtin__ >>> print globals()['__name__'] # fails with KeyError: __name__ __builtin__ "__builtin__" is probably not a good value, but more importantly, this means that you can't use na