[Tutor] pickle problem

Alan Gauld alan.gauld at btinternet.com
Wed Oct 13 02:27:52 CEST 2010

"Roelof Wobben" <rwobben at hotmail.com> wrote

> image = urllib.URLopener()
> image.retrieve("http://www.pythonchallenge.com/pc/def/peak.html","banner.p" 
>  )


Please do not post a series of request for help on each of the
Python Challenge puzzles. They are intended to be challenging
and to force you to consult the documentation so that you learn
how to use the modules. But asking for help on this list will
simply give the puzzles away to anyone else on the list
who may be trying them or intending to try them in the future.

> plaatje = open("banner.p", "rb")
> plaatje2 = pickle.load(plaatje)

You are using the pickle module so have you read the
documentation on pickle? Have you read examples in other
tutorials on how to use pickle? Have you experimented with
pickle and got it to work outside the context of the challenge?

> What does this mean ?

It means you are not using pickle properly.
Please read the documentation.

Sorry to sound harsh but this is different to you trying to
understand a tutorial and its exercises. This is supposed
to be a challenge for you personally not the tutor list

If you get really stuck then ask for hints, but please
do your homework first.

Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list