Thursday, April 30, 2015

I Take It All Back

My post on Python and data abstraction was mistaken: every example I had seen of using the '@property' feature showed how to control access to a variable with the same name as the property. But last week, and found an example showing that you don't need a variable with the property name at all, so it can, indeed, be used to screen moving a variable into a different class. I stand corrected!

No comments:

Post a Comment

Zeno for the computer age

If you wish to better understand Zeno's worry about the continuum, you could do worse than to consider loops in software. Case 1: You...