[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: I've reverted the changes. -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-11-30 Thread Mark Summerfield
Mark Summerfield added the comment: On 2007-11-30, Christian Heimes wrote: > Christian Heimes added the comment: > > Fixed in r59233. Please adjust the error message if you don't like it. > > TypeError: register() cannot be called on an ABCMeta subclass, use class > Example(metaclass=abc.ABCMeta)

[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-11-30 Thread Guido van Rossum
Guido van Rossum added the comment: Please roll this back. The error message you added is inappropriate when the parameter to a legitimate register() call is omitted, e.g. collections.Sequence.register() Since we got rid of unbound methods, the infinite recursion is gone; that's a good enough

[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r59233. Please adjust the error message if you don't like it. TypeError: register() cannot be called on an ABCMeta subclass, use class Example(metaclass=abc.ABCMeta) instead. -- resolution: -> fixed status: open -> closed __

[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: Are you fine with the error message or do you have a better one? Index: Lib/abc.py === --- Lib/abc.py (Revision 59228) +++ Lib/abc.py (Arbeitskopie) @@ -137,8 +137,12 @@ cls._abc_negati

[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-11-21 Thread Guido van Rossum
Guido van Rossum added the comment: This would be easier to fix if we didn't have unbound methods. I'm going to ask the py3k list if anybody really cares about having those. __ Tracker <[EMAIL PROTECTED]> ___

[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-09-17 Thread Sean Reifschneider
Changes by Sean Reifschneider: -- assignee: -> gvanrossum nosy: +gvanrossum priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-b

[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-09-05 Thread Mark Summerfield
New submission from Mark Summerfield: GvR asked me to add this to the bug tracker. If you do this: class A(ABCMeta): pass A.register(list) you get this error message: Traceback (most recent call last): File "", line 1, in RuntimeError: maximum recursion depth exceeded in __instancec