This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年08月16日 15:30 by bjodah, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg168384 - (view) | Author: Björn Dahlgren (bjodah) | Date: 2012年08月16日 15:30 | |
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 |
|||
| msg168387 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2012年08月16日 15:45 | |
-3.2**0 == -(3.2**0) >>> (-3.2)**0 1.0 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:34 | admin | set | github: 59897 |
| 2012年08月16日 15:45:00 | serhiy.storchaka | set | status: open -> closed nosy: + serhiy.storchaka messages: + msg168387 resolution: not a bug |
| 2012年08月16日 15:30:11 | bjodah | create | |