Re: Very simple request about argument setting.

2006-10-30 Thread Hieu Hoang
Hi,

The shuf() function returns two values: x and foo.
The command
>>> x,foo,bar=shuf(1,2,3,4,5,6,7,8)
becomes
>>> x,foo,bar=x,foo

So, this command assigns 2 values (x and foo) to 3 variables (x, foo 
and bar), which raises that exception. I'm not sure why python says 
"need more than 2 
values to unpack" not "need 3 values" though.

Hope this help,
Rooy
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python to tell what is the IP of my PC

2006-11-08 Thread Hieu Hoang
Hi list,
I think a script to extract the IP from some websites like 
whatismyip.com could do the job. I don't know how to write it though, 
sure someone can give 
direction on that.

Cheers,
Rooy
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python deployment options

2006-11-08 Thread Hieu Hoang
Hi list,
I have packaged a few pygames to one exe file with pyinstaller ( http:/
/pyinstaller.python-hosting.com/ ), sent them to my friends and the 
executables 
work. Running them shows a Fatal Error dialog box with only 
"MSVCR71.DLL", but nothing breaks, despite whether the system has 
python or not.
I haven't been able to figure out py2exe setup script yet, so I can't 
compare them.

Hope this helps,
Rooy
-- 
http://mail.python.org/mailman/listinfo/python-list