Re: Is there a quick & accurate way to test a python install?

2012-12-16 Thread Gene Heskett
On Sunday 16 December 2012 01:33:35 Terry Reedy did opine: > On 12/15/2012 9:59 PM, Gene Heskett wrote: > > This is 2.6, on ubuntu-10.04.4 LTS > > > > gene@lathe:/usr/lib/python2.6/test$ python -m test.regrtest > > That should be the right incantation for 2.6. > > > test_grammar > > test_gramma

python-daemon

2012-12-16 Thread n8felton
Hello all. Got a question for anyone out there that is willing to help. Looking to make a Python Daemon, Google searches lead me to http://pypi.python.org/pypi/python-daemon. My question is 2 part. 1) pip install python-daemon downloads version 1.6, but the site states that 1.5.5 is the latest

Re: python-daemon

2012-12-16 Thread rurpy
On 12/16/2012 08:26 AM, n8fel...@gmail.com wrote: > Hello all. Got a question for anyone out there that is willing to > help. Looking to make a Python Daemon, Google searches lead me to > http://pypi.python.org/pypi/python-daemon. My question is 2 part. 1) > pip install python-daemon downloads vers

Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Darrien Glasser
Hey guys, I'm working on a Python rock paper scissors (lizard spock) game, and the beginning is complete. After I finished it, I thought, "You know what? I think I can make this even better, and add a score counter." And so I did. The problem is that it doesn't seem to actually keep track of sco

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Kwpolska
On Sun, Dec 16, 2012 at 6:00 PM, Darrien Glasser wrote: > Hey guys, I'm working on a Python rock paper scissors (lizard spock) game, > and the beginning is complete. After I finished it, I thought, "You know > what? I think I can make this even better, and add a score counter." And so I > did.

Re: problem with web browser module

2012-12-16 Thread Eric Johansson
On Saturday, December 15, 2012 9:14:25 PM, Terry Reedy wrote: I believe this worked with Firefox the last time I tested. I just read the docs. Never tried IE. I believe details partly depend on browser. thank you Terry. I will try with Firefox but the main reason I'm using IE is simply becau

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Darrien Glasser
Awesome thanks, and sounds good. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pexpect and buffering

2012-12-16 Thread jim . hefferon
Sorry to reply to my own post, but I believe I have my answer and I want to help anyone who might google their way here: I need to change PROMPT and PROMPT_CONTINUE to be regular expressions, for instance by escaping the periods. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread rurpy
> Hey guys, I'm working on a Python rock paper scissors (lizard spock) > game, and the beginning is complete. After I finished it, I thought, > "You know what? I think I can make this even better, and add a score > counter." And so I did. > > The problem is that it doesn't seem to actually keep tr

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread tbg
Actually, I was just going to post that it wasn't saving the scores. Great timing, I'll try it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread rurpy
On Sunday, December 16, 2012 10:09:53 AM UTC-7, Kwpolska wrote: >[...] > PS. please do not use pastebin.com. Why? -- http://mail.python.org/mailman/listinfo/python-list

ANNOUNCE: pyparsing 1.5.7/2.0.0

2012-12-16 Thread Paul McGuire
With the release of version 2.0.0/1.5.7, pyparsing has now officially switched to Python 3.x support as its default installation environment. Python 2.x users can install the latest 1.5.7 release. (If you're using easy_install, do "easy_install pyparsing==1.5.7".) I'm taking this opportunity to

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Kwpolska
On Sun, Dec 16, 2012 at 6:25 PM, wrote: > On Sunday, December 16, 2012 10:09:53 AM UTC-7, Kwpolska wrote: >>[...] >> PS. please do not use pastebin.com. > > Why? > -- > http://mail.python.org/mailman/listinfo/python-list http://news.ycombinator.com/item?id=2595066 should answer this very questio

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread tbg
On Sunday, December 16, 2012 12:16:34 PM UTC-5, ru...@yahoo.com wrote: > > Hey guys, I'm working on a Python rock paper scissors (lizard spock) > > > game, and the beginning is complete. After I finished it, I thought, > > > "You know what? I think I can make this even better, and add a score >

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Kwpolska
On Sun, Dec 16, 2012 at 6:44 PM, tbg wrote: > I changed it so that it said winx += 1 etc. and it doesn't seem to save it. I > also tried pulling the variables from the loop and making them global > variables at the top. > > The latter game me a traceback error when printing out the results. Any

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread tbg
On Sunday, December 16, 2012 12:50:18 PM UTC-5, Kwpolska wrote: > On Sun, Dec 16, 2012 at 6:44 PM, tbg wrote: > > > I changed it so that it said winx += 1 etc. and it doesn't seem to save it. > > I also tried pulling the variables from the loop and making them global > > variables at the top. >

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Mitya Sirenef
On 12/16/2012 12:00 PM, Darrien Glasser wrote: Hey guys, I'm working on a Python rock paper scissors (lizard spock) game, and the beginning is complete. After I finished it, I thought, "You know what? I think I can make this even better, and add a score counter." And so I did. > > The problem

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread tbg
On Sunday, December 16, 2012 1:07:16 PM UTC-5, Mitya Sirenef wrote: > On 12/16/2012 12:00 PM, Darrien Glasser wrote: > > > Hey guys, I'm working on a Python rock paper scissors (lizard spock) game, > > and the beginning is > > complete. After I finished it, I thought, "You know what? I think I

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Mitya Sirenef
On 12/16/2012 01:17 PM, tbg wrote: On Sunday, December 16, 2012 1:07:16 PM UTC-5, Mitya Sirenef wrote: On 12/16/2012 12:00 PM, Darrien Glasser wrote: Hey guys, I'm working on a Python rock paper scissors (lizard spock) game, and the beginning is complete. After I finished it, I thought, "Yo

Pastebin [was: Trying to make a basic Python score counter in a game... will not count.]

2012-12-16 Thread Ian Kelly
On Sun, Dec 16, 2012 at 10:32 AM, Kwpolska wrote: > On Sun, Dec 16, 2012 at 6:25 PM, wrote: >> On Sunday, December 16, 2012 10:09:53 AM UTC-7, Kwpolska wrote: >>>[...] >>> PS. please do not use pastebin.com. >> >> Why? > > http://news.ycombinator.com/item?id=2595066 should answer this very quest

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread tbg
Nice, will have to try it out... -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a quick & accurate way to test a python install?

2012-12-16 Thread Terry Reedy
On 12/16/2012 6:22 AM, Gene Heskett wrote: On Sunday 16 December 2012 01:33:35 Terry Reedy did opine: You appear to have some of /Lib/test/ present, including Lib/test/regrtest.py, but not move of the test_xxx.py files. I do not know what is normal for an Ubuntu distribution. On Windows, I bel

modify image and save with exif data

2012-12-16 Thread jwe . van . dijk
I want to resize an image but retain the exif data I now have: import Image img = Image.open('photo.jpg') img.thumbnail((800, 800), Image.ANTIALIAS) img.save('photo800.jpg', 'JPEG') The saved image photo800.jpg has no exif info anymore. I would so much like to have it retained in particular the e

Re: Is there a quick & accurate way to test a python install?

2012-12-16 Thread Gene Heskett
On Sunday 16 December 2012 14:55:53 Terry Reedy did opine: > On 12/16/2012 6:22 AM, Gene Heskett wrote: > > On Sunday 16 December 2012 01:33:35 Terry Reedy did opine: > >> You appear to have some of /Lib/test/ present, including > >> Lib/test/regrtest.py, but not move of the test_xxx.py files. I d

Re: Pastebin [was: Trying to make a basic Python score counter in a game... will not count.]

2012-12-16 Thread Chris Angelico
On Mon, Dec 17, 2012 at 5:35 AM, Ian Kelly wrote: > On Sun, Dec 16, 2012 at 10:32 AM, Kwpolska wrote: >> On Sun, Dec 16, 2012 at 6:25 PM, wrote: >>> On Sunday, December 16, 2012 10:09:53 AM UTC-7, Kwpolska wrote: [...] PS. please do not use pastebin.com. >>> >>> Why? >> >> http://news.

Re: python-daemon

2012-12-16 Thread Chris Angelico
On Mon, Dec 17, 2012 at 3:59 AM, wrote: > On 12/16/2012 08:26 AM, n8fel...@gmail.com wrote: >> Hello all. Got a question for anyone out there that is willing to >> help. Looking to make a Python Daemon, Google searches lead me to >> http://pypi.python.org/pypi/python-daemon. My question is 2 part

Re: python-daemon

2012-12-16 Thread rurpy
On Sunday, December 16, 2012 1:25:51 PM UTC-7, Chris Angelico wrote: >[...] > If your post is swallowed by someone's twit filter, that probably > means that you're doing something twittish. Switching to direct mail > isn't going to win you any friends :) Switching your newsgroup client, > however,

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread alex23
On Dec 17, 3:32 am, Kwpolska wrote: > >> PS. please do not use pastebin.com. > http://news.ycombinator.com/item?id=2595066should answer this very question. By that argument, you should also be asking people not to use the internet. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode

2012-12-16 Thread Dave Angel
On 12/16/2012 04:10 PM, Anatoli Hristov wrote: > Hello guys, > > I'm using Linux CentOS and Python 2.4 with MySQL 5.xx, I get error > with Unicode I tried many things that I found on the net but none of > them working. > > If I dont use UTF-8 it inserts the data into the DB but some French > char.

Why Isn't Multiple Inheritance Automatic in Python?

2012-12-16 Thread Nick M . Daly
If you're short on time, the subject's all you need to read. It seems like it would always be the right thing to do, when the sub-class specifically requests it. It's very unlikely that multiple inheritance would go horribly wrong, as long as classes adopt class-specific argument naming conventio

Re: Trying to make a basic Python score counter in a game... will not count.

2012-12-16 Thread Mitya Sirenef
On 12/16/2012 01:07 PM, Mitya Sirenef wrote: On 12/16/2012 12:00 PM, Darrien Glasser wrote: >> Hey guys, I'm working on a Python rock paper scissors (lizard spock) game, and the beginning is > complete. After I finished it, I thought, "You know what? I think I can make this even better, and ad

Re: Unicode

2012-12-16 Thread Steven D'Aprano
On Sun, 16 Dec 2012 22:10:37 +0100, Anatoli Hristov wrote: > If I dont use UTF-8 it inserts the data into the DB but some French > char. are not correctly decoded. Could you please help me ? What happens when you do use UTF-8? What do you mean, "use UTF-8"? To learn about Unicode, start here:

Re: python-daemon

2012-12-16 Thread Chris Angelico
On Mon, Dec 17, 2012 at 9:18 AM, wrote: > On Sunday, December 16, 2012 1:25:51 PM UTC-7, Chris Angelico wrote: >>[...] >> If your post is swallowed by someone's twit filter, that probably >> means that you're doing something twittish. Switching to direct mail >> isn't going to win you any friends

Re: modify image and save with exif data

2012-12-16 Thread Vincent Vande Vyvre
Le 16/12/12 20:43, jwe.van.d...@gmail.com a écrit : > I want to resize an image but retain the exif data > I now have: > import Image > > img = Image.open('photo.jpg') > img.thumbnail((800, 800), Image.ANTIALIAS) > img.save('photo800.jpg', 'JPEG') > > The saved image photo800.jpg has no exif info a

Re: Pastebin [was: Trying to make a basic Python score counter in a game... will not count.]

2012-12-16 Thread Steven D'Aprano
On Mon, 17 Dec 2012 07:13:44 +1100, Chris Angelico wrote: > On Mon, Dec 17, 2012 at 5:35 AM, Ian Kelly > wrote: >> On Sun, Dec 16, 2012 at 10:32 AM, Kwpolska wrote: >>> On Sun, Dec 16, 2012 at 6:25 PM, wrote: On Sunday, December 16, 2012 10:09:53 AM UTC-7, Kwpolska wrote: >[...] >

Re: python-daemon

2012-12-16 Thread rurpy
On 12/16/2012 11:16 PM, Chris Angelico wrote: > On Mon, Dec 17, 2012 at 9:18 AM, wrote: >> On Sunday, December 16, 2012 1:25:51 PM UTC-7, Chris Angelico wrote: >>>[...] >>> If your post is swallowed by someone's twit filter, that probably >>> means that you're doing something twittish. Switching

Re: python-daemon

2012-12-16 Thread Chris Angelico
On Mon, Dec 17, 2012 at 6:25 PM, wrote: > No, that's not what you were "just" informing people of... > you were also informing us that we are "twits" for finding > Google Groups fits our needs better than some other clients. I didn't say that. The first twit filter I met was when my dad put *his