{"push_id":1373363156,"size":3,"distinct_size":3,"ref":"refs/heads/initial-approximate-dates","head":"a7f7ed9b2ae79b0af22bd95104b0edf71daf7a83","before":"08e356b0b6b8b6b4661e153d9ab340f8a30d027e","commits":[{"sha":"f46a2c3599ae0ab86313ae570a7aaf5527c50748","author":{"name":"Mark Longair","email":"8e89b1c87e4a74258cfd7179ff301b73cdafa205@pobox.com"},"message":"Add a simple model to represent approximate dates\n\nThis is probably best as a separate package on PyPi ultimately, but for\ninitial development it's convenient to have it same repository.\n\nThe ApproxDate class is aiming to be as flexible as possible by\ninternally representing approximate dates with two datetime.date\nobjects, representing the earliest and latest possible dates that that\napproximate date might represent.  This will make it easy in the future\nto support testing whether approximate dates might overlap, for example,\nor approximate dates that represent \"some time before 1900\", say.","distinct":true,"url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/commits/f46a2c3599ae0ab86313ae570a7aaf5527c50748"},{"sha":"e689f47cc2a14915201b0a7fd5d39aee1f246ecb","author":{"name":"Mark Longair","email":"8e89b1c87e4a74258cfd7179ff301b73cdafa205@pobox.com"},"message":"Define __eq__ and __ne__ for ApproxDate\n\nThis includes returning true where you have an ApproxDate precise to the\nday on the left hand side of a comparison, and a Python datetime.date on\nthe right hand side.\n\nThis is slightly weird behaviour, since you have the following:\n\n  In [1]: from datetime import date\n\n  In [2]: from approx_dates.models import ApproxDate\n\n  In [4]: approx_date = ApproxDate.from_iso8601('2016-12-25')\n\n  In [5]: datetime_date = date(2016, 12, 25)\n\n  In [6]: approx_date == datetime_date\n  Out[6]: True\n\n  In [7]: datetime_date == approx_date\n  Out[7]: False\n\n... and I don't think there's an easy way to make that symmetrical.\nHowever, this is nice because it happens that the tests in popolo_data\nall have the expected datetime.date on the right hand side, so tests\nstill pass.  We may want to rethink this later, however.","distinct":true,"url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/commits/e689f47cc2a14915201b0a7fd5d39aee1f246ecb"},{"sha":"a7f7ed9b2ae79b0af22bd95104b0edf71daf7a83","author":{"name":"Mark Longair","email":"8e89b1c87e4a74258cfd7179ff301b73cdafa205@pobox.com"},"message":"Use ApproxDate objects for date properties to support partial dates\n\nFixes #1","distinct":true,"url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/commits/a7f7ed9b2ae79b0af22bd95104b0edf71daf7a83"}]}
{"actor":{"display_login":"mhl"}}