What are the Difference between cElementtree and ElementTree?

后端 未结 5 1785
感动是毒
感动是毒 2021-01-01 14:00

I know a little of dom, and would like to learn about ElementTree. Python 2.6 has a somewhat older implementation of ElementTree, but still usable. However, it looks like it

5条回答
  •  情书的邮戳
    2021-01-01 14:09

    ElementTree is implemented in python while cElementTree is implemented in C. Thus cElementTree will be faster, but also not available where you don't have access to C, such as in Jython or IronPython or on Google App Engine.

    Functionally, they should be equivalent.

提交回复
热议问题