[Python-bugs-list] [ python-Bugs-476194 ] dir(Ellipsis)

noreply@sourceforge.net noreply@sourceforge.net
Mon, 29 Oct 2001 18:42:23 -0800


Bugs item #476194, was opened at 2001-10-29 16:00
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=476194&group_id=5470

Category: Type/class unification
>Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Guido van Rossum (gvanrossum)
Summary: dir(Ellipsis)

Initial Comment:
Seems like dir(Ellipsis) in 2.2 should return a non-
empty list that includes __class__, etc. just like the 
other builtin types

C:\>python
Python 2.2b1 (#25, Oct 19 2001, 11:44:52) [MSC 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for 
more information.
>>>
>>> dir(None)
['__class__', '__delattr__', '__getattribute__', '__has
h__', '__init__', '__new__', '__reduce__', '_
_repr__', '__setattr__', '__str__']
>>> Ellipsis
Ellipsis
>>> dir(Ellipsis)
[]
>>>

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-10-29 18:42

Message:
Logged In: YES 
user_id=6380

Thanks for noticing.  I've fixed this now in CVS,
sliceobject.c 2.10.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=476194&group_id=5470