← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1530249] [NEW] Use six.moves.reduce instead of builtin reduce

 

Public bug reported:

Builtin function 'reduce' in Python 2 has been moved to standard
library module in Python 3 [1]. To make code compatible, we should
replace reduce(expr) with six.moves.reduce(expr)

[1] http://python3porting.com/stdlib.html#moved-builtins

** Affects: glance
     Importance: Undecided
     Assignee: HouMing Wang (houming-wang)
         Status: In Progress

** Changed in: glance
     Assignee: (unassigned) => HouMing Wang (houming-wang)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1530249

Title:
   Use six.moves.reduce instead of builtin reduce

Status in Glance:
  In Progress

Bug description:
  Builtin function 'reduce' in Python 2 has been moved to standard
  library module in Python 3 [1]. To make code compatible, we should
  replace reduce(expr) with six.moves.reduce(expr)

  [1] http://python3porting.com/stdlib.html#moved-builtins

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1530249/+subscriptions


Follow ups