Re: Using msvcrt (in Windows), how to catch Enter key?

2007-10-29 Thread Dick Moores
At 04:29 AM 10/29/2007, Filip Wasilewski wrote: >On Oct 29, 11:26 am, Dick Moores <[EMAIL PROTECTED]> wrote: > > Windows XP Pro, Python 2.5.1 > > > > import msvcrt > > while True: > > if msvcrt.kbhit(): > > key = msvcrt.getch() > >

Re: Using msvcrt (in Windows), how to catch Enter key?

2007-10-29 Thread Dick Moores
At 09:53 AM 10/29/2007, Dick Moores wrote: >At 09:26 AM 10/29/2007, Gabriel Genellina wrote: > >On 29 oct, 09:23, Dick Moores <[EMAIL PROTECTED]> wrote: > > > > > >while True: > > > > if msvcrt.getch() == '\r': > > > > > &

Re: Using msvcrt (in Windows), how to catch Enter key?

2007-10-29 Thread Dick Moores
At 09:26 AM 10/29/2007, Gabriel Genellina wrote: >On 29 oct, 09:23, Dick Moores <[EMAIL PROTECTED]> wrote: > > > >while True: > > > if msvcrt.getch() == '\r': > > > > I tried it and find that without the msvcrt.kbhit the first key I hit >

Re: Using msvcrt (in Windows), how to catch Enter key?

2007-10-29 Thread Dick Moores
Reposting, deleting the [Possible SPAM] from the Subject: header. At 03:23 PM 10/29/2007, Gabriel Genellina wrote: >En Mon, 29 Oct 2007 14:39:49 -0300, Dick Moores <[EMAIL PROTECTED]> escribió: > > > But here's a case where it seems I do need the > > > > i

Re: [Possible SPAM] Re: Using msvcrt (in Windows), how to catch Enter key?

2007-10-29 Thread Dick Moores
At 03:23 PM 10/29/2007, Gabriel Genellina wrote: >En Mon, 29 Oct 2007 14:39:49 -0300, Dick Moores <[EMAIL PROTECTED]> escribió: > > > But here's a case where it seems I do need the > > > > if msvcrt.kbhit() line > >At least add a small sleep() call insi

Re: Using msvcrt (in Windows), how to catch Enter key?

2007-10-29 Thread Dick Moores
At 06:34 PM 10/29/2007, Gabriel Genellina wrote: >En Mon, 29 Oct 2007 21:22:36 -0300, Dick Moores <[EMAIL PROTECTED]> escribió: > > > At 03:23 PM 10/29/2007, Gabriel Genellina wrote: > >> En Mon, 29 Oct 2007 14:39:49 -0300, Dick Moores <[EMAIL PROTECTED]> > >

Re: What happened to SPE?

2007-01-11 Thread Dick Moores
rs>, or reading the archive there. Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Python 2.5 Quick Reference

2007-02-03 Thread Dick Moores
<http://rgruet.free.fr/PQR25/PQR2.5.html> Is this reliable? (Looks good to me, but...) Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 Quick Reference

2007-02-03 Thread Dick Moores
At 04:02 AM 2/3/2007, Robin Becker wrote: >Dick Moores wrote: > > <http://rgruet.free.fr/PQR25/PQR2.5.html> > > Is this reliable? (Looks good to me, but...) > > >. > >I really like these for a good overview So it looks accurate? Dick Moores -- http://mai

Definitions of editor and IDE?

2007-02-03 Thread Dick Moores
opmentEnvironments>. Many programs are on both lists: Komodo, Eclipse, jedit, SPE, Wing IDE, UliPad, etc. Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Unicode is confusing me

2007-02-10 Thread Dick Moores
not in range(128)" I thought maybe it would help if I made the first line, # -*- coding: utf-8 -*- but that made no difference. Got the same error. Can someone help me understand what's going on? Thanks, Dick Moores -- my configuration: Win XP Pro SP2 Python 2.5 wxPython 2.8.1.1 Unicode Python IDE: Ulipad 3.6 -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode is confusing me

2007-02-10 Thread Dick Moores
I'm the OP, and answering my own question. I received excellent advice from the developer of Ulipad, Limodou. On 2/10/07, Dick Moores <[EMAIL PROTECTED]> wrote: > > a = [u'\u91cd', u'\u8981', u'\u6

Re: favourite editor

2007-02-12 Thread Dick Moores
hlighting, code completition, class browser, python comand line >(>>>), traceback. UliPad. <http://wiki.woodpecker.org.cn/moin/UliPad> Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

mpmath puzzle

2007-11-13 Thread Dick Moores
calculator """ output: 4.9583278648155166864966558721921e+33 4.9583278648155041477415234438717e+33 """ (Code is also at <http://python.pastebin.com/m72a277b8>) Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Help with sympy, please

2007-11-18 Thread Dick Moores
d type(s) for /: 'int' and 'Float' Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with sympy, please

2007-11-18 Thread Dick Moores
At 03:42 PM 11/18/2007, Dennis Lee Bieber wrote: >On Sun, 18 Nov 2007 13:02:01 -0800, Dick Moores <[EMAIL PROTECTED]> >declaimed the following in comp.lang.python: > > > > > This gets: > > Traceback (most recent call last): > >File "E:\PythonWork\Unt

Re: Help with sympy, please

2007-11-18 Thread Dick Moores
At 04:26 PM 11/18/2007, Fredrik Johansson wrote: >On Nov 19, 2007 1:05 AM, Dick Moores <[EMAIL PROTECTED]> wrote: >Hi Dick, I recognize you from python-list, where you had a question >about mpmath. > >Your code still won't work if you convert the numbers to Floats

Re: Help with sympy, please

2007-11-18 Thread Dick Moores
)) prod *= term n += 2 print prod, term == Output: 1.95187499635016028080844735182389158683797 1.00250001250004074790133889386806610626172 Thanks, Dick -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with sympy, please

2007-11-18 Thread Dick Moores
At 05:24 PM 11/18/2007, Fredrik Johansson wrote: >On Nov 19, 2007 2:03 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > > At 04:26 PM 11/18/2007, Fredrik Johansson wrote: > > >On Nov 19, 2007 1:05 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > > >Hi Dick, I recogn

Re: Help with sympy, please

2007-11-18 Thread Dick Moores
At 05:33 PM 11/18/2007, Fredrik Johansson wrote: >On Nov 19, 2007 2:23 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > > OK, I tried mpmath again, and to my surprise, it went well! > > > > === > > #!/usr/bin/env python > &g

Trouble getting loop to break

