← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Reviewed:  https://review.openstack.org/270619
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=4f462ed451f09422a331f68f7fde0cf6a27d8fc0
Submitter: Jenkins
Branch:    master

commit 4f462ed451f09422a331f68f7fde0cf6a27d8fc0
Author: MD NADEEM <mail2nadeem92@xxxxxxxxx>
Date:   Thu Jan 21 12:01:55 2016 +0530

    Fix bug:xrange() issue with py3.x
    
    In python3.x, there is no method named xrange(),
    it has replaced by range(),which is equal to xrange()
    in python2.x. so we must fix this issue.
    
    Closes-Bug: #1268439
    
    Change-Id: I66f0a7f248ad77bf06e96ea7cfcb7ef5f050b13a


** Changed in: kolla
       Status: In Progress => Fix Released

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

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

Status in Ceilometer:
  Fix Released
Status in Cinder:
  Fix Released
Status in Glance:
  Fix Released
Status in heat:
  Fix Released
Status in OpenStack Identity (keystone):
  Invalid
Status in kolla:
  Fix Released
Status in neutron:
  Fix Released
Status in python-ceilometerclient:
  Fix Released
Status in python-neutronclient:
  Invalid
Status in python-swiftclient:
  Fix Released
Status in OpenStack Object Storage (swift):
  In Progress

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


References