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

noreply@sourceforge.net noreply@sourceforge.net
Wed, 06 Mar 2002 14:04:30 -0800


Bugs item #526102, was opened at 2002-03-05 21: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: Deleted
>Resolution: Invalid
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: Martin v. Löwis (loewis)
Date: 2002-03-06 23:04

Message:
Logged In: YES 
user_id=21627

Closed on request of submitter.

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

Comment By: Charlie Fly (cfly)
Date: 2002-03-05 22: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