[Python-Dev] Re: 2.1 strangness (original) (raw)
Robin Becker robin@jessikat.fsnet.co.uk
Thu, 31 May 2001 19:33:02 +0100
- Previous message: [Python-Dev] Re: 2.1 strangness
- Next message: [Python-Dev] Re: 2.1 strangness
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In message <15126.34635.67975.31473@beluga.mojam.com>, Skip Montanaro <skip@pobox.com> writes
"Robin" == Robin Becker <robin@jessikat.fsnet.co.uk> writes: Robin> from httplib import * Robin> class Bongo(HTTPConnection): Robin> pass ... Robin> NameError: name 'HTTPConnection' is not defined It was a brain fart on my part when creating httplib.all. HTTPConnection was not included in that list. I will check in a fix. In the 2.1 release all was defined as all = ["HTTP"] I have changed that to all = ["HTTP", "HTTPResponse", "HTTPConnection", "HTTPSConnection", "HTTPException", "NotConnected", "UnknownProtocol", "UnknownTransferEncoding", "IllegalKeywordArgument", "UnimplementedFileMode", "IncompleteRead", "ImproperConnectionState", "CannotSendRequest", "CannotSendHeader", "ResponseNotReady", "BadStatusLine", "error"]
thanks; I'm still a bit puzzled as to the exact semantics. It just looks wrong. Is all the only way to get things into the * version of import? Presumably HTTPConnection is being marked as a potential global in the compile phase.
Robin Becker
- Previous message: [Python-Dev] Re: 2.1 strangness
- Next message: [Python-Dev] Re: 2.1 strangness
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]