[issue16608] immutable subclass constructor call error does not show subclass name

2021-02-15 Thread Irit Katriel
Irit Katriel added the comment: The issue still exists in 3.10: Python 3.10.0a5+ (heads/master:bf2e7e55d7, Feb 11 2021, 23:09:25) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> class c(tuple): ... def __init__(s,a,b): ...

[issue16608] immutable subclass constructor call error does not show subclass name

2012-12-04 Thread R. David Murray
R. David Murray added the comment: Is your error report the fact that the name 'tuple' appears in the error message instead of 'c'? That does seem sub-optimal. It may not be easy to improve, though. -- nosy: +r.david.murray priority: normal - low title: subclass str fails -

[issue16608] immutable subclass constructor call error does not show subclass name

2012-12-04 Thread David W. Lambert
David W. Lambert added the comment: The apparent problem was that the constructing str with __init__ failed. I now recall that immutables take initial values in the __new__ method. Sorry! Otherwise, it was quite thoughtful for you to search for a problem. Dave. --

[issue16608] immutable subclass constructor call error does not show subclass name

2012-12-04 Thread R. David Murray
R. David Murray added the comment: I have no idea what you are referring to by 'constructing str' :( I thought at first it was your incorrect tuple call in the init that was the issue, but that didn't look right, and after reproducing it and playing with it for a bit I figured out it was the

[issue16608] immutable subclass constructor call error does not show subclass name

2012-12-04 Thread David W. Lambert
David W. Lambert added the comment: Sorry again. You probably didn't follow the link I posted to see the problem origination. Which was Cannot subclass str. I generalized this to tuple. On Tue, 2012-12-04 at 20:08 +, R. David Murray wrote: R. David Murray added the comment: I have

[issue16608] immutable subclass constructor call error does not show subclass name

2012-12-04 Thread R. David Murray
R. David Murray added the comment: I followed the link, but it took me to a login/signup form, so it wasn't very informative. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16608 ___