[Python-bugs-list] [ python-Bugs-467811 ] Inability to "see" some module content

noreply@sourceforge.net noreply@sourceforge.net
Thu, 04 Oct 2001 03:29:07 -0700


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

Category: None
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Tibs (Tony J. Ibbs) (tibs)
>Assigned to: Guido van Rossum (gvanrossum)
>Summary: Inability to "see" some module content

Initial Comment:
I am not sure if this is new to 2.2a4 or not - the
problem became evident via trying to use compiler.py,
and this didn't work in 2.2a3 and earlier for different
reasons.

In Python 2.2a4, running on Debian Potato, if one
imports the "dis" module, and attempts to access
(for example) "dis.cmp_op", the result is an 
AttributeError. Some of the module content can be
accessed, some cannot. It does not appear to be
related to the __all__ list within the module.

I append a file showing the problem.

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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-10-04 03:29

Message:
Logged In: YES 
user_id=6380

Note the traceback: you're getting the compiler package from
site-packages. That's not the version that comes with 2.2a4!
Unfortunately there's a bug in the install target for the
Makefile in 2.2a4 that forgets to install the new packages
(compiler and email); get Makefile.pre.in rev 1.60 or later
from CVS for a fix. Or you can manually copy the compiler
package to the right place.

And note that some of the problems with dis are typos: you
typed dir instead of dis a few times.

I'll close this unless you have a real bug to report that
somehow didn't come out...

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

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