MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/c1zxl9/deleted_by_user/erm4u2r/?context=3
r/badcode • u/[deleted]
[deleted] — view deleted post
92 comments sorted by
View all comments
Show parent comment
2
The use of global makes it especially bad.
global
2 u/BS_BlackScout Jun 20 '19 edited Jun 20 '19 I am not particularly great at Python but while making this mess it occurred that the variable was out of scope so I remembered that I could do that global thing and thought: "Well, it's meant to be shit so why bother"
I am not particularly great at Python but while making this mess it occurred that the variable was out of scope so I remembered that I could do that global thing and thought: "Well, it's meant to be shit so why bother"
View all comments
Show parent comment
2
u/Jonno_FTW shameless Jun 20 '19
The use of
globalmakes it especially bad.