Discussion Overview
The discussion revolves around how to modify user input in Python so that it displays as asterisks while typing, similar to password input. Participants explore various methods and modules available in Python, including raw_input, getpass, curses, and Tkinter, to achieve this functionality.
Discussion Character
- Homework-related
- Technical explanation
- Exploratory
Main Points Raised
- One participant inquires about using raw_input to mask input with asterisks while typing.
- Another suggests modifying the getpass module to achieve the desired effect, noting it may only work in terminal environments.
- A participant reports an issue with getpass on a PC, receiving warnings about echo control on the terminal.
- There is a question about using the curses module for this purpose.
- Another participant mentions that using cmd might be necessary for certain functionalities and suggests using sys.stdin or msvcrt to print asterisks instead.
- One participant clarifies their goal is to create a game where input should not be visible to another player and asks about deleting displayed lines.
- There is a question regarding whether the implementation is in terminal or GUI.
- A suggestion is made that Tkinter has an option for a text entry box that can mask input with asterisks.
- Another participant confirms they are using a GUI and seeks clarification on the mentioned modules.
- It is noted that Tkinter is the default GUI toolkit for Python and that it should have provisions for password entry.
Areas of Agreement / Disagreement
Participants express various methods to achieve the input masking, but there is no consensus on a single solution. Multiple approaches are discussed, and some participants express uncertainty about the effectiveness of certain methods in different environments.
Contextual Notes
Limitations include potential issues with terminal compatibility, the specific environment being used (PC, terminal, or GUI), and the need for further clarification on the capabilities of different Python modules.