[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: Marking this as "wont fix" since only documentation was updated. Thanks for reporting, Marek! -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 427ab124b3e9a54602b6f1d073a8e073159c0b51 by Miss Islington (bot) in branch '3.9': bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) (GH-29105) https://github.com/python/cpython/commit/427ab124b3e9a54602b6f1d073a8e

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b2a989995e6b725c5c957927127832fd3fcecfa2 by Miss Islington (bot) in branch '3.10': bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) (GH-29104) https://github.com/python/cpython/commit/b2a989995e6b725c5c9579271278

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +27373 pull_request: https://github.com/python/cpython/pull/29105 ___ Python tracker ___ __

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27372 pull_request: https://github.com/python/cpython/pull/29104 ___ Python tracker _

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset dff0b713436e286bb1afdd7c6f3093c8e8db16dd by Łukasz Langa in branch 'main': bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) https://github.com/python/cpython/commit/dff0b713436e286bb1afdd7c6f3093c8e8db16dd

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: More specific would be "Inheriting from multiple exceptions may fail due to instance layout conflicts. Such conflicts may depend on the Python version." This would effectively say "Don't bother reporting layout conflicts -- we know about them and they are n

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-20 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa nosy_count: 5.0 -> 6.0 pull_requests: +27364 pull_request: https://github.com/python/cpython/pull/29094 ___ Python tracker ___ __

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27279 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28995 ___ Python tracker __

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Suggestion: At the end of https://docs.python.org/3/bugs.html, add Hummm, I am not sure that page is the most adecuate for this, no? That is how to deal with bugs in general, not about specific bugs. -- _

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Suggestion: At the end of https://docs.python.org/3/bugs.html, add "Creating a subclass that inherits from multiple exceptions may not work and the potential conflicts may change in new versions." -- assignee: -> docs@python components: +Documentati

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, just to clarify something: there is no guarantee that multiple build-in, unrelated exceptions can be inherited and this is not supported. And this is not unique to this case. For example: >>> class A(StopIteration, OSError): ...... ... Trace

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately there isn't much we can do here other than document this :( -- ___ Python tracker ___ __

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Christian Heimes
Christian Heimes added the comment: You are correct. To be more precise, it's caused by GH-16856. The commit introduced PyAttributeErrorObject struct. Since AttributeError and OSError now have an incompatible memory layout, it is no longer possible to create a subclass that has AttributeErro

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-14 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45464] TypeError when inheriting from both OSError and AttributeError

2021-10-13 Thread Marek Marczykowski-Górecki
New submission from Marek Marczykowski-Górecki : In Python 3.10 it is no longer possible to create an exception type that inherits from both OSError and AttributeError. This has worked in Python 3.9. I don't see anything in changelog/release notes that would suggest it being intentional. Behav