[issue35509] Unable to inherit from logging.Formatter

2018-12-18 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Oh so that's a simple Python question. Yep it works if `self` is removed. Thank you very much for the comment and sorry for bothering. I'll fix the code I'm using. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue35509] Unable to inherit from logging.Formatter

2018-12-18 Thread Luna Chen
Luna Chen added the comment: Hi Chih-Hsuan Yen, I have noticed in your `__init__` method, you have `super().__init__(self)`, I'm just wondering if the `self` argument is intentional, as the `Foo` object is to become the format itself? Because inheritance seems to work fine for me with

[issue35509] Unable to inherit from logging.Formatter

2018-12-18 Thread Luna Chen
Luna Chen added the comment: Hi Chih-Hsuan Yen, I will check this out and let you know the outcome. Thanks! :) -- ___ Python tracker ___

[issue35509] Unable to inherit from logging.Formatter

2018-12-16 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Hi Vinay Sajip, thanks for notifying the patch author. Just a question: is there a reason to remove 3.8 from affected versions? My sample program is indeed broken on Python 3.8. -- ___ Python tracker

[issue35509] Unable to inherit from logging.Formatter

2018-12-16 Thread Vinay Sajip
Change by Vinay Sajip : -- nosy: +BNMetrics versions: +Python 3.6 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35509] Unable to inherit from logging.Formatter

2018-12-15 Thread Chih-Hsuan Yen
New submission from Chih-Hsuan Yen : The following script runs fine on Python 3.7.1 but not on master (f5107dfd42). import logging class Foo(logging.Formatter): def __init__(self): super().__init__(self) Foo() The output is: Traceback (most recent call last): File "t.py",