Skip to content

A string accidentally becomes a tuple #380

@crayday

Description

@crayday

Location within the Book

  • Book order number: 0131284941
  • Book build date: 2021-06-30
  • Book format: PDF
  • Chapter: 29
  • Section: 3

Description

in [1]: cheese = Cheese.objects.create(
... name='Colby',
... description=('Similar to Cheddar but without undergoing'
'the cheddaring process, Colby is a mild,'
'creamy cheese that was first created in 1885',
'in Colby, Wisconsin.'),
... firmness=Cheese.Firmness.SEMI_HARD)

The extraneous comma after "1885" turns a string into a tuple.

Possible Solutions

Remove the extraneous comma after "1885".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions