[Python-Dev] Re: cmd.Cmd.prompt should be an instance attribute

2021年6月26日 10:13:06 -0700

Sorry, that implementation should have been
 class Cmd:
 PROMPT = '> '
 @property
 def prompt(self) -> str:
 return self.PROMPT
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/Q7TSFJD4EPUXXJFT5TMBUODIVL4CLR4O/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to