[Freeipa-devel] [PATCH 007] Remove tuple unpacking from except clause

Rob Crittenden rcritten at redhat.com
Mon Jul 13 12:59:58 UTC 2015


Christian Heimes wrote:
> The patch replaces implicit tuple unpacking from except clauses with
> explicit unpacking of the exception objects' args attribute.
>
> Example:
>
>>>> e = RuntimeError('num', 'messages')
>>>> num, message = e
>>>> num, message
> ('num', 'messages')
>>>> e.args
> ('num', 'messages')
>>>> num, message = e.args
>>>> num, message
> ('num', 'messages')
>

Not related to this patch directly but I think it would be a good idea 
to create a Python 3 tracking ticket to make it easy to find python 
3-specific changes.

Then create tickets to fix particular issues and link those with the 
tracking ticket.

rob




More information about the Freeipa-devel mailing list