Opened 6 years ago

Closed 6 years ago

#11337 closed (invalid)

Possible missing comma in Tutorial Part 1 (but the interpreter is the final authority)

Reported by: thiggins Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords: missing, comma, syntax
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

This is what we have:

INSTALLED_APPS = (

    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'mysite.polls'

)

I'm expecting, with a trailing comma, the following:

INSTALLED_APPS = (

    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'mysite.polls',

)

Change History (1)

comment:1 Changed 6 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

A trailing comma is only necessary for a single item tuple, thus the current code works fine.

Note: See TracTickets for help on using tickets.
Back to Top