on_* should get relevant, but optional attributes (like on_pass does) #95

Closed
opened 2017-02-18 18:51:18 +01:00 by nik · 0 comments
nik commented 2017-02-18 18:51:18 +01:00 (Migrated from edugit.org)

The new on_pass method for Locations gets the passing player as an argument. The other on_* methods do not get any extra information.

We should either always pass the relevant information, or never. Please decide and fix accordingly ☺.

Please make on_pass and the others take optional arguments if you decide to pass extra information. Personally, I would use **kwargs for that and pass the relevant objects as keyword arguments.

The new on_pass method for Locations gets the passing player as an argument. The other on_* methods do not get any extra information. We should either always pass the relevant information, or never. Please decide and fix accordingly ☺. Please make on_pass and the others take *optional* arguments if you decide to pass extra information. Personally, I would use **kwargs for that and pass the relevant objects as keyword arguments.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nik/veripeditus-server#95
No description provided.