As the question says, what is the difference between:
x.getiterator()and x.iter(), where xis the ElementTree element or element? Because it works for both, I tried.
x.getiterator()
x.iter()
x
If I'm wrong somewhere, please correct me.
getiterator- standard spelling ElementTreefor this method; iteris the lxml-only equivalent method , which will stop your code from working in ElementTreeif you need it, and it seems to have no redeeming qualities other than saving you from entering another 7 characters for the method name;).
getiterator
ElementTree
iter
lxml
Python ElementTree , getiterator() , 2.7, Element.iter(). API lxml , , getiterator() lxml ElementTree.
getiterator()
Element.iter()
, , " , tree.iter()". "", , getiterator() iter(), 100% .
iter()
, - , , , .
Source: https://habr.com/ru/post/1750838/More articles:С# Оператор DateTime + = - c#Cocoa Selector Question - parametersCSS: how to have different sizes for each font - cssXML Не удается получить значение дочернего node: С# - c#Capturing a click anywhere inside gtk.Window - pythonHow to get QueryString from href? - securityType Requirements for std :: list - c ++Make MessageBox stay on top of other windows - windowsJava Indentation - emacsHow to resize an image from Uri? - androidAll Articles