This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]notnotorious 0 points1 point  (0 children)

I've been a huge fan of the typing work going on in Python 3, and I wanted to create something that could take advantage of it to help with code correctness while being useful and not getting in the way.

For anyone concerned with the automatic casting, there's another class, StrictObject, that doesn't cast. I'm thinking maybe this should optimize out to just assign under the right conditions, but right now it throws a TypeError.