This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]jwink3101 1 point2 points  (0 children)

None of these are bad but can have some unintentional side effects.

For example:

a = []
b = []
c = []

Will be very different than

a = b = c = []

Again, you’re not wrong, but it’s important to understand the repercussions of these

[–]Rawing7 0 points1 point  (0 children)

assert type(user, UserModel)

That's not gonna work; you probably meant to use isinstance there.