[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python coding help: Has anybody seen this syntax



On Thu, 13 Feb 2014, Andreas Tille wrote:


> which ends up in


>   File "/usr/share/spades/pyyaml3/__init__.py", line 284
>     class YAMLObject(metaclass=YAMLObjectMetaclass):

that is the python3 way to say

class YAMLObject:
 __metaclass__ = YAMLObjectMetaclass

in python2

-- 
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate,     Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        


Reply to: