SizedRegexString was truly evil. Also, it seems like checking for positive float using descriptors yields recursion problems. Gonna give it a thought and edit this once I find out why. Update: I used setattr in the Positive value-check, which for some reason didn't raise an error with type Int, but did with Float. Fixed by overriding instance.__dict__ instead. Update 2: Yes, I realized I should've used super().
this is great, makes things more clear.
I enjoyed every bit of this presentation
SizedRegexString was truly evil.
Also, it seems like checking for positive float using descriptors yields recursion problems. Gonna give it a thought and edit this once I find out why.
Update: I used setattr in the Positive value-check, which for some reason didn't raise an error with type Int, but did with Float. Fixed by overriding instance.__dict__ instead.
Update 2: Yes, I realized I should've used super().
why did you upload this twice?
twice the better.