[Python-3000] re.escape() fails when passed bytes()

2008-09-01 Thread Andrew McNamara
In Python 2, re.escape() works with either str or unicode, but in Python 3, it no longer works with bytes(). I've created issue 3756 to track this: http://bugs.python.org/issue3756 -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ ___

Re: [Python-3000] Minor problem with ABCMeta?

2008-09-01 Thread Andrew McNamara
>Actually, it looks to me like the subclass is getting added to the wrong >set - it should be going into the _abc_cache, not the _abc_registry. Ah, you're right - that makes a lot more sense. Thanks. -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ _

Re: [Python-3000] Minor problem with ABCMeta?

2008-09-01 Thread Nick Coghlan
Andrew McNamara wrote: > The __subclasscheck__ method of ABCMeta contains the following code: > > # Check if it's a subclass of a registered class (recursive) > for rcls in cls._abc_registry: > if issubclass(subclass, rcls): > cls._abc_registry.add(subcl