Skip to content

Conversation

legutierr
Copy link

When new package instances were being created, the weight value was not being preserved. This repairs the problem.

When new package instances were being created, the weight value was not being preserved.  This repairs the problem.
weight = thispackage.weight
for dimensions in set(permutations((thispackage[0], thispackage[1], thispackage[2]))):
thispackage = Package(dimensions, nosort=True)
thispackage.weight = weight

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just putting this in the above initialization instead?

thispackage = Package(dimensions, weight=weight, nosort=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants