kissxml icon indicating copy to clipboard operation
kissxml copied to clipboard

none returned in a loop

Open mzupan opened this issue 14 years ago • 4 comments

There is an issue.. if you use the following xml

Joe Stump Brown Beer Bikes Computers
<items>
    <item>item 1</item>
</items>

and running the following python

for item in xml.items.item:
    print item

You get an infinate loop with None printed over and over

mzupan avatar Mar 03 '10 13:03 mzupan

this xml also breaks the class

Joe Stump Brown Beer

mzupan avatar Mar 03 '10 15:03 mzupan

This is fixed in https://github.com/jaysonsantos/python-simplexml/commit/23dedc003932f2659ebc5adcfa6b43885d895a2f

jaysonsantos avatar Oct 23 '12 16:10 jaysonsantos

Can you submit that fix as a separate pull request so I can get it merged in?

joestump avatar Oct 24 '12 19:10 joestump

Sure, I will cherrypick it in another branch. Jayson Reis

On Wed, Oct 24, 2012 at 5:49 PM, Joe Stump [email protected] wrote:

Can you submit that fix as a separate pull request so I can get it merged in?

— Reply to this email directly or view it on GitHubhttps://github.com/joestump/python-simplexml/issues/1#issuecomment-9753764.

jaysonsantos avatar Oct 25 '12 18:10 jaysonsantos