Popular Python recipes tagged "named"http://code.activestate.com/recipes/langs/python/tags/named/2012-12-14T19:39:04-08:00ActiveState Code RecipesPython DBAPI 2 "qmark" to "named" paramstyle (Python)
2012-12-14T19:39:04-08:00Steve Howehttp://code.activestate.com/recipes/users/4184602/http://code.activestate.com/recipes/578380-python-dbapi-2-qmark-to-named-paramstyle/
<p style="color: grey">
Python
recipe 578380
by <a href="/recipes/users/4184602/">Steve Howe</a>
(<a href="/recipes/tags/dbapi/">dbapi</a>, <a href="/recipes/tags/named/">named</a>, <a href="/recipes/tags/paramstyle/">paramstyle</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/qmark/">qmark</a>, <a href="/recipes/tags/sqlite/">sqlite</a>, <a href="/recipes/tags/sqlite3/">sqlite3</a>).
</p>
<p>Allows to use "named"-style params with drivers that support only "qmark"-style, as sqlite3.</p>
Named constant type (Python)
2012-06-13T13:43:47-07:00Giampaolo RodolĂ http://code.activestate.com/recipes/users/4178764/http://code.activestate.com/recipes/577984-named-constant-type/
<p style="color: grey">
Python
recipe 577984
by <a href="/recipes/users/4178764/">Giampaolo RodolĂ </a>
(<a href="/recipes/tags/constant/">constant</a>, <a href="/recipes/tags/named/">named</a>, <a href="/recipes/tags/python/">python</a>).
Revision 7.
</p>
<p>A simple constant type which overrides the base integer type to provide a useful name on str().</p>