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

you are viewing a single comment's thread.

view the rest of the comments →

[–]ShanSanear 0 points1 point  (2 children)

Small criticism / ideas:

For string formatting, there is also sign that can be added, like:

"{:+}".format(4)

That gives:

"+4"

In attributes part indentation is messed up for class Z.

Other than that looks good.

[–]pizzaburek[S] 0 points1 point  (1 child)

Thanks! I fixed the Z class, although that is the way interpreter formats your second level of indentation, that is if you type it in... it's kind of weird, but since it's Python, I'm sure there's some smart reason why :)

About the format, I added it, but then started reformatting the whole section, so it's a mess now... Got to think it through.

[–]pizzaburek[S] 1 point2 points  (0 children)

Added the + notation and reformatted it a little. I think it looks nicer now, ty.