New submission from Björn Dahlgren:
Hi, I hope this is not a false positive but I cannot help thinking this is a
bug, consider:
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type help, copyright, credits or license for more information.
-3.2**0
-1.0
sign=lambda x: x**0
sign(-3.2)
1.0
Python 3.2.3 (default, May 3 2012, 15:51:42)
[GCC 4.6.3] on linux2
Type help, copyright, credits or license for more information.
-3.2**0
-1.0
sign=lambda x: x**0
sign(-3.2)
1.0
Or is this expected?
Best regards,
Björn Dahlgren
--
components: None
messages: 168384
nosy: bjodah
priority: normal
severity: normal
status: open
title: Unexpected exponentiation in lambda function
versions: Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15692
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com