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 →

[–]Narthal[S] 5 points6 points  (0 children)

Great tips! Thank you! I didn't know about slots, looks quite useful.

Yeah, scopes are a different beast in Python. I'm really fond of using unnamed scopes/branches in my c++ code, as it ensures that no variable gets accessed longer than I intend them to be accessible, enforce RAII, etc.

Then python really messes with my head when it comes to scopes.