-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Which coding standards/PEP guides are you planning to adhere to.
As this is a python library aimed at python users(presumably) the PEPs would be a good place to start.
Also when implementing the classes there are a couple options regarding the OOP interface as I see it:
- literal translations so
getPos playerbecomesplayer.getPos(). orplayer.get_pos() @propertydecorator to wrap the calls to the DLL to the user so thatgetPos playerbecomesplayer.pos, andplayer setPos [a,b,c]becomesplayer.pos = [a,b,c].- Both of the above, having one approach call the other for example. This illustrates both approaches, and is therefor less pythonic ("one way to do something").
class RV_Object(object):
def __init__(self):
# todo
pass
@property
def pos(self)->tuple:pass
@pos.setter
def pos(self, pos:tuple)->None:pass
def get_pos(self)->tuple: pass # todo
def set_pos(self, pos:tuple)->None: pass # todoMetadata
Metadata
Assignees
Labels
No labels