← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1268439] [NEW] range method is not same in py3.x and py2.x

 

Public bug reported:

in py3.x,range is xrange in py2.x.
in py3.x, if you want get a list,you must use:
list(range(value))

I review the code, find that many codes use range for  loop, if used py3.x environment,
it will occure error.
so we must modify this issue.

** Affects: ceilometer
     Importance: Undecided
     Assignee: lizheming (lizheming-li)
         Status: New

** Affects: cinder
     Importance: Undecided
     Assignee: lizheming (lizheming-li)
         Status: New

** Affects: glance
     Importance: Undecided
     Assignee: lizheming (lizheming-li)
         Status: New

** Affects: keystone
     Importance: Undecided
     Assignee: lizheming (lizheming-li)
         Status: New

** Affects: neutron
     Importance: Undecided
     Assignee: lizheming (lizheming-li)
         Status: New

** Affects: nova
     Importance: Undecided
     Assignee: lizheming (lizheming-li)
         Status: New

** Also affects: nova
   Importance: Undecided
       Status: New

** Also affects: ceilometer
   Importance: Undecided
       Status: New

** Also affects: neutron
   Importance: Undecided
       Status: New

** Also affects: keystone
   Importance: Undecided
       Status: New

** Also affects: cinder
   Importance: Undecided
       Status: New

** Changed in: glance
     Assignee: (unassigned) => lizheming (lizheming-li)

** Changed in: nova
     Assignee: (unassigned) => lizheming (lizheming-li)

** Changed in: ceilometer
     Assignee: (unassigned) => lizheming (lizheming-li)

** Changed in: cinder
     Assignee: (unassigned) => lizheming (lizheming-li)

** Changed in: keystone
     Assignee: (unassigned) => lizheming (lizheming-li)

** Changed in: neutron
     Assignee: (unassigned) => lizheming (lizheming-li)

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

Title:
  range method is not same in py3.x and py2.x

Status in OpenStack Telemetry (Ceilometer):
  New
Status in Cinder:
  New
Status in OpenStack Image Registry and Delivery Service (Glance):
  New
Status in OpenStack Identity (Keystone):
  New
Status in OpenStack Neutron (virtual network service):
  New
Status in OpenStack Compute (Nova):
  New

Bug description:
  in py3.x,range is xrange in py2.x.
  in py3.x, if you want get a list,you must use:
  list(range(value))

  I review the code, find that many codes use range for  loop, if used py3.x environment,
  it will occure error.
  so we must modify this issue.

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


Follow ups

References