Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Fix the instantiation of new objects #79
Conversation
| def __init__(self, prop_dict={}): | ||
| self._prop_dict = prop_dict | ||
| def __init__(self, prop_dict=None): | ||
| self._prop_dict = prop_dict if prop_dict else {} |
cdmayer
Nov 7, 2016
Contributor
self._prop_dict = prop_dict if prop_dict else {}
I would go with prop_dict if prop_dict is not None else {} because it reads a bit better
| @@ -30,7 +30,7 @@ | |||
| class AsyncOperationStatus(OneDriveObjectBase): | |||
|
|
|||
| def __init__(self, prop_dict=None): | |||
| self._prop_dict = prop_dict if prop_dict else {} | |||
| self._prop_dict = prop_dict if prop_dict not None else {} | |||


Fixes bug #78