commit | f6d3e8eaef83c82416c2ca9d639ed59beba1f877 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Mar 23 20:33:30 2011 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Wed Mar 23 20:33:30 2011 -0700 |
tree | 18ad65b96e2635fe4ca08e61ce7c783777e3b9f3 | |
parent | 5d43cff62373f8405765faeef48f0bd2ccc22d9b [diff] |
Add tests for _source to importable and exec'able. Move __name__ back out of the template; the responsibility for setting __name__ lies with the caller (which knows something about the new namespace), not with the class definition (which doesn't know about the namespace it is being built in).