Martin Panter added the comment:
Encountered this when trying to add some fields to urllib.parse.SplitResult for
Issue 22852. Issue 1173475 has a patch; I haven’t tried using it though.
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17295
___
___
STINNER Victor added the comment:
I closed the issue, but I didn't see that #1173475 was closed. Sorry, I
reopened this issue again.
--
nosy: +haypo
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17295
Amaury Forgeot d'Arc added the comment:
Probably a duplicate of issue1173475. Do you want to work on the patch there?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17295
Ronald Oussoren added the comment:
You're right, this is a duplicate.
--
resolution: - duplicate
stage: needs patch - committed/rejected
superseder: - __slots__ for subclasses of variable length types
type: - behavior
___
Python tracker
New submission from Ronald Oussoren:
Currently a subclass of a PyVarObject (such as 'int') cannot use a non-empty
slots, for example:
class L (int):
...__slots__ = ('a', 'b')
...
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: nonempty __slots__ not