[Python-bugs-list] [ python-Bugs-406642 ] 2.1b1 from socket import* omits errorTab

noreply@sourceforge.net noreply@sourceforge.net
Sun, 18 Mar 2001 11:54:11 -0800


Bugs item #406642, was updated on 2001-03-07 01:40
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=406642&group_id=5470

Category: Python Interpreter Core
Group: None
>Status: Closed
Priority: 5
Submitted By: Ernie Sasaki (esasaki)
Assigned to: Skip Montanaro (montanaro)
Summary: 2.1b1 from socket import* omits errorTab

Initial Comment:
Under Win98SE, if you say "from socket import *" at an 
interactive python 2.0 prompt, you can see errorTab in 
what dir() returns. 

With a 2.1b1 interactive prompt, if you do the same 
exact thing no errorTab is in the list. However, if 
instead you say import socket and then dir(socket), 
errorTab appears.

Not sure if this is a bug but it sure sent me on a 
wild goose chase for a while. I don't think this is 
correct Nested Scopes related behavior but I admit I 
haven't fully understood this new feature.

This came up because I've been using the 
timeoutsocket.py module from the Vaults of Parnassus 
for a few weeks. It imports from socket. In a 
different module I (very non-portably), then format an 
nice error message based on the contents of errorTab. 
This code now is broken under 2.1b1.


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

>Comment By: Skip Montanaro (montanaro)
Date: 2001-03-18 11:54

Message:
Logged In: YES 
user_id=44345

taken care of.  just an oversight on my part.


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

Comment By: Moshe Zadka (moshez)
Date: 2001-03-18 03:57

Message:
Logged In: YES 
user_id=11645

For the record, it seems to me that he's right. errorTab
is *not* used inside socket.py, so it *must* be defined
so that other people can use it, whether it is documented or
not.

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

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