← Back to team overview

beeseek-devs team mailing list archive

[Bug 311217] [NEW] implements() sets a strange name to classes

 

Public bug reported:

The interfaces.implements() function modifies the __name__ attributes of
all classes and replaces it with the name of one of the attributes
declared in the interface. Here's a simple example of code:

>>> from beeseek.interfaces import *
>>> class IFoo(Interface):
...    bar = str
...
>>> class Foo(object):
...    implements(IFoo)
...    bar = 'baz'
...
>>> print Foo.__name__
bar

``Foo.__name__`` should be 'Foo', not 'bar'.

** Affects: beeseek-base
     Importance: Low
     Assignee: Andrea Corbellini (andrea-bs)
         Status: In Progress

** Changed in: beeseek-base
   Importance: Undecided => Low
     Assignee: (unassigned) => Andrea Corbellini (andrea-bs)
       Status: New => In Progress
       Target: None => 1.0

-- 
implements() sets a strange name to classes
https://bugs.launchpad.net/bugs/311217
You received this bug notification because you are a member of BeeSeek
Developers, which is subscribed to BeeSeek Base.



Follow ups

References