2007-11-19 Thread Dick Moores
3109668964239148908443317876138879647013995774.2951431466270782257597573259486687336246984942 """ This is also on the web at <http://python.pastebin.com/f1a5b9e03>. Examples of problem x's: 10, 20, 30, 40, 100, 101 Examples of OK x's: 0.2, 5, 10.1, 11, 33.3, 123.45 Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble getting loop to break

2007-11-20 Thread Dick Moores
At 12:45 AM 11/20/2007, Dennis Lee Bieber wrote: >On Mon, 19 Nov 2007 23:41:02 -0800, Dick Moores <[EMAIL PROTECTED]> >declaimed the following in comp.lang.python: > > > a way to get it to break where I want it to, i.e., when the sum > > equals the limit as clos

Re: Trouble getting loop to break

2007-11-20 Thread Dick Moores
At 03:53 AM 11/20/2007, Fredrik Johansson wrote: >On Nov 20, 2007 8:41 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > > I'm writing a demo of the infinite series > > > > x**0/0! + x**1/1! + x**2/2! + x**3/3! + ... = e**x (x is non-negative) > > > > I

Re: Trouble getting loop to break

2007-11-20 Thread Dick Moores
er), since it seems like it should converge. Yes! And believe it or not I did that before seeing your post. Works well. See <http://python.pastebin.com/f7c37186a> And also with the amazing Chudnovsky algorithm for pi. See <http://python.pastebin.com/f4410f3dc> Thanks, Dick -- http://

Re: Trouble getting loop to break

2007-11-25 Thread Dick Moores
At 01:32 PM 11/20/2007, Fredrik Johansson wrote: >On Nov 20, 2007 10:00 PM, Dick Moores <[EMAIL PROTECTED]> wrote: > > And also with the amazing Chudnovsky algorithm for pi. See > > <http://python.pastebin.com/f4410f3dc> > >Nice! I'd like to suggest two

Re: Trouble getting loop to break

2007-11-25 Thread Dick Moores
At 03:26 AM 11/25/2007, Fredrik Johansson wrote: >On Nov 25, 2007 9:00 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > > Fredrik, > > > > I'm afraid I'm just too dumb to see how to use your first suggestion > > of cached_factorials. Where do I put it and

Re: Great Python books for the beginner

2008-01-12 Thread Dick Moores
ink Like a (Python) Programmer <http://www.greenteapress.com/thinkpython/> Alan Gauld's Learning to Program (heavy emphasis on Python) <http://www.freenetpages.co.uk/hp/alan.gauld> Also, do take advantage of the VERY helpful Tutor mailing list. <http://mail.python.org/mailman/listin

Re: IDE Question

2008-10-15 Thread Dick Moores
Ulipad: <http://groups-beta.google.com/group/ulipad> Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

r' question

2008-05-17 Thread Dick Moores
x27;, 'r') for line in f.readlines():     if p.search(line):     print p.search(line).group() f.close() Is there no way to get it to work? Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: r' question

2008-05-17 Thread Dick Moores
At 10:17 PM 5/17/2008, Gabriel Genellina wrote: En Sat, 17 May 2008 23:37:16 -0300, Dick Moores <[EMAIL PROTECTED]> escribió: > I have a text file of phone numbers, which I'd like to search with a regex. > > fstr = "\sjoe\s" > regex = "^.*" + fst

A video introducing Ulipad, an IDE mainly for Python

2008-05-28 Thread Dick Moores
ad_2008-05-22.avi), and a codec (tscc.exe) that may be necessary for your player, from <http://www.rcblue.com/u3/>. Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: A video introducing Ulipad, an IDE mainly for Python

2008-05-28 Thread Dick Moores
Date: Wed, 28 May 2008 11:29:59 -0400 From: "Sean Azelton" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [Tutor] A video introducing Ulipad, an IDE mainly for Python For those looking for the codec and not running Windows, you can find it here for Mac OS X as well http://www.techsmith.

Re: A video introducing Ulipad, an IDE mainly for Python

2008-05-30 Thread Dick Moores
At 07:57 AM 5/30/2008, David C. Ullrich wrote: In article <[EMAIL PROTECTED]>, Dick Moores <[EMAIL PROTECTED]> wrote: > I've been using Ulipad, a free IDE mainly for Python, and written in > wxPython, for a couple of years, and think it's terrific. Now another >

Re: Books for programmers

2008-06-04 Thread Dick Moores
Do not neglect the 2008 book, "Object-Oriented Programming in Python", by Goldwasser and Letscher. <http://www.prenhall.com/goldwasser/> <http://www.bestbookdeal.com/book/compare/0136150314/> Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Conflict between msvcrt and Tkinter?

2008-06-18 Thread Dick Moores
Win XP, Python 2.5.1 I'm having trouble using msvcrt.getch() in a program that also uses a graphics module which itself imports Tkinter. Is this to be expected? Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

IDLE gripe and question

2008-04-22 Thread Dick Moores
nWork, but is there? Thanks, Dick Moores UliPad <>: http://code.google.com/p/ulipad/ -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE gripe and question

2008-04-22 Thread Dick Moores
, once you have the shortcut (mine was named IDLE (Python GUI)), right-click and select Properties. There's a property attribute labeled Start In. Set that to the directory where your scripts are. The menu Open will now default to that directory. Yes! That did it. Thank

comp.lang.python driver

2008-08-14 Thread Dick . Rutter
http://qualification.googlebong.com Title: Norm Mabus GoogleBong -- http://mail.python.org/mailman/listinfo/python-list

<    1   2