versionone / VersionOne.SDK.Python

A library for custom Python development against the VersionOne Platform's REST-based API.
BSD 3-Clause "New" or "Revised" License
23 stars 32 forks source link

Replace elementtree #13

Open guitarmanvt opened 10 years ago

guitarmanvt commented 10 years ago

Elementtree hasn't been updated in 7 years--and is not compatible with Python 3. Would you consider using a more well-maintained XML parser, such as lxml, or (my favorite) BeautifulSoup4?

jkoberg commented 10 years ago

Of course. Can you give me some hints on porting effort? Would that be an easy conversion?

guitarmanvt commented 10 years ago

Unfortunately, all my work porting code from elementtree to lxml or BeautifulSoup has been non-trivial. It's not too hard, but these libraries work a little differently.

That said, I love BeautifulSoup. It makes accessing XML much more "pythonic."

For the Python 3 support, you might get almost all the way there by running the 2to3 conversion tool on your source files. Often, it's little things (like "print()") that keep something from being compatible with Python 3.

mtalexan commented 6 years ago

elementtree is (now) supported by Python3. It's part of the base of Python3.5, though I'm not sure which version it came in on originally.