Are you seeing something different on Alpha 6? I see the same behavior between CPython and Python but I am on a slightly later build - although the list of methods is slightly different (e.g. no __getnewargs__ in IronPython).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vizcayno Sent: Friday, November 09, 2007 3:07 PM To: [email protected] Subject: Re: [IronPython] IronPython 2.0 Alpha 6 Please, type the next: import datetime.datetime dir(datetime.datetime) import datetime dir(datetime.datetime) The results in my winXP SP2 with python 2.5 are: >>> import datetime.datetime Traceback (most recent call last): File , line 0, in ##241 File , line 0, in _stub_##2 ImportError: No module named datetime >>> dir(datetime.datetime) Traceback (most recent call last): File , line 0, in ##247 NameError: name 'datetime' is not defined >>> import datetime >>> dir(datetime.datetime) ['__add__', '__class__', '__delattr__', '__doc__', '__eq__', '__ge__', '__getattribute__', '__getnewargs__', '__gt__', ' hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__nonzero__', '__radd__', '__reduce__', '__ duce_ex__', '__repr__', '__rsub__', '__setattr__', '__str__', '__sub__', 'astimezone', 'combine', 'ctime', 'date', 'day' 'dst', 'fromordinal', 'fromtimestamp', 'hour', 'isocalendar', 'isoformat', 'isoweekday', 'max', 'microsecond', 'min', 'm ute', 'month', 'now', 'replace', 'resolution', 'second', 'strftime', 'time', 'timetuple', 'timetz', 'today', 'toordinal' 'tzinfo', 'tzname', 'utcfromtimestamp', 'utcnow', 'utcoffset', 'utctimetuple', 'weekday', 'year'] >>> _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
