Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed custom_methods model test/doc to add explanation of what Arti…

…cle(*row) means, for Python beginners

git-svn-id: http://code.djangoproject.com/svn/django/trunk@363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a4438d74f666e1f5b9e8e0c13463ec5e62a1e11f 1 parent b307fb0
Adrian Holovaty authored August 01, 2005

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  tests/testapp/models/custom_methods.py
2  tests/testapp/models/custom_methods.py
@@ -48,6 +48,8 @@ def get_articles_from_same_day_2(self):
48 48
             FROM custom_methods_articles
49 49
             WHERE pub_date = %s
50 50
                 AND id != %s""", [str(self.pub_date), self.id])
  51
+        # The asterisk in "Article(*row)" tells Python to expand the list into
  52
+        # positional arguments to Article().
51 53
         return [Article(*row) for row in cursor.fetchall()]
52 54
 
53 55
 API_TESTS = """

0 notes on commit a4438d7

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