[issue17295] __slots__ on PyVarObject subclass

2015-03-11 Thread Martin Panter
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

[issue17295] __slots__ on PyVarObject subclass

2013-03-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17295 ___ ___

[issue17295] __slots__ on PyVarObject subclass

2013-03-27 Thread STINNER Victor
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

[issue17295] __slots__ on PyVarObject subclass

2013-03-19 Thread Amaury Forgeot d'Arc
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

[issue17295] __slots__ on PyVarObject subclass

2013-03-19 Thread Ronald Oussoren
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

[issue17295] __slots__ on PyVarObject subclass

2013-02-25 Thread Ronald Oussoren
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