__instancecheck__ metaclasses, how do they work: why do I get True when I tuple, why doesn't print run?

Peter J. Holzer hjp-python at hjp.at
Mon Nov 4 17:23:25 EST 2019


On 2019-11-04 14:54:23 +0000, Rhodri James wrote:
> On 04/11/2019 14:33, Veek M wrote:
> > __metaclass__ = whatever; # is python2.x syntax
> 
> But not Python3: see PEP 3115

Doesn't "X is python2.x syntax" imply "X is not python3 syntax"?

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp at hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20191104/655189fe/attachment.sig>


More information about the Python-list mailing list