åæï¼http://python-history.blogspot.com/2009/04/metaclasses-and-extension-classes-aka.html åææ稿è
ï¼Guido van Rossum Pythonã®æåã®å®è£
ã§ã¯ãã¯ã©ã¹èªèº«ããã¡ã¼ã¹ãã¯ã©ã¹ãªãã¸ã§ã¯ãã§ãããå¤æ°ã«å
¥ããããé¢æ°ã®å±æ§ã«æ¸¡ããããä»ã®ãªãã¸ã§ã¯ãã¨åãããã«æ±ããã¨ãã§ãããããããã¯ã©ã¹ãªãã¸ã§ã¯ããä½æããããã»ã¹ã¯ãç³çã«å»ã¾ããæé ããã¨ããå¤æ´ãããã¨ã¯ã§ããªãã£ããå
·ä½çã«èª¬æããã¨ã以ä¸ã®ãããªã¯ã©ã¹å®ç¾©ããã£ãã¨ããã class ClassName(BaseClass, ...): ...ã¡ã½ããå®ç¾©... ã¯ã©ã¹ã®æ¬ä½ã¯ãæ°ããä½ããããã¼ã«ã«è¾æ¸ã®ä¸ã§å®è¡ããããã¯ã©ã¹åããã¼ã¹ã¯ã©ã¹ãæ ¼ç´ãããã¿ãã«ãããã¦ãã®ãã¼ã«ã«è¾æ¸ã®ï¼ã¤ãå
é¨ã®ã¯ã©ã¹ä½æé¢æ°ã«æ¸¡ã
{{#tags}}- {{label}}
{{/tags}}