Tasks

 

2010-03-20 11:34:41
ThibG Anonymous user
@ThibG
Hi,
Each singleton class in bluemindo calls the __new__ method of its parent, in order to forward arguments and keyword arguments.
However, it's broken, as it forwards them as a list, and a dict, instead of forwarding them as arguments and keyword arguments.
(cls.ref = super(ConfigLoader, cls).__new__(cls, *args, **kws) instead of cls.ref = super(ConfigLoader, cls).__new__(cls, args, kws) would do it)

Furthermore, each of these classes inherits only from object, that triggers a DeprecationWarning since python 2.6 if __new__ is called with arguments.
So, I would propose to replace all those overcomplicated calls by "cls.ref = object.__new__(cls)".
2010-03-20 11:35:00
ThibG Anonymous user
@ThibG
2011-03-15 12:10:38
erwanb Erwan Briand
@erwanb
  • Milestone changed to 0.4
2011-09-11 03:30:58
erwanb Erwan Briand
@erwanb
This bug was fixed by the commit r131. This is an automatic fix.
  Assigned to Not assigned yet.
  Tags Not tagged yet.
  Version control
  References
  Attachements Nothing clipped yed.

 

Add an attachement

 

Post to this thread

This bug has been resolved.

This bug report has been closed by a developer.
Being resolved or rejected, this report has been closed by a developer, thus you may not need to add an answer.


Authorized (X)HTML tags: a, img, abbr, blockquote, code, ul, ol, li, h3, h4, p, br, hr, strong, em, pre, sub, sup, table, caption, thead, tr, th, tfoot, tbody, td.
Captcha security: In order to check you are not a robot, please answer to that simple question:
3 - 7        

Nickname: