Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread spawgi
Thanks Jerry! By the way, I know I can change the way the loops works and bypass this issue :) I just wanted to mention this behavior which I thought interesting and present some corner case (I have worked extensively in testing). And I agree, probably I should not have used color. Bad on my part.

[Tutor] the regex boundary about chinese word

2012-05-03 Thread goog cheng
Hi, I got this problem : #!python # -*- coding: utf-8 -*- import re p = re.compile(ur'\bc123\b') print '**',p.search('no class c123 at all').group() p = re.compile(ur'\b\u7a0b\u6770\b') print ur'\u7a0b\u6770' print '',p.search(' 程杰 abc'.decode('utf8')) why the \b boundary can't match t

Re: [Tutor] Embed python in a website

2012-05-03 Thread Mark Lawrence
On 03/05/2012 23:56, Emile van Sebille wrote: On 5/3/2012 2:28 PM Adrian said... I recently created a gui form using tkinter, is it possible to integrate this form to my website page? How do i integrate? pyjs aka pyjamas allows you to write once and run on both web and desktop. I'd start the

Re: [Tutor] python installation problem

2012-05-03 Thread wesley chun
there are many pitfalls in installing Python on Macs. it definitely isn't straightforward because usually the one you install will conflict with the that Apple ships with Mac OS X. i would second the recommendation to use MacPorts, homebrew, finkCmdr, or similar tools. someone should do a fresh in

Re: [Tutor] Embed python in a website

2012-05-03 Thread Alan Gauld
On 03/05/12 23:56, Emile van Sebille wrote: I recently created a gui form using tkinter, is it possible to integrate this form to my website page? How do i integrate? pyjs aka pyjamas allows you to write once and run on both web and desktop. I'd start there. I don't think pyjs can do Tkinter

Re: [Tutor] Embed python in a website

2012-05-03 Thread Emile van Sebille
On 5/3/2012 2:28 PM Adrian said... I recently created a gui form using tkinter, is it possible to integrate this form to my website page? How do i integrate? pyjs aka pyjamas allows you to write once and run on both web and desktop. I'd start there. Emile ___

[Tutor] Embed python in a website

2012-05-03 Thread Adrian
I recently created a gui form using tkinter, is it possible to integrate this form to my website page? How do i integrate? Adrian Sent from my iPad ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.pyth

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread bob gailer
On 5/3/2012 9:57 AM, spa...@gmail.com wrote: Hello all, I have encountered the following scenario. Here is the code - on IDLE on Windows XP. *>>> while True:* Please do not use color. Post plain text. That is very hard for me to read and there is no need for color. -- Bob Gailer 919-636-4239

Re: [Tutor] python installation problem

2012-05-03 Thread Alan Gauld
On 03/05/12 12:14, Gergely Lőrincz wrote: I've been struggling to set up python on snow leopard, mac os x. Stupidly I downloaded and installed python 3.2 Nothing stupid about that, although it should have worked! Did you get the MacPython version or the ActiveState Mac package or something el

Re: [Tutor] python installation problem

2012-05-03 Thread Prasad, Ramit
> I've been struggling to set up python on snow leopard, mac os x. Stupidly > I downloaded and installed python 3.2 and since then the 'python' command > in the terminal yields 'no command found'. In addition when opening the > terminal I get this error message on the top of the > window: http://pa

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Gergely Lőrincz
Thanks Andre, apologies for hijacking the thread! On 3 May 2012 18:05, Andre' Walker-Loud wrote: > Hi Greg, > > > I'm new to python, is schooling a python-developer thing? Whether I ask > for help at forums, IRC or here, someone schools me. Should I stick with > Java? > > No, the python mailing

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Andre' Walker-Loud
Hi Greg, > I'm new to python, is schooling a python-developer thing? Whether I ask for > help at forums, IRC or here, someone schools me. Should I stick with Java? No, the python mailing list is for the most part, very friendly and helpful (in my experience). Mark's message that you not hijac

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Gergely Lőrincz
I'm new to python, is schooling a python-developer thing? Whether I ask for help at forums, IRC or here, someone schools me. Should I stick with Java? On 3 May 2012 17:44, Gergely Lőrincz wrote: > I say old bean, did not get an answer and wasn't sure if it went through. > Sorry me for asking hel

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Gergely Lőrincz
I say old bean, did not get an answer and wasn't sure if it went through. Sorry me for asking help with python in a python mailing list! On 3 May 2012 17:30, Mark Lawrence wrote: > On 03/05/2012 16:52, Gergely Lőrincz wrote: > >> Dear folks, >> >> I've been struggling to set up python on snow le

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Mark Lawrence
On 03/05/2012 16:52, Gergely Lőrincz wrote: Dear folks, I've been struggling to set up python on snow leopard, mac os x. Stupidly I downloaded and installed python 3.2 and since then the 'python' command in the terminal yields 'no command found'. In addition when opening the terminal I get this

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Gergely Lőrincz
Dear folks, I've been struggling to set up python on snow leopard, mac os x. Stupidly I downloaded and installed python 3.2 and since then the 'python' command in the terminal yields 'no command found'. In addition when opening the terminal I get this error message on the top of the window: http:/

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Simon Yan
On Thu, May 3, 2012 at 9:57 PM, wrote: > Hello all, > > I have encountered the following scenario. > Here is the code - on IDLE on Windows XP. > > *>>> while True: > try: > number = raw_input("enter number - ") > print number * number > except ValueError: > print "

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Jerry Hill
On Thu, May 3, 2012 at 9:57 AM, wrote: > Hello all, > > I have encountered the following scenario. > Here is the code - on IDLE on Windows XP. > while True: >     try: >         number = raw_input("enter number - ") >         print number * number >     except ValueError: >         print "in

[Tutor] How to exit this loop in the interpreter

2012-05-03 Thread spawgi
Hello all, I have encountered the following scenario. Here is the code - on IDLE on Windows XP. *>>> while True: try: number = raw_input("enter number - ") print number * number except ValueError: print "invalid number" except: print "unspecified except

[Tutor] python installation problem

2012-05-03 Thread Gergely Lőrincz
Dear folks, I've been struggling to set up python on snow leopard, mac os x. Stupidly I downloaded and installed python 3.2 and since then the 'python' command in the terminal yields 'no command found'. In addition when opening the terminal I get this error message on the top of the window: http:/

Re: [Tutor] events and popup menus

2012-05-03 Thread Peter Otten
Chris Hare wrote: > I have four images in a frame. I want to pop up a menu when the user > right clicks on an image, and when they choose an option from the menu, > execute the action. > > I can create the popup menu, and bind it to the image. However, what I > can't figure out is how to detect

Re: [Tutor] VirutalEnv not working on Ubuntu server 9.10

2012-05-03 Thread Kushal Kumaran
On Sun, Apr 29, 2012 at 7:34 PM, Marco Mistroni wrote: > HI all >  i have a VPS which is running Ubuntu server 9.10 > > i have downloaded virtualenv 1.4.2 and installed it in a tmp directory > > i have created a environment for using googlemaps.. > > i am able to download googlemaps package,  but