Right, I definitely am not going to define anything as a global, just want some module level constants instead of hardcoding those values
-
-
I do agree think a object-oriented interface would be more natural than passing an elg handle all over the place.
2 replies 0 retweets 3 likes -
Replying to @michaelhoffman @o_guest and
You're probably right, but I need to learn how to do OO programming first :/
1 reply 0 retweets 1 like -
The OO required here is not fancy. Give it a look. https://docs.python.org/3/tutorial/classes.html#a-first-look-at-classes … http://www.greenteapress.com/thinkpython/html/thinkpython018.html …
2 replies 0 retweets 2 likes -
Replying to @michaelhoffman @o_guest and
The main difference is that I could do elg.function() instead of treating it as a variable to pass into a function, right?
2 replies 0 retweets 0 likes -
Replying to @cMadan @michaelhoffman and
I'm not sure what you mean here because I am not familiar with your code. But the main diff will be that instead of globals they will be
1 reply 0 retweets 0 likes -
properties, i.e., part of an object you pass around.
2 replies 0 retweets 0 likes -
Replying to @o_guest @michaelhoffman and
I'm still trying to understand what a class is--currently it seems like a sort of hybrid of a variable and a module
2 replies 0 retweets 0 likes -
Replying to @cMadan @michaelhoffman and
It's a different paradigm that you ideally should get to grips with as it's core to (learning) Python.
2 replies 0 retweets 0 likes -
My advice is: first understand what an object is and then you will get what a class is, as it's the general case of an object.
1 reply 0 retweets 0 likes
I certainly can't teach this to you over Twitter for more than just the 140 character limit and the terrible threading. 
-
-
Replying to @o_guest @michaelhoffman and
I know, I know. Thanks for all your help thus far.
1 reply 0 retweets 1 like - 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.