Edgewall Software

Opened 9 years ago

Closed 9 years ago

#599 closed defect (invalid)

function defined() does not work when checking a dict()

Reported by: samson.justice@… Owned by: cmlenz
Priority: major Milestone: 0.7
Component: Template processing Version: 0.6
Keywords: defined, dict, typeerror Cc:

Description

When attempting to use the built in function defined() checking a name that is dict type defined() throws the error: TypeError?: unhashable type: 'dict'

Change History (1)

comment:1 Changed 9 years ago by hodgestar

  • Resolution set to invalid
  • Status changed from new to closed

The defined() function takes a name, not an arbitrary object. I think you probably want defined('dict') and not defined(dict)?

Note: See TracTickets for help on using tickets.