[issue15692] Unexpected exponentiation in lambda function

2012-08-16 Thread Björn Dahlgren

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 
<http://bugs.python.org/issue15692>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21697] shutil.copytree() handles symbolic directory incorrectly

2014-12-18 Thread Björn Dahlgren

Björn Dahlgren added the comment:

I ran across this bug too. Applying Eduardo's patch got my package
working under Py 3.4

--
nosy: +Björn.Dahlgren

___
Python tracker 
<http://bugs.python.org/issue21697>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com