]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add tests for _source to importable and exec'able.
authorRaymond Hettinger <python@rcn.com>
Thu, 24 Mar 2011 03:33:30 +0000 (20:33 -0700)
committerRaymond Hettinger <python@rcn.com>
Thu, 24 Mar 2011 03:33:30 +0000 (20:33 -0700)
commitf6d3e8eaef83c82416c2ca9d639ed59beba1f877
tree18ad65b96e2635fe4ca08e61ce7c783777e3b9f3
parent5d43cff62373f8405765faeef48f0bd2ccc22d9b
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).
Lib/collections/__init__.py
Lib/test/test_collections.py