Skip to content

Possible bug in constraint #60

@meatballs

Description

@meatballs

As noted by @alexwlchan in #54

L45 conference_scheduler/lp_problem/constraints.py

    if events[event].tags is not []:

Did you mean to test identity here, or just equality? Since the second half of the comparison will be created every time, I think this always returns True:

>>> [] is not []
True
>>> x = []
>>> x is not []
True

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions