[EMAIL PROTECTED] wrote:
> On Apr 20, 12:06 am, Steve Holden <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
[about httplib problems]
>>
>> If so, would it be a usable workaround just to use the 2.4 httplib for
>> that one program?
>>
> 
> Thanks. Can you please tell me how can I 'borrow' a copy of 2.4
> httplib and run that in 2.3?
> 
The easiest way is just to drop it in the directory that contains the 
Python program you are running - that should make it available in 
preference to the 2.3 library version:

[EMAIL PROTECTED] ~
$ cat Projects/Python/httplib.py
print "My Own Library!"

[EMAIL PROTECTED] ~
$ cat Projects/Python/test24.py
import httplib
print "I just imported something"

[EMAIL PROTECTED] ~
$ python Projects/Python/test24.py
My Own Library!
I just imported something

[EMAIL PROTECTED] ~
$ rm Projects/Python/httplib.py* # remember the .pyc!

[EMAIL PROTECTED] ~
$ python Projects/Python/test24.py
I just imported something

[EMAIL PROTECTED] ~
$

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb     http://del.icio.us/steve.holden
Recent Ramblings       http://holdenweb.blogspot.com

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to