Here you'll find a record of the changes in each version of pytool
.
- Improve documentation.
- Add
for_json()
hook inpytool.json.as_json
. - Add
__repr__()
topytool.time.UTC
to make it prettier. - Add support for
_asdict()
hook (implemented bynamedtuple
) even when not usingsimplejson
. - Fix
pytool.time.is_dst
test. - Add
for_json()
hook topytool.proxy.DictProxy
andpytool.proxy.ListProxy
.
- Fix descriptor protocol in iteritems.
Implement a instance-descriptor read-only protocol for
pytool.lang.Namespace
objects. This means you can assign descriptor instances to Namespace instances, and their values can be read, but not set.This differs from normal python descriptor behavior, where the descriptor instance must be present in the class rather than the instance.
- Make
pytool.lang.Namespace
instances evaluate asFalse
when empty and cast as abool()
.
- Added
pytool.proxy.DictProxy
andpytool.proxy.ListProxy
.
- Added
pytool.lang.hashed_singleton
.
- Update setup.py to include classifiers.
- Add
pytool.time.floor_minute
andpytool.time.floor_week
. - Change
pytool.time.floor_month
andpytool.time.floor_day
to preserve timezone information.
Sorry, I was lazy and didn't keep a Changelog until 2.0. Apologies!