Incorporating changes in swift for py3 compatibility.

Bug #1464981 reported by janonymous
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Invalid
Wishlist
janonymous

Bug Description

py3 compatibility could be provided by Solving few mentioned issues among many

 *Provide compatibility with python 3 , like Replace it.next() with next(it)

 *Replacing dict.keys() which stores an entire list in memory to dict.iterkeys(). (which does not consume memory by keeping entire list in memory) ==> (furthur these methods might have to be imported from six package.)

*Convert the result of keys(), values() and items() dict method to list
when a list is expected. On Python 3, these methods now return an
iterator, not a list.

I could also register this as a blueprint but i was not sure it would be acceptable so i logged it as a bug/suggestion.
Kindly provide your valuable comments on the same.

janonymous (janonymous)
Changed in swift:
assignee: nobody → janonymous (janonymous)
Revision history for this message
janonymous (janonymous) wrote :

If Confirmed i am happy to contribute for the same. :)

Revision history for this message
janonymous (janonymous) wrote :

A Sample of iter.next() -> next(iter) are attached.

Revision history for this message
Christian Schwede (cschwede) wrote :

There are already several patches to add py3 support in Swift: https://review.openstack.org/#/q/status:open+project:openstack/swift+branch:master+topic:py3,n,z

Just to make sure work is not done twice :)

Revision history for this message
janonymous (janonymous) wrote :

Yes, you are right Christian, but the one i mentioned were not among them , so just mentioned them here . :)

Revision history for this message
John Dickinson (notmyname) wrote :

The (currently non-voting) py3 gate job will let us know when this is "done"

Changed in swift:
status: New → In Progress
importance: Undecided → Wishlist
Revision history for this message
clayg (clay-gerrard) wrote :

This is a huge ongoing effort:

https://review.openstack.org/#/q/project:openstack/swift+branch:master+topic:py3,n,z

I don't think this bug is the best way to track this OpenStack wide goal?

Changed in swift:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.