[Patches] [ python-Patches-1144636 ] Make urllib2.OpenerDirector
instances pickle-able
SourceForge.net
noreply at sourceforge.net
Fri Mar 4 19:46:59 CET 2005
Patches item #1144636, was opened at 2005-02-20 02:48
Message generated for change (Comment added) made by jjlee
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1144636&group_id=5470
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: John J Lee (jjlee)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make urllib2.OpenerDirector instances pickle-able
Initial Comment:
urllib2.OpenerDirector would be pickleable if it were
not for the fact that a couple of urllib2 handlers
(which build_opener() adds by default) have function
instance attributes.
It's trivial to replace these instance attributes with
a method that delegates to the appropriate function,
thus allowing pickling.
----------------------------------------------------------------------
>Comment By: John J Lee (jjlee)
Date: 2005-03-04 18:46
Message:
Logged In: YES
user_id=261020
Hmm, maybe this fault (can't pickle) will be fixed without
need for this patch in 2.5, due to the change to unbound
methods that was discussed on python-dev. I don't
understand that issue, so I can't say.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1144636&group_id=5470
More information about the Patches
mailing list