]> granicus.if.org Git - python/commit
Fix bug
authorMichael W. Hudson <mwh@python.net>
Thu, 12 Aug 2004 17:56:29 +0000 (17:56 +0000)
committerMichael W. Hudson <mwh@python.net>
Thu, 12 Aug 2004 17:56:29 +0000 (17:56 +0000)
commit609346273903cd848d055b046ec46d9cc831b750
tree1cae68cd2e72748e02ae5d5179ccfe1f8dc1bb98
parentfd39ad4937f5f48142c7dafdac9d727931137c96
Fix bug

1005248 ] new.code() not cleanly checking its arguments

using the result of new.code() can still destroy the sun, but merely
calling the function shouldn't any more.

I also rewrote the existing tests of new.code() to use vastly less
un-bogus arguments, and added tests for the previous insane behaviours.
Lib/test/test_new.py
Python/compile.c