Can you create an instance of a subclass with an existing instance of the base class?
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Sat Apr 22 18:24:42 EDT 2006
In article <1145736124.831082.34550 at v46g2000cwv.googlegroups.com>,
"Sandra-24" <sandravandale at yahoo.com> wrote:
>Now that is a clever little trick. I never would have guessed you can
>assign to __class__, Python always surprises me in it's sheer
>flexibility.
That's because you're still thinking in OO terms.
More information about the Python-list
mailing list