[rfc][patch] bzr on python2.5

Gustavo Niemeyer gustavo at niemeyer.net
Fri Apr 28 19:21:54 BST 2006


> The first problem is that exceptions do not seem to export the args
> attribute.  This requires a super()-like[0] call from BzrNewError into
> BzrError to create and populate the args attribute.

They do export it:

  >>> type(Exception)
  <type 'type'>
  >>> Exception("foobar").args
  ('foobar',)

The problem is probably related to some expectation regarding
the behavior of old-style and new-style classes.

-- 
Gustavo Niemeyer
http://niemeyer.net




More information about the bazaar mailing list