[IronPython] IronPython 2.0 Alpha 6

Dino Viehland dinov at exchange.microsoft.com
Sat Nov 10 00:10:40 CET 2007

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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Vizcayno
Sent: Friday, November 09, 2007 3:07 PM
To: users at lists.ironpython.com
Subject: Re: [IronPython] IronPython 2.0 Alpha 6

Please, type the next:

import datetime.datetime
import 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
Users at lists.ironpython.com

More information about the Ironpython-users mailing list