Message369833
Using comprehension to divide all the values in a dictionary like in the following results in integer division in 3.8.
some_dict = {k: v/5 for k, v in some_dict.items()}
This was solved by changing 5 to 5.0, reflecting behavior from python2. I would have expected to have the use the // operator for integer division.
Please correct me if this is expected behavior! |
|
Date |
User |
Action |
Args |
2020-05-24 21:36:37 | Amol Sharma | set | recipients:
+ Amol Sharma |
2020-05-24 21:36:37 | Amol Sharma | set | messageid: <1590356197.08.0.726126426417.issue40760@roundup.psfhosted.org> |
2020-05-24 21:36:37 | Amol Sharma | link | issue40760 messages |
2020-05-24 21:36:37 | Amol Sharma | create | |
|