← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 ghaering
收信人 ghaering, sgala
日期 2010-03-22.23:30:52
SpamBayes Score 4.9786913e-10
Marked as misclassified 否
Message-id <1269300654.79.0.347620165775.issue8196@psf.upfronthosting.co.za>
In-reply-to
内容
Thanks for bringing this up.

By changing this we would maybe be a little bit closer to PEP 0249. I don't get why the PEP author thinks that 'qmark' is less clear than 'numeric', though. I think they're equally clear.

The real reason why I object changing anything here, however, is that by changing the paramstyle we would break backwards compatibility. Third-party software like ORMs might depend on sqlite3 having paramstyle 'qmark'.

So now someone might suggest to make paramstyle an instance of a subclass of string that will successfully compare against both 'qmark' and 'named'. To which possible suggestion I say forget it. You cannot anticipate how people will really access the paramstyle. And if it would make a difference in real-world scenarios.
历史
日期 用户 动作 参数
2010-03-22 23:30:54ghaering修改recipients: + ghaering, sgala
2010-03-22 23:30:54ghaering修改messageid: <1269300654.79.0.347620165775.issue8196@psf.upfronthosting.co.za>
2010-03-22 23:30:53ghaering链接issue8196 messages
2010-03-22 23:30:52ghaering创建