Skip to content
Browse files

Added 'How this is possible' section to docs/db-api.txt, describing k…

…eyword arguments in the API

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f5b22bf commit 05d074670a069465d2e4fad2ff1e716f59a61bed @adrianholovaty adrianholovaty committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 docs/db-api.txt
8 docs/db-api.txt
@@ -47,6 +47,12 @@ translates (roughly) into the following SQL:
SELECT * FROM polls_polls WHERE pub_date < NOW();
+.. admonition:: How this is possible
+ Python has the ability to define functions that accept arbitrary name-value
+ arguments whose names and values are evaluated at run time. For more
+ information, see `Keyword Arguments`_ in the official Python tutorial.
The DB API supports the following lookup types:
=========== ==============================================================
@@ -113,6 +119,8 @@ statements are equivalent::
+.. _`Keyword Arguments`:

0 comments on commit 05d0746

Please sign in to comment.
Something went wrong with that request. Please try again.