ElementTree write() implementation

Asked by Andrew Stromnov

Why ElementTree.write() require 'encoding' to be a keyword argument instead of second positional, as in ET 1.2?

Question information

Language:
English Edit question
Status:
Answered
For:
lxml Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
scoder (scoder) said :
#1

Andrew Stromnov wrote:
> Why ElementTree.write() require 'encoding' to be a keyword argument
> instead of second positional, as in ET 1.2?

ET 1.3 considers them kw-args, too, even if it's not enforced.

Stefan

Can you help with this problem?

Provide an answer of your own, or ask Andrew Stromnov for more information if necessary.

To post a message you must log in.