{"push_id":802318723,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"63a1dc16b118a4fcd312a4b0c3a9693e99bf4842","before":"d869d1e092e8784d1964c5791b37dd2d4a5eba4f","commits":[{"sha":"6b7a3c8851d731ef4ee4a3e54b4072a0886ed72b","author":{"email":"bfcdf3e6ca6cef45543bfbb57509c92aec9a39fb@waveform.org.uk","name":"Dave Jones"},"message":"Fix #25\n\nAdd a nice __repr__ to the GPIODevice base class.\n\nThis isn't much but generally I think `__repr__` implementations should\nbe deliberately simple: firstly, they're frequently used for debugging\nso if they're at all complex you risk making a debugging tool buggy\n(very annoying!). Secondly, if you pour too much info into them you risk\nmaking the debugging output cluttered, so I tend to prefer keeping it to\nstraight-forward simple to retrieve/calculate info without excessive\ndetail (if the user wants more, they can always query it directly).\n\nThere is one refinement here: in SmoothedInputDevice, `__repr__` is\ntweaked to ensure that when partial is False (the default), and the\nqueue isn't filled, `__repr__` doesn't block (because it should *never*\nblock).","distinct":true,"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/commits/6b7a3c8851d731ef4ee4a3e54b4072a0886ed72b"},{"sha":"63a1dc16b118a4fcd312a4b0c3a9693e99bf4842","author":{"email":"73675debcd8a436be48ec22211dcf44fe0df0a64@bennuttall.com","name":"Ben Nuttall"},"message":"Merge pull request #31 from waveform80/nice-repr\n\nFix #25","distinct":true,"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/commits/63a1dc16b118a4fcd312a4b0c3a9693e99bf4842"}]}