Change by Jason Curtis :
--
title: reversed class should implement __reversed__ -> implement __reversed__
on reversed types
___
Python tracker
<https://bugs.python.org/issu
Jason Curtis added the comment:
Ok, not so sure about the PR now; I dug around and realized this is a C
implementation and my C is likely not strong enough!
--
___
Python tracker
<https://bugs.python.org/issue37
New submission from Jason Curtis :
I've just been trying to implement some logic which potentially involves
reversing things back to their initial orders, and it'd be nice to just be able
to call reversed() on something that has already been reversed.
>>> reverse
Change by Jason Curtis :
--
title: IntEnum f-string behavior can't be overridden -> IntEnum __format__
behavior can't be overridden through __str__
___
Python tracker
<https://bugs.pytho
Jason Curtis added the comment:
related cPython code:
https://github.com/python/cpython/blob/19a1e1eb86115db66c1faae5927f87e3a12692fc/Lib/enum.py#L626
If we're in a mixed-in class but the class has overridden __str__(), we should
probably use str(self) instead of self._v
Jason Curtis added the comment:
I mistyped - __str__ can be overridden effectively, but __format__ has to be
overridden instead or overridden also to get the desired f-string behavior.
--
___
Python tracker
<https://bugs.python.org/issue37
New submission from Jason Curtis :
Combining int and Enum, as with enum.IntEnum results in a class where __str__
cannot be effectively overridden. For example:
from enum import IntEnum
class myIntEnum(IntEnum):
x = 1
def __str__(self):
return 'AAAa
Jason Curtis added the comment:
sounds right; closing as a duplicate of issue20804
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Jason Curtis:
When a sentinel object from unittest.mock.sentinel is passed through a
multiprocessing.Pool.map, I expect it to still be comparable.
As a user, I'd like to be able to write a unit test using sentinels on my
unparallelized code, and then see that the
Jason Curtis added the comment:
This is still an issue with operator.attrgetter in 3.4.3, even after clearing
sys.modules['_operator']:
$ python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits
10 matches
Mail list logo