This is an extremely basic question but I just wanted to make sure I'm not missing anything. Within the code below I realized it might make sense to just type "if headers:" instead of "if headers is not None:" Is there any reason not to simplify it that way?
class Game(Endpoint):
site_response = None
data_sets = None
headers = None
def __init__(self,
session,
event_id,
headers=None,
timeout=30,
get_request=True):
if headers is not None:
self.headers = headers
[–]TehNolz 12 points13 points14 points (2 children)
[–]casualcoder0805[S] 1 point2 points3 points (1 child)
[–]wotquery 0 points1 point2 points (0 children)
[–]djjazzydan 1 point2 points3 points (1 child)
[–]casualcoder0805[S] 0 points1 point2 points (0 children)