
LinDB: A dictionary type database - Code Review Stack Exchange
2020年7月20日 · class LinDB(): Type hints pair: Dict A dictionary of what? Dict[str, str]? Also, name, pw=None is probably. name: str, pw: Optional[str] = None Overambitious methods. This return type: Union[None, List[Any], bool] is a huge red flag that your query method is not specific enough, and trying to do too many things at once.
python - Attempting an OOP approach for PDF Paranoia
2022年8月13日 · This exercise is called PDF Paranoia and it comes from CH 15 of the book Automate the Boring Stuff With Python - second edition.
Python database powered by SSTable - Code Review Stack Exchange
2020年1月21日 · Stack Exchange Network. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Fetching data from your database in a constructor
2018年8月1日 · First of all, it violates the "tell don't ask" principle: if your OptionInstallItem is not inherently coupled to the database and its actions (and as you do not even record the reference to the refmanager, it obviously isn't) it should not go about scavenging in …