[Python-bugs-list] [ python-Bugs-526102 ] Namespace error with UserList

noreply@sourceforge.net noreply@sourceforge.net
Tue, 05 Mar 2002 13:01:37 -0800


Bugs item #526102, was opened at 2002-03-05 20:30
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=526102&group_id=5470

Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Charlie Fly (cfly)
Assigned to: Nobody/Anonymous (nobody)
Summary: Namespace error with UserList

Initial Comment:
I may be misunderstanding something about the merging 
of type/class and this may not be a bug.  But here 
goes.

import UserList

class A( UserList ):
   def __init__( self ):
      UserList.UserList.__init__( self )

a = A()

results in

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'module' object is not callable

It appears that the name UserList being both module 
and class name is getting confused in the module 
namespace.


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

>Comment By: Charlie Fly (cfly)
Date: 2002-03-05 21:01

Message:
Logged In: YES 
user_id=149625

This is not a bug.  I just inherited from a module.  Opps.  
I don't know how to withdraw this thing.

cfly

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

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