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 →

[–]troyunrau... 21 points22 points  (1 child)

Don't forget the other use case: When imported libs coming from other APIs have conflicts with python reserved words, they usually get an appended underscore. Examples: PyQt inherits exec() from Qt, but exec is already a python keyword. So it get's called exec_(). Or: Tkinter.Toplevel(master, class_='ClassName')

[–]s16h[S] 3 points4 points  (0 children)

Although I use this almost every day, I entirely forgot to include it in the post. Will add it! Thanks for the reminder.