IronPython
C#ã®å ´åãå¤éç¶æ¿ã¯ã¤ã³ã¿ãã§ã¼ã¹ã使ããã¨ã«ãªãã¾ãããå®è£ ã¯ã©ã¹ã¸ã®å§è²ãæ¸ãã®ãã¡ãã£ã¨é¢åã§ããä¸æ¹ãPythonã¯å®è£ ã®å¤éç¶æ¿ãã§ããã®ã§ãããå©ç¨ãã¦å§è²ã®ææ¸ããææãã§ããªãã試ãã¦ã¿ã¾ãããã¾ãã¯ãå¤éç¶æ¿ãããã¤ã³ã¿ãã§ã¼â¦
ã³ã³ã¹ãã©ã¯ã¿/ããããã£ã¤ã³ã¸ã§ã¯ã·ã§ã³ãå®é¨åã
Excelã®Application.Visibleããããã£ã®è¨å®ã§ãããα6ã§ã¯ app.Visible = True ã¨æ¸ããã¯ãã§ãããα7ã§ã¯ã app.set_Visible(True) ã¨ããªãã¨Excelã表示ãããªããªã£ãæ°ããã¾ãããªãã§ã ãã»ã»ã»
http://d.hatena.ne.jp/akiramei/20071026/1193419839 âwith_statementã使ã£ããã¿ãIronPythonã®ã¡ã¼ãªã³ã°ãªã¹ãã«åãä¸ãããã¦ã http://lists.ironpython.com/pipermail/users-ironpython.com/2007-October/005856.html ããã«å¯¾ããã¬ã¹ãã There wâ¦
IronPython2.0ã§withã使ããªãã¨æã£ã¦ããã®ã§ãããå®ã¯å¯¾è©±åã³ã³ã½ã¼ã«ã ã¨ãã¡ã§ãã¡ã¤ã«ããå®è¡ããåã«ã¯OKã§ããã http://d.hatena.ne.jp/akiramei/20070929/1191045521 âã£ã¦ãã¨ã§ããããwithã使ã£ã¦æ¸ãç´ãã¦ã¿ã¾ãã from __future__ impoâ¦
http://d.hatena.ne.jp/akiramei/20071024/1193248138 æ¨æ¥ã®ç¶ããæè§ãªã®ã§Ruby.NETãCPythonãIronPythonã«ã¤ãã¦ãè¨æ¸¬ãã¦ã¿ã¾ããã Ruby.NET β0.8.1 : 72s Python2.5.1 : 2.14s IronPython2.0α4 : 1.25s Ruby.NETã ãé£ã³ã¬ãã¦é ãã§ãããã¡ã¢ãªä½¿â¦
Pythonã¯ãã¯ããã¯ãèªã¿ãªãããIronPythonã§è²ã ã試ãã import clr from System import Convert,IConvertible for c in 'Hello': print c.GetType(), ord(c) """ System.String 72 System.String 101 System.String 108 System.String 108 System.Strinâ¦
COMãªãã¸ã§ã¯ãã使ãå ´åãMarshal.ReleaseComObjectãå¼ã³ã¾ãããã¨ã«ãªãã®ãè¦çã§ãã http://www.python.org/doc/2.5/whatsnew/pep-343.html#SECTION000910000000000000000 http://www.python.org/doc/2.5/lib/module-contextlib.html ãã®ããããâ¦
ãã£ãã調ã¹ããåã«ãªãã¸ã§ã¯ãã解æ¾ããã¦ããªãã ãã¨ããè¯ããã話ã§ãããåèã¾ã§ã«åä½ãããµã³ãã«ãããã¦ããã¾ããç»åãã¡ã¤ã«ãExcel2007ã®ã¯ã¼ã¯ããã¯ã«å¤æããã¹ã¯ãªããã import sys import clr clr.AddReference('System.Drawing') â¦
å®ã¯ããã£ã¡ãæ¬é¡ãã¡ãã£ã¨ãããéã³ãã¼ã«ãIronPythonã§æ¸ãã¦ãããã¡ã¢ãªä¸è¶³ã¨ã©ã¼ãçºçãã調æ»ãã¦ã¿ãã¨ããã import clr clr.AddReference('Microsoft.Office.Interop.Excel') from Microsoft.Office.Interop import Excel app = Excel.Appliâ¦
ã¡ã¾ã¡ã¾IronPython2.0αã®ã½ã¼ã¹ãèªã¿å§ãã¾ããã大ãã£ã±ã«åããã¨Pythonã³ã¼ããPythonAstã«å¤æããParser(ã¨Tokenizer)ãPythonAstããAst.CodeBlock(IronPythonåå空éããMicorosoft.Scriptingåå空é)ã¸ã®å¤æãILã¸ã®å¤æãå®è¡ã£ã¦ãªæããILâ¦
IronPythonããPython2.4ä»å±ã®urllibã使ãã¨ä¾å¤ãçºçããã®ã§ã FePyãå ¥æããã ããããã«å«ã¾ããIronPythonã®ãã¼ã¸ã§ã³ã¯1.1aã¨å¤ãã§ãããªã®ã§ãææ°ã®IronPythonã®site.pyã« sys.path.append(r"C:\IPCE-r5\Lib") ã¨ãæ¸ãã¦ã©ã¤ãã©ãªã ãã使ãâ¦
IronPythonã®ä¸ç (Windows Script Programming)ä½è : èäºçä¸åºç社/ã¡ã¼ã«ã¼: ã½ãããã³ã¯ ã¯ãªã¨ã¤ãã£ãçºå£²æ¥: 2007/03/28ã¡ãã£ã¢: åè¡æ¬è³¼å ¥: 4人 ã¯ãªãã¯: 31åãã®ååãå«ãããã° (21件) ãè¦ãPythonæ¬ããã¾ããªãã®ã«ãIronPythonæ¬ãã(^â¦
ãªãã¬ã¯ã·ã§ã³ã使ãã°ã¡ã¿ããã°ã©ãã³ã°ãåºæ¥ã¾ãããã¡ãã£ã¨é¢åã§ãããã¨ãã°ã以åãã£ããã¿ã§ããã http://d.hatena.ne.jp/akiramei/20050612/p1 ã¤ã³ã¿ãã§ã¼ã¹ã®å§è²ãèªååããã ããªã®ã«çµæ§ãªã³ã¼ãéã«ãªã£ã¦ãã¾ãããªãã¬ã¯ã·ã§ã³ããâ¦
ããæè¿ãMonoã§S2.NETãåãããã¨è²ã ãã£ã¦ãã¾ãããããã£ã¨åºæ¥ã¾ãããçµå±ãS2.NETã®ã½ã¼ã¹ã³ã¼ããæ¸ãæãã¦ãã¾ãã¾ããã(^^;
http://d.hatena.ne.jp/Kazzz/20060724/p2ãã return this.engine.Evaluate("eval(exp)", this.engine.DefaultModule, ctx); ããã®evalã¯ãªãã¦ãè¯ãããã§ãã engine.Execute("from System import *"); DateTime t = engine.EvaluateAs<DateTime>("DateTime.Now")</datetime>â¦
Python ãã¥ã¼ããªã¢ã« æ²ãããã¨ã«å½å ã ã¨Pythonã¯ããªããã¤ãã¼ãªé¨é¡ã§ãã.NET以åã¯Pythonã«åµã£ã¦ããã®ã§IronPythonã§Pythonã«èå³ãæã¤äººãå¢ããã°ãããªãã£ã¨ãç§ãPythonãè¦ããã¨ãã¯ããã®ãã¥ã¼ããªã¢ã«(å½æã¯ãã¼ã¸ã§ã³ãéãã¾ãããâ¦
http://d.hatena.ne.jp/akiramei/20060723/p3ã®ç¶ããæåã«ç¥ã£ã¦ãããªãã¨ãããªããã¨ã¯ãIronPythonã®ã¯ã©ã¹(å)ã.NETä¸ã§ã¯åã¨ãã¦èªèãããªãã¨ãããã¨ã§ããIronPythonã®ã¯ã©ã¹ã¯ã¡ã³ãã¼ã¨ãã¦Dictionaryãæã£ã¦ãã¦ããã®ä¸ã«ããããã£ããâ¦
http://d.hatena.ne.jp/akiramei/20060702/p1 ä¸è¨ã®ãµã³ãã«ã¯S2.NETã使ã£ã¦ãã¾ããããããIronPythonã使ã£ã¦æ¸ãæãã¦ã¿ã¾ãã
Pythonããã°ã©ããIronPythonãå§ããå ´åã.NETçµé¨è ãªãã¨ã¯ã»ã¨ãã©ãªãã¨æãã®ã§ç°¡åãªãµã³ãã«ãç¨æãã¦ã¿ã¾ããã
IronPythonå´ãã.NETã®ã¯ã©ã¹ã©ã¤ãã©ãªãå¼ã³åºãä¾ã¯è¦ã¾ããã®ã§ãC#ããIronPythonã使ã£ã¦ã¿ã¾ãã
æ¥è¨ã§ä½åº¦ããµãããã¨ãããã¾ãããIronPythonã®ã¯ã©ã¹ã¯.NETã§è¨ãã¨ããã®åã§ã¯ãªããIronPythonç¬èªã®ã¯ã©ã¹ã«ãªã£ã¦ãã¾ã(æããPythonåæ§ã®å®è£ )ã