[issue41907] Regression in IntFlag behaviour in f-string

2020-12-08 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41907] Regression in IntFlag behaviour in f-string

2020-12-08 Thread Ethan Furman
Ethan Furman added the comment: New changeset cbfcc67170d459bcf3e9d63d2f44eadec740bf69 by Miss Islington (bot) in branch '3.8': bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23704) https://github.com/python/cpython/commit/cbfcc67170d459bcf3e9d63d2f44eadec740bf69

[issue41907] Regression in IntFlag behaviour in f-string

2020-12-08 Thread Ethan Furman
Ethan Furman added the comment: New changeset 14eaa7d75282d8458455c41e9e871c56db8b9a10 by Miss Islington (bot) in branch '3.9': bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23703) https://github.com/python/cpython/commit/14eaa7d75282d8458455c41e9e871c56db8b9a10

[issue41907] Regression in IntFlag behaviour in f-string

2020-12-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +22571 pull_request: https://github.com/python/cpython/pull/23704 ___ Python tracker ___

[issue41907] Regression in IntFlag behaviour in f-string

2020-12-08 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +22570 pull_request: https://github.com/python/cpython/pull/23703 ___ Python tracker

[issue41907] Regression in IntFlag behaviour in f-string

2020-12-08 Thread Ethan Furman
Ethan Furman added the comment: New changeset 37440eef7f9a0c27e13fc9ce0850574bb00688b0 by Ethan Furman in branch 'master': bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) https://github.com/python/cpython/commit/37440eef7f9a0c27e13fc9ce0850574bb00688b0 --

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Ethan Furman
Change by Ethan Furman : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +21515 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22497 ___ Python tracker

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Ethan Furman
Ethan Furman added the comment: Thank you for the bug report. Another solution would be to subclass IntFlag and specify the `__format__` method: from enum import IntFlag as _IntFlag class IntFlag(_IntFlag): def __format__(self, spec): return format(self.value,

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Dominic Davis-Foster
Dominic Davis-Foster added the comment: I believe the regression is due to GH-14545 which "fixed" bpo-37479. The news entry states: "When `Enum.__str__` is overridden in a derived class, the override will be used by `Enum.__format__` regardless of whether mixin classes are present." . The

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-01 Thread Roger Taylor
New submission from Roger Taylor : An IntFlag member before 3.8.6 was converted to an integer in an f-string. After 3.8.6, the textual IntFlag class and member name are placed in the interpolated f-string instead of the integer. 3.8.3: f"... {X.F} ..." where X.F = 1 << 4 will give "... 16