Problems with properties
Gerrit Holl
gerrit at nl.linux.org
Fri Oct 14 12:09:56 EDT 2005
Michael Schneider wrote:
> Could someone please point out my error, I have dents in my forehead
> for this one.
> ------------------------------------------------------------------
>
> from unittest import TestCase
> import unittest
Here you need to add:
__metaclass__ = type
this will make your classes new-style.
Gerrit.
--
Temperature in Luleå, Norrbotten, Sweden:
| Current temperature 05-10-14 17:59:48 7.9 degrees Celsius ( 46.3F) |
--
Det finns inte dåligt väder, bara dåliga kläder.
More information about the Python-list
mailing list