All Questions
Tagged with getpass initialization
1 question
0
votes
1
answer
116
views
Using getpass() fails in the self.__init__() method but works fine when used functionally. Why is this?
I can't work out what I'm doing wrong here. I want to set up a new user if this class is instantiated and there is no user already pickled. My __init__ method currently looks like this:
class User:
...