[Tutor] using sockets to send a list

Adrian Maier am@fx.ro
Sat Feb 22 03:26:21 2003


On Sat, Feb 22, 2003 at 08:49:27AM +0100, Abel Daniel wrote:
> Replacing the print statement with something truly destructive is left
> as an exercise to the reader.
> I might trust you (and your server) enough to play a game, but I
> seriously doubt I would trust you enough to let you execute arbitrary
> commands on my computer.
> 
> I would use pickle instead.

I see.

Now i've found an acceptable temporary solution : 
instead of :     exec("self.player=%s"%dst)
i do:            self.player = dst
(i guess this is less dangerous)

I'll try to improve the program to use pickle later , when i'll
have more time.

-- 
Adrian Maier
(am@fx.ro)