Re:What's the difference between gevent.sleep and time.sleep?

2014-07-27 Thread Dave Angel
Xiadong Zhu Wrote in message: > Hi, I'm learning gevent, but I didn't found the difference with gevent.sleep > and time.sleep, does anybody could give me a sample code to show their > difference? Thanks! > gevent is a cooperative analog to the threading module. When using it you would never u

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Chris “Kwpolska” Warrick
On Sat, Jul 26, 2014 at 8:40 PM, Dennis Lee Bieber wrote: >The way they package Office doesn't help... Ignoring the > subscription-based "Office 365" I was at Best Buy a few weeks ago... The > only local-install version of Office (Home&Office I think) had Word, Excel, > and PowerPoint. > >

Al madinah international university opening apply for university colleges (September season)

2014-07-27 Thread marketing . team
MR/ MiSS *Al madinah international university which win dependence Malaysian Ministry of Higher Education Malaysia (MOHE) and also winning the adoption of all academic programs and courses, the university that are approved by the Malaysian funds and private academy, which deals with

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Steve Hayes
On Sun, 27 Jul 2014 10:10:44 +0200, Chris “Kwpolska” Warrick wrote: >On Sun, Jul 27, 2014 at 6:49 AM, Steve Hayes wrote: >> The one thing that isn't available with LibreOffice is OneNote, which you >> don't seem to be able to get separately, and doesn't seem to have any >> documentation (ie 3rd

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Chris “Kwpolska” Warrick
On Sun, Jul 27, 2014 at 2:24 PM, Steve Hayes wrote: > The main reason I use Evernote is that I found a book for it, and couln't find > one for OneNote. Both are actually self-explanatory. You should not need a book to use either, just an ability to read on-screen prompts and instruction. -- Ch

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread CM
On Friday, July 25, 2014 10:55:44 AM UTC-4, Orochi wrote: > Hi, > > This Question may sound lame ,but I am searching for .Net Like Gui Builder > for Python. > > I tried PyQt Designer' and 'Glade', No doubt its great but it created only > interface. > > I have to code all the things in separate

complete brain fart, it doesn't loop

2014-07-27 Thread Martin S
I have this snippet in my web application. Question is why doesn't the stupid thing loop ten times? It loops exactly 1 time. # Reset counter counter = 0 while counter <= 10: #if test != '': tourn=games[counter][0] round=games[counter][1] date=games[count

Re: complete brain fart, it doesn't loop

2014-07-27 Thread Chris Angelico
On Mon, Jul 28, 2014 at 3:53 AM, Martin S wrote: > I have this snippet in my web application. Question is why doesn't the > stupid thing loop ten times? It loops exactly 1 time. > > # Reset counter > counter = 0 > > while counter <= 10: > > return "Long line with games" > >

Re: Exploring Python for next desktop GUI Project

2014-07-27 Thread CM
On Thursday, July 24, 2014 11:57:22 AM UTC-4, Noble Bell wrote: > I am exploring the idea of creating my next desktop GUI project in Python and > would like a little advice from you folks about a couple of requirements. > > > > My requirements will be: > > 1. Needs to be portable across platfo

Re: complete brain fart, it doesn't loop

2014-07-27 Thread Peter Otten
Chris Angelico wrote: > On Mon, Jul 28, 2014 at 3:53 AM, Martin S wrote: >> I have this snippet in my web application. Question is why doesn't the >> stupid thing loop ten times? It loops exactly 1 time. >> >> # Reset counter >> counter = 0 >> >> while counter <= 10: >> >> retur

Parse bug text file

2014-07-27 Thread CM
I have a big text file of bugs that I want to use Python to parse such that the bugs can be neatly filed into a database. I can bumble toward a solution with looping but feel this is a classic example of reinventing the wheel, and yet I'm finding it hard to Google for. Basically the file is str

Re: complete brain fart, it doesn't loop

2014-07-27 Thread Chris Angelico
On Mon, Jul 28, 2014 at 4:07 AM, Peter Otten <__pete...@web.de> wrote: > By the way, Python has something similar to a function that temporarily > interrupts execution but preserves state. It's called generator. Yeah, but I have a suspicion his web framework (which he hasn't identified, but I susp

Re: Parse bug text file

2014-07-27 Thread Chris Angelico
On Mon, Jul 28, 2014 at 4:08 AM, CM wrote: > I can go through it with opening the text file and reading in the lines, and > if the first character is a "-" then count that as the start of a bug block, > but I am not sure how to find the last line of a bug block...it would be the > line before t

Re: complete brain fart, it doesn't loop

2014-07-27 Thread Terry Reedy
On 7/27/2014 1:55 PM, Chris Angelico wrote: On Mon, Jul 28, 2014 at 3:53 AM, Martin S wrote: I have this snippet in my web application. Question is why doesn't the stupid thing loop ten times? It loops exactly 1 time. One thing we repeatedly tell people who post code with problems (here or o

login: optional

2014-07-27 Thread John Bliss
Noob here: Started new Python project via Google AppEngine which produced project files including: \app.yaml handlers: - url: /.* script: main.app secure: always Currently, navigating to project root forces me to authenticate with Google oAuth2 process. I'd like to turn that off so that I

Re: complete brain fart, it doesn't loop

2014-07-27 Thread Chris Angelico
On Mon, Jul 28, 2014 at 4:17 AM, Terry Reedy wrote: > the problem can hardly be missed. > My brain's gone across to The Mikado, here, and a well-known song of the Executioner's. The solution might even be to collect up the intermediate strings in a mutable sequence... yes, indeed, "you may put th

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Sturla Molden
Chris “Kwpolska” Warrick wrote: > And Publisher could work out for a home user, except Word can do the > same, equally well (at least for a home user). Why would they play > with a more complicated program, when they have a good enough thing in > Word? Actually, Apple Pages is much better for t

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Kevin Walzer
On 7/25/14, 10:55 AM, Orochi wrote: Hi, This Question may sound lame ,but I am searching for .Net Like Gui Builder for Python. I tried PyQt Designer' and 'Glade', No doubt its great but it created only interface. I have to code all the things in separate file. what I was searching for is Visual

What meaning of this ""hello %s you are %s years old" % x"

2014-07-27 Thread fl
Hi, I get a post on tuple, see below please, on line. It seems that something is missing. I want to learn tuple from this example as well. Could you explain it to me (a tuple % another tuple)? Thanks, http://stackoverflow.com/questions/1708510/python-list-vs-tuple-when-to-use-each In Py

Re: Parse bug text file

2014-07-27 Thread Terry Reedy
On 7/27/2014 2:08 PM, CM wrote: I have a big text file of bugs that I want to use Python to parse such that the bugs can be neatly filed into a database. I can bumble toward a solution with looping but feel this is a classic example of reinventing the wheel, and yet I'm finding it hard to Google

Re: complete brain fart, it doesn't loop

2014-07-27 Thread Martin S
Ah, thanks. Explains it all :) /martin On 27 Jul 2014, Peter Otten <__pete...@web.de> wrote: >Chris Angelico wrote: > >> On Mon, Jul 28, 2014 at 3:53 AM, Martin S >wrote: >>> I have this snippet in my web application. Question is why doesn't >the >>> stupid thing loop ten times? It loops exact

Re: complete brain fart, it doesn't loop

2014-07-27 Thread Martin S
I'm using Bottle as suggested earlier. And yes, I'm collecting results from a html table passed to the server for processing. /martin On 27 Jul 2014, Chris Angelico wrote: >On Mon, Jul 28, 2014 at 4:07 AM, Peter Otten <__pete...@web.de> wrote: >> By the way, Python has something similar to a

Re: What meaning of this ""hello %s you are %s years old" % x"

2014-07-27 Thread Gary Herron
On 07/27/2014 11:49 AM, fl wrote: Hi, I get a post on tuple, see below please, on line. It seems that something is missing. I want to learn tuple from this example as well. Could you explain it to me (a tuple % another tuple)? Thanks, http://stackoverflow.com/questions/1708510/python-li

Re: What meaning of this ""hello %s you are %s years old" % x"

2014-07-27 Thread Dan Stromberg
On Sun, Jul 27, 2014 at 11:49 AM, fl wrote: > In Python, when should you use lists and when tuples? > > Sometimes you don't have a choice, for example if you have > > "hello %s you are %s years old" % x > then x must be a tuple. > > But if I am the one who designs the API and gets to choose the da

Re: "Full stack python" should be linked on python.org

2014-07-27 Thread memilanuk
On 07/26/2014 01:20 PM, Tymoteusz Jankowski wrote: Hi! Anyone shares my opinion that www.fullstackpython.com should be referenced here or at least here ? What do you think? It's grea

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Steve Hayes
On Sun, 27 Jul 2014 14:42:49 +0200, Chris “Kwpolska” Warrick wrote: >On Sun, Jul 27, 2014 at 2:24 PM, Steve Hayes wrote: >> The main reason I use Evernote is that I found a book for it, and couln't >> find >> one for OneNote. > >Both are actually self-explanatory. You should not need a book to

NameError: name 'requests' is not defined ?

2014-07-27 Thread 水静流深
there is a simple file `mydown.py` saved in `D:\Python34\Lib\site-packages` there is only one line in mydown.py . import requests C:\Users\pengsir>d:\Python34\python Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AM D64)] on win32 Type "help", "copy

Re: NameError: name 'requests' is not defined ?

2014-07-27 Thread Dan Stromberg
On Sun, Jul 27, 2014 at 8:52 PM, 水静流深 <1248283...@qq.com> wrote: > there is a simple file `mydown.py` saved in `D:\Python34\Lib\site-packages` > there is only one line in mydown.py . > > import requests > > > > C:\Users\pengsir>d:\Python34\python > Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 1

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Michael Torrie
On 07/27/2014 12:32 PM, Sturla Molden wrote: > Chris “Kwpolska” Warrick wrote: > >> And Publisher could work out for a home user, except Word can do the >> same, equally well (at least for a home user). Why would they play >> with a more complicated program, when they have a good enough thing in

Re: NameError: name 'requests' is not defined ?

2014-07-27 Thread Miki Tebeka
Greetings, > there is only one line in mydown.py . >   > > import requests   > ... > >>> import mydown > >>> requests.get(url) > > Traceback (most recent call last): > >   File "", line 1, in > > NameError: name 'requests' is not defined You need to call mydown.requests, but I think you're mi

Re: NameError: name 'requests' is not defined ?

2014-07-27 Thread Steven D'Aprano
On Mon, 28 Jul 2014 11:52:03 +0800, 水静流深 wrote: > there is a simple file `mydown.py` saved in > `D:\Python34\Lib\site-packages` > there is only one line in mydown.py . > > import requests Just because mydown has imported requests, doesn't mean it is visible everywhere. Each module is a sepa