PR
Calendar
Keyword Search
Category
Free Space
IronPython 1.1.1 (1.1.1) on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import sys
>>> sys.path.append("\\python24\\lib")
>>> import urllib
>>> import urlparse
>>> url="http://www.python.jp/pub/doc_jp/pdf-a4-2.4.zip"
>>> filename=urlparse.urlparse(url)[2].split("/")[-1]
>>> filename
'pdf-a4-2.4.zip'
>>> urllib.urlretrieve(url, filename)
Traceback (most recent call last):
File System, line unknown, in Read
File System, line unknown, in Receive
File System, line unknown, in Receive
File , line 0, in <stdin>##171
File E:\python24\lib\urllib.py, line 89, in urlretrieve
File E:\python24\lib\urllib.py, line 248, in retrieve
File , line 0, in Read##166
File System, line unknown, in Read
IOError: 転送接続からデータを読み取れません:
破棄されたオブジェクトにアクセスできません。
オブジェクト名 'System.Net.Sockets.Socket' です。。
>>> url="http://www.codeplex.com/IronPython/Project/ProjectRss.aspx"
>>> src=urllib.urlopen(url).read()
Traceback (most recent call last):
File System, line unknown, in Read
File System, line unknown, in Receive
File System, line unknown, in Receive
File , line 0, in <stdin>##82
File , line 0, in Read##165
File System, line unknown, in Read
IOError: 転送接続からデータを読み取れません:
破棄されたオブジェクトにアクセスできません。
オブジェクト名 'System.Net.Sockets.Socket' です。。
>>> dir("")
['__add__', '__class__', '__cmp__', '__contains__', '__doc__', '__eq__',
'__getitem__', '__getnewargs__', '__getslice__', '__init__', '__len__', '__mod__',
'__module__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',
'__repr__', '__rmul__', '__str__', 'capitalize', 'center', 'count', 'decode',
'encode', 'endswith', 'expandtabs', 'find', 'index', 'isalnum', 'isalpha',
'isdecimal', 'isdigit', 'islower', 'isnumeric', 'isspace', 'istitle', 'isunicode',
'isupper', 'join', 'ljust', 'lower', 'lstrip', 'replace', 'rfind', 'rindex',
'rjust', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip',
'swapcase', 'title', 'translate', 'upper', 'zfill']
>>> import clr
>>> dir("")
['Add', 'Capitalize', 'Center', 'Clone', 'Compare', 'CompareOrdinal',
'CompareTo', 'Concat', 'Contains', 'Copy', 'CopyTo', 'Count', 'Decode', 'Empty',
'Encode', 'EndsWith', 'Equals', 'EqualsRetBool', 'ExpandTabs', 'Finalize', 'Find',
'Format', 'GetEnumerator', 'GetHashCode', 'GetLength', 'GetNewArgs', 'GetSlice',
'GetType', 'GetTypeCode', 'Index', 'IndexOf', 'IndexOfAny', 'Insert', 'Intern',
'IsAlnum', 'IsAlpha', 'IsDecimal', 'IsDigit', 'IsInterned', 'IsLower',
'IsNormalized', 'IsNullOrEmpty', 'IsNumeric', 'IsSpace', 'IsTitle', 'IsUnicode',
'IsUpper', 'Join', 'LJust', 'LStrip', 'LastIndexOf', 'LastIndexOfAny', 'Length',
'Lower', 'Make', 'MakeDynamicType', 'MemberwiseClone', 'Modulus', 'Multiply',
'Normalize', 'NotEquals', 'PadLeft', 'PadRight', 'RFind', 'RIndex', 'RJust',
'RSplit', 'RStrip', 'Reduce', 'ReferenceEquals', 'Remove', 'Replace',
'ReverseMultiply', 'Split', 'SplitLines', 'StartsWith', 'Strip', 'Substring',
'SwapCase', 'Title', 'ToCharArray', 'ToLower', 'ToLowerInvariant', 'ToString',
'ToUpper', 'ToUpperInvariant', 'Translate', 'Trim', 'TrimEnd', 'TrimStart',
'Upper', 'ZFill', '__add__', '__class__', '__cmp__', '__contains__', '__doc__',
'__eq__', '__getitem__', '__getnewargs__', '__getslice__', '__init__', '__len__',
'__mod__', '__module__', '__mul__', '__ne__', '__new__', '__reduce__',
'__reduce_ex__', '__repr__', '__rmul__','__str__', 'capitalize', 'center',
'count', 'decode', 'encode', 'endswith', 'expandtabs', 'find', 'index', 'isalnum',
'isalpha', 'isdecimal', 'isdigit', 'islower', 'isnumeric', 'isspace', 'istitle',
'isunicode', 'isupper', 'join', 'ljust','lower', 'lstrip', 'replace', 'rfind',
'rindex', 'rjust', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith',
'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
>>> "".GetType().Fullname
'System.String'
>>> o = object()
>>> type(o)
<type 'object'>
>>> o.GetType().FullName
'System.Object'
「IronPythonでのnullは? 」と尋ねられて… 2009.04.11
IronPython 2.0 Beta 2 2008.05.03
新しい出版の形と IronPython 本 2008.04.28 コメント(1)