Steven Vascellaro added the comment:
@matanya.stroh: Don't forget to erase the asterisks if the user hits backspace.
```
def win_getpass(prompt='Password: ', stream=None, show_asterisks=False):
"""Prompt for password with echo off, using Windows getch().&
New submission from Steven Vascellaro :
Support password masking in getpass.getpass()
Currently, getpass.getpass() hides all user input when entering a password.
This can throw off non-Unix users who are used to passwords being masked with
asterisks *. This has led some users to write their
Steven Vascellaro added the comment:
Alternatively, the most intuitive solution would be to give `Element` an
explicit `__str__` method.
The current behavior of `str(Element)` is to return the object's location in
memory.
```
from xml.etree import ElementTree
xml = ElementTree.El
New submission from Steven Vascellaro :
In Python 3.6, converting an xml `xml.etree.ElementTree.Element` to a string is
done using `xml.etree.ElementTree.tostring()`.
```
from xml.etree import ElementTree
xml = ElementTree.Element('Person', Name='John')
print(Elem