tutor@python.org

2015-06-11 Thread Cameron Simpson
On 11Jun2015 18:55, alan.ga...@btinternet.com wrote: On 11/06/15 14:25, Michelle Meiduo Wu wrote: I read some document and found Pytest can be used to write simpler code compared with using unittest in Python. Yes, but PyTest (and unittest) are for testing units of Python code. So they really

tutor@python.org

2015-06-11 Thread Laura Creighton
In a message of Thu, 11 Jun 2015 09:25:25 -0400, Michelle Meiduo Wu writes: >Hi there, >I'm looking for a language to write test scripts for our application. I read >some document and found Pytest can be used to write simpler code compared with >using unittest in Python. Does anybody know what's

Re: [Tutor] moving objects in only one direction at a time

2015-06-11 Thread Danny Yoo
In an event-driven game, you need to give control back to the event loop in order for the framework to pass events to your program. Your main function, however, doesn't do so: you've got a while loop that monopolizes control flow: def game(): # ... game initialization logic while playing:

Re: [Tutor] moving objects in only one direction at a time

2015-06-11 Thread Alan Gauld
On 11/06/15 08:19, Tudor, Bogdan - tudby001 wrote: Sorry if this sends twice, I had to change subject line. I am using python 3.4.3 on windows 7 64bit. OK, But always start a new topic with a new message. By replying to an old post your message is now buried at the bottom of a very old thread

tutor@python.org

2015-06-11 Thread Alan Gauld
On 11/06/15 14:25, Michelle Meiduo Wu wrote: Hi there, Hi, Please start a new thread for a new subject. Do not reply to an old thread. As it is, your query now appears buried in a discussion about prime numbers. I'm looking for a language to write test scripts for our application. Can you e

[Tutor] moving objects in only one direction at a time

2015-06-11 Thread Tudor, Bogdan - tudby001
Hi, Sorry if this sends twice. I am using python 3.4.3 on windows 7 64bit. I'm using John M. Zelle graphics module. Graphics module: http://mcsp.wartburg.edu/zelle/python/graphics/graphics/graphics.html I am trying to create user movable blocks that can only move in one direction at a time. Th

tutor@python.org

2015-06-11 Thread Michelle Meiduo Wu
Hi there, I'm looking for a language to write test scripts for our application. I read some document and found Pytest can be used to write simpler code compared with using unittest in Python. Does anybody know what's other pros and cons of using these two for writing test scripts? Thank you,Mich

Re: [Tutor] Generate Prime Numbers

2015-06-11 Thread Mirage Web Studio
On 2015-06-11 12:38 AM, Laura Creighton wrote: In a message of Wed, 10 Jun 2015 23:11:36 +0530, George writes: On 2015-05-31 5:04 AM, Alan Gauld wrote: On 30/05/15 19:14, George wrote: Excuse me please for replying late. I got lists to use the method and it is more efficient and faster. (

Re: [Tutor] Generate Prime Numbers

2015-06-11 Thread Laura Creighton
Alas, PyPy STM only works for 64 bit linux for now. You are catching the PyPy project at the edge of its 'bleeding edge research'. We think in 1 or 2 releases windows users should be able to get it too, and I will let you know when that happens. And no promises. These sorts of things have a habi

[Tutor] moving objects in only one direction at a time

2015-06-11 Thread Tudor, Bogdan - tudby001
Hi, Sorry if this sends twice, I had to change subject line. I am using python 3.4.3 on windows 7 64bit. I'm using John M. Zelle graphics module. Graphics module: http://mcsp.wartburg.edu/zelle/python/graphics/graphics/graphics.html I am trying to create user movable blocks that can only move i