[Tutor] New Python book

2005-10-05 Thread Dick Moores
/compare/159059519X> Dick Moores [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

New Python book

2005-10-05 Thread Dick Moores
IMHO. But what do the experts here think? <http://www.bestbookdeal.com/book/compare/159059519X> Dick Moores [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Book "Python and Tkinter Programming"

2005-10-08 Thread Dick Moores
DaveInSidney wrote at 15:55 10/8/2005: >Check out BestBookBuys: >http://www.bestwebbuys.com/Python_and_Tkinter_Programming-ISBN_1884777813.html?isrc=b-search Or even better, BestBookDeal.com: <http://www.bestbookdeal.com/book/compare/1884777813> Dick Moores -- http://mail.python

Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
I need to figure out how to compute pi to base 12, to as many digits as possible. I found this reference, <http://mathworld.wolfram.com/Base.html>, but I really don't understand it well enough. Could someone show me how to do what I need? Thanks, Dick Moores [EMAIL PROTECT

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
Bengt Richter wrote at 03:19 4/13/2005: On Wed, 13 Apr 2005 02:06:11 -0700, Dick Moores <[EMAIL PROTECTED]> wrote: >I need to figure out how to compute pi to base 12, to as many digits as >possible. I found this reference, ><http://mathworld.wolfram.com/Base.html>, but I re

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
you. I do have the first 1 or so places of pi base 10 (<http://mathwithmrherte.com/pi_digits.htm>), but could you show me what to do with, say, just 3.14159? I apologize for being so dense. Dick Moores [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
program do? It is not a sonnet, even not a # pi-sonnet, but it surely produces Pi! It sure does. When I ran it my jaw dropped. I had 7,947 CORRECT digits in 2 minutes 0 seconds (by my stopwatch)! Now on to base 12. Thanks! Dick Moores [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
Dan wrote at 18:02 4/13/2005: On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm just trying to help an artist acquaintance who needs (I just >learned) the first 3003 digits of pi to the base 12. Now you've got me curious. Why would an arti

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
Paul Rubin wrote at 18:20 4/13/2005: Dick Moores <[EMAIL PROTECTED]> writes: > I need to figure out how to compute pi to base 12, to as many digits > as possible. I found this reference, > <http://mathworld.wolfram.com/Base.html>, but I really don't > understand it we

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Dick Moores
Doug Schwarz wrote at 20:14 4/13/2005: In article <[EMAIL PROTECTED]>, Dick Moores <[EMAIL PROTECTED]> wrote: > Dan wrote at 18:02 4/13/2005: > >On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> > >wrote: > > > > > I'm just tr

Re: Compute pi to base 12 using Python?

2005-04-14 Thread Dick Moores
Steve Holden wrote at 22:29 4/13/2005: Dick Moores wrote: Steve Holden wrote at 19:12 4/13/2005: Dick Moores wrote: Dan wrote at 18:02 4/13/2005: On Wed, 13 Apr 2005 03:27:06 -0700, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm just trying to help an artist acquaintance who needs (I

Re: Compute pi to base 12 using Python?

2005-04-14 Thread Dick Moores
Dick Moores wrote at 18:40 4/14/2005: Sorry about that. <http://www.kenjikojima.com/> I just listened to Kojima's "NEW Chorus Pi (Japanese) / 2:28 Chorus: MacinTalk Voices. The music was created from the constant PI." on that page. The vocal is singing the digits of base-10 pi

Re: Compute pi to base 12 using Python?

2005-04-15 Thread Dick Moores
ontents of UnxUpdates.zip, which has many of the same filenames, to the same directory. Should I just let Windows replace the old files with the updated ones? This seems obvious, but I wanted to make sure. I'm using Win XP Pro. Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Compute pi to base 12 using Python?

2005-04-17 Thread Dick Moores
Tim Roberts wrote at 22:05 4/16/2005: Dick Moores <[EMAIL PROTECTED]> wrote: >> >># Reading/writing Python source often gives me the impression of >># reading/writing a poem! >># Layout, indentation, rythm, I like the look and feel! >> >># What does this

Re: Compute pi to base 12 using Python?

2005-04-17 Thread Dick Moores
M.E.Farmer wrote at 23:18 4/14/2005: > >Using the GNU "bc" utility: > > > > $ bc -l > > bc 1.06 > > Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. > > This is free software with ABSOLUTELY NO WARRANTY. > > For details type `warranty'. > > scale = 3000# number o

Re: Compute pi to base 12 using Python?

2005-04-17 Thread Dick Moores
Roel Schroeven wrote at 01:45 4/17/2005: Dick Moores wrote: M.E.Farmer wrote at 23:18 4/14/2005: > >Using the GNU "bc" utility: > > > > $ bc -l > > bc 1.06 > > Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. > > Thi

Re: Compute pi to base 12 using Python?

2005-04-17 Thread Dick Moores
Bengt Richter wrote at 02:26 4/17/2005: >Could someone remind me how to get the output of bc -l into a text file >on Windows? (I've tried employing " > pi3003.txt" in various ways) OR, >how to copy and paste from the command line window, or whatever that >window is called? (Sorry for the OT questio

Re: Compute pi to base 12 using Python?

2005-04-17 Thread Dick Moores
Paul Rubin wrote at 02:35 4/17/2005: Dick Moores <[EMAIL PROTECTED]> writes: > >C:\cygwin\bin\bc -l > pi12.txt > > But how or when do you enter the lines > > scale = 3000 > obase = 12 > print 4 * a(1) You could put them into a file, say pi.bc. Then run bc -l pi

Programming Python, 3rd ed.??

2006-01-02 Thread Dick Moores
Several months ago I saw an item on the O'Reilly site to the effect that the 3rd. ed. of Programming Python was in the works. I made a note to myself to check back in January. I just did, but could find nothing at all about a 3rd. edition. Anyone know? Thanks, Dick Moores --

Need Python for Linux (Suse 10.1)

2006-08-31 Thread Dick Moores
arball would be suitable for him? Advice for him, please. Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for the Perfect Editor

2006-09-09 Thread Dick Moores
At 01:10 PM 9/8/2006, Doug Stell wrote: >Try www.TextPad.com. I've used it for years and love it. It >understands many programming language constructs and can be taught to >understand python so that things show up in color. Any tips on how to teach TextPad to understand python?

Re: Looking for the Perfect Editor

2006-09-10 Thread Dick Moores
At 02:15 PM 9/10/2006, Kent Johnson wrote: >Dick Moores wrote: > > At 01:10 PM 9/8/2006, Doug Stell wrote: > >> Try www.TextPad.com. I've used it for years and love it. It > >> understands many programming language constructs and can be taught to > >> un

Re: Looking for the Perfect Editor

2006-09-10 Thread Dick Moores
At 06:30 PM 9/10/2006, Kent Johnson wrote: >Dick Moores wrote: > > > I downloaded Python (7) from > > http://www.textpad.com/add-ons/synn2t.html and put the file > > PythonV2.4.syn in C:\Program Files\TextPad 4\system . > > > > However, no syntax highlightin

Re: Looking for the Perfect Editor

2006-09-14 Thread Dick Moores
t doesn't seem to be very active.) Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for the Perfect Editor

2006-09-14 Thread Dick Moores
At 08:51 AM 9/14/2006, stu wrote: >Dick Moores wrote: > > I'm trying out jEdit and UliPad. I got UliPad going right away and > > I'm very pleased with it, but could I jump in here with a basic jEdit > > question? How do you run a script? > > > > And on

Re: Problem with following python code

2007-06-11 Thread Dick Moores
Try: for i in range(10,100): f=1 max = int(i**.5 + 1) for j in range(2,max): if i%j==0: f=0 break else: continue if f==1: print i, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Looking for a wxPython GUI builder

2007-06-15 Thread Dick Moores
How about SPE? Any others? And which ones do people actually use? Commercial or Freeware. Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: preferred windows text editor?

2007-05-10 Thread Dick Moores
At 11:06 AM 5/9/2007, T. Crane wrote: >Right now I'm using Notepad++. What are other people using? Ulipad. Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: OOP in Python book?

2007-07-27 Thread Dick Moores
he world's leading educational publisher". Textbooks are typically expensive. Here's the Amazon link: <http://www.amazon.com/Object-Oriented-Programming-Python-Michael-Goldwasser/dp/0136150314> Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: OOP in Python book?

2007-07-28 Thread Dick Moores
At 01:27 PM 7/28/2007, Dennis Lee Bieber wrote: >On Fri, 27 Jul 2007 16:27:57 -0700, Dick Moores <[EMAIL PROTECTED]> >declaimed the following in comp.lang.python: > > > > Well, the publisher is Prentice Hall, "The world's leading > > educational publi

Re: the one python book

2007-08-08 Thread Dick Moores
;Reilly site for the book, and look down the >page for the link to the examples' source. > >Or (for Programming Python): > >http://www.oreilly.com/catalog/python2/ >http://www.oreilly.com/catalog/python3/ No CD with 3rd edition, but here are the examples: <http://examples.oreilly.c

WinPdb?

2007-08-08 Thread Dick Moores
hat version 1.2.0 came out August 6 (the latest svn revision of Ulipad already has it: < http://ulipad.googlecode.com/svn/> (Ulipad's developer, Limodou, is very responsive). Thanks, Dick Moores ==   Bagdad Weather < http://weather

Puzzled by "is"

2007-08-09 Thread Dick Moores
>>> () is () True >>> (1,) is (1,) False Why? Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Puzzled by "is"

2007-08-09 Thread Dick Moores
At 10:46 AM 8/9/2007, Bill Scherer wrote: >Dick Moores wrote: > > >>> () is () > > True > > >>> (1,) is (1,) > > False > > > > Why? > > > > >>> a = () > >>> b = () > >>> c = (1,) > >&

Re: Puzzled by "is"

2007-08-10 Thread Dick Moores
At 06:13 PM 8/9/2007, Ben Finney wrote: >Content-Transfer-Encoding: base64Grzegorz >Słodkowicz <[EMAIL PROTECTED] [EMAIL PROTECTED] >theorisation but I'd rather expect the interpreter > > simply not to create a second tuple while there already is an > > identical one. > >Others have already sai

Re: Puzzled by "is"

2007-08-12 Thread Dick Moores
On 8/12/07, Ben Finney <[EMAIL PROTECTED]> wrote: > > Dick Moores <[EMAIL PROTECTED]> writes: > > > At 06:13 PM 8/9/2007, Ben Finney wrote: > > >it's entirely left to the language implementation which > > >optimisation trade-offs to make, and the

Re: Puzzled by "is"

2007-08-12 Thread Dick Moores
At 08:23 AM 8/12/2007, Steve Holden wrote: >Dick Moores wrote: > > So would a programmer EVER use "is" in a script? > >Sure. For example, the canonical test for None uses > > x is None > >because there is only ever one instance of type Nonetype, so it&#x

Re: Puzzled by "is"

2007-08-12 Thread Dick Moores
At 09:59 AM 8/12/2007, Steve Holden wrote: >Dick Moores wrote: > > At 08:23 AM 8/12/2007, Steve Holden wrote: > >> Dick Moores wrote: > >>> So would a programmer EVER use "is" in a script? > >> Sure. For example, the canonical test for None uses &g

A dumb question about a class

2007-08-12 Thread Dick Moores
I'm still trying to understand classes. I've made some progress, I think, but I don't understand how to use this one. How do I call it, or any of its functions? It's from the Cookbook, at <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/523048&

Re: A dumb question about a class

2007-08-12 Thread Dick Moores
At 03:09 PM 8/12/2007, Steven Bethard wrote: >Here's how I'd write the recipe:: > > import itertools > > def iter_primes(): > # an iterator of all numbers between 2 and +infinity > numbers = itertools.count(2) > > # generate primes forever > while True

Re: A dumb question about a class

2007-08-12 Thread Dick Moores
Thanks for your help. I didn't learn much about classes, but appreciated your iter_primes() a lot! Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Binary, Hex, and Decimal string conversions

2007-08-12 Thread Dick Moores
n returns "c". Is my indentation wrong, or the code? It seems to me that the code should work for the general case, not just for n >= base. Dick Moores How 'bout you hack a from_base function and email it back to me? (hint: type 'help(int)' in the python interpret

Re: Binary, Hex, and Decimal string conversions

2007-08-12 Thread Dick Moores
At 07:04 PM 8/12/2007, Michael Bentley wrote: >On Aug 12, 2007, at 6:28 PM, Dick Moores wrote: > >>n = 12 >>base = 36 >>print to_base(n, base) >>== >>This seems to work fine for n >= base, but not for n < base. For

Re: Binary, Hex, and Decimal string conversions

2007-08-13 Thread Dick Moores
't roll my own. I just preferred "n" to "number".  I greatly appreciated your code! Dick On 8/12/07, Dick Moores <[EMAIL PROTECTED]> wrote: At 07:04 PM 8/12/2007, Michael Bentley wrote: >On Aug 12, 2007, at 6:28 PM, Dick Moores wrote: >

Opinions about this new Python book?

2007-08-14 Thread Dick Moores
her's website: <http://tinyurl.com/2dkhzg> And at BestBookDeal.com: < http://www.bestbookdeal.com/book/compare/1598631586> Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Opinions about this new Python book?

2007-08-14 Thread Dick Moores
At 05:57 AM 8/14/2007, [EMAIL PROTECTED] wrote: >On Aug 14, 7:05 am, Dick Moores <[EMAIL PROTECTED]> wrote: > > I'd appreciate opinions about this new Python book. > > > > Title: Python Power!: The Comprehensive Guide > > Author: Matt Telles > > Publi

Re: Hot subject: a good python editor and/or IDE?

2007-08-19 Thread Dick Moores
ditor/IDE ? A tiny precision, I am on Ubuntu so I am looking >for a linux compatible editor. I thought Ulipad WAS linux-compatible. Isn't it? Dick Moores XP, Python 2.5, editor is Ulipad == Bagdad Weather <http://weather.yahoo

Re: A problem with Time

2007-08-19 Thread Dick Moores
days date? The question has already been well-answered, but since I've found using the datetime module to be tough going, I was wondering if either of these would be easier to understand and use: 1. <http://www.egenix.com/products/python/mxBase/mxDateTime/> I see that mxDateTime comes

Re: 'REPL' style IDE

2007-08-22 Thread Dick Moores
not have a lot of the >convenient features. > >I am wondering if there is anything more powerful than IDLE that can >do this. Are you sure you can't do this with Wing? Have you asked support, <[EMAIL PROTECTED]>? Dick Moores ==

Re: IDE for Python

2007-08-22 Thread Dick Moores
ns for new features. He's Chinese, in Beijing, so is on Beijing time, but during his day he seems to check his mail often. (Gmail users can see when he's using his Gmail account.) If you do become a Ulipad user, I strongly suggest you subscribe to the Ulipad list at Google Groups, <

Re: Speed of Python

2007-09-11 Thread Dick Moores
At 09:42 AM 9/7/2007, wang frank wrote: >Are there any way to speed it up? How about psyco? Dick Moores XP, Python 2.5.1, editor is Ulipad -- http://mail.python.org/mailman/listinfo/python-list

Re: number generator

2007-03-10 Thread Dick Moores
closed interval [1,M-N-1]), and return the first list the sum of which is M? I don't understand what all the discussion is about. Time is not one of the constraints. Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: number generator

2007-03-12 Thread Dick Moores
At 06:38 AM 3/10/2007, Steven D'Aprano wrote: >On Sat, 10 Mar 2007 02:32:21 -0800, Dick Moores wrote: > > > So why not just repeatedly call a function to generate lists of > > length N of random integers within the appropriate range (the closed > > interval [1,M-N-1

Re: number generator

2007-03-13 Thread Dick Moores
At 02:52 AM 3/13/2007, Duncan Booth wrote: >Dick Moores <[EMAIL PROTECTED]> wrote: > > > But let's say there is one more constraint--that for each n of the N > > positive integers, there must be an equal chance for n to be any of > > the integers between 1 and

Re: number generator

2007-03-13 Thread Dick Moores
At 06:59 AM 3/13/2007, Anton Vredegoor wrote: >Dick Moores wrote: > > > If the added constraint is instead that the probability of generating > > a given list of length N be the same as that of generating any other > > list of length N, then I believe my function

Re: number generator

2007-03-13 Thread Dick Moores
fixed telegraph pole at N and a fixed telegraph pole at M, and you're given 5 more telegraph poles..." (Gerard Flanagan), but even now I can't take it anywhere. I guess I'm just a dim bulb. (I thought I was a fairly smart guy until I took up Python.) Dick Moores -- http

Re: number generator

2007-03-13 Thread Dick Moores
At 06:20 PM 3/13/2007, Paul Rubin wrote: >Dick Moores <[EMAIL PROTECTED]> writes: > > I understand what zip() and random.sample() are doing, and the above > > helps me get inside the fencepost method, but I don't understand WHY > > it works, or how in the world any

Re: Weekly Python Patch/Bug Summary

2007-03-16 Thread Dick Moores
SVN. Is that what is meant? And if so, what's the URL of the trunk? Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Weekly Python Patch/Bug Summary

2007-03-17 Thread Dick Moores
At 01:32 AM 3/17/2007, Terry Reedy wrote: >"Dick Moores" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >| May I ask a dumb question here? It isn't clear to me what to do with >these patches. For most of them there is something like, "Committe

Re: SPE question

2007-03-27 Thread Dick Moores
At 01:39 AM 3/27/2007, alain wrote: >Hi, > >Could someone tell me how to uninstall SPE under windows? Well, mine is in E:\Python25\Lib\site-packages\_spe, so I'd try deleting that folder. Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: SPE question

2007-03-27 Thread Dick Moores
#x27;ve installed can >be uninstalled from control panel/add remove programs. SPE doesn't show up on my win XP add/remove programs list. Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Welch essential for learning Tkinter well?

2007-04-05 Thread Dick Moores
kinter at all (in the 4th edition at least)? 2) If it is good for learning Tkinter, can I get by with a cheaper, used copy of the 3rd edition? Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Welch essential for learning Tkinter well?

2007-04-07 Thread Dick Moores
t for Tkinker. There's a whole chapter, "Tkinter GUIs" (46 pages!). > Grayson's book is another reasonable alternative >(and includes enough reference material to keep you from having to refer >to the tcl/tk documentation very often). One web tutorial that

Saving output of Turtle Graphics?

2007-04-07 Thread Dick Moores
le-turtle.html>) But how could I have saved them "automatically"? The script as shown will clear (T.clear() -- the 3rd line from the bottom) the window after producing 6 to maybe 15 superimposed triangles, so clearing will take place maybe 30 times. How can I save as images each of the 30 windows just before they are cleared? Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Welch essential for learning Tkinter well?

2007-04-07 Thread Dick Moores
At 03:43 AM 4/7/2007, James Stroud wrote: >Dick Moores wrote: > > At 10:36 AM 4/6/2007, Russell E. Owen wrote: > >> I find Welch's book and the on-line tcl/tk help very helpful for Tkinter > >> programming--especially some of the more obscure details. But to us

Re: Saving output of Turtle Graphics?

2007-04-07 Thread Dick Moores
At 06:50 AM 4/7/2007, =?ISO-8859-2?Q?Wojciech_Mu=B3a?= wrote: >Dick Moores wrote: > > I accidentally stumbled across the Turtle Graphics module (turtle.py) > > the other day and have been having some fun with it. > > > > Now I'm wondering if there is a way to b

Re: Saving output of Turtle Graphics?

2007-04-07 Thread Dick Moores
At 08:48 AM 4/7/2007, =?ISO-8859-2?Q?Wojciech_Mu=B3a?= wrote: >Dick Moores wrote: > >> Turtle module uses Tk canvas element to draw graphics ('_canvas' > >> attribute). I've written module, that exports canvas graphics to SVG > >> file: http://wmu

Re: Saving output of Turtle Graphics?

2007-04-07 Thread Dick Moores
At 09:31 AM 4/7/2007, =?ISO-8859-2?Q?Wojciech_Mu=B3a?= wrote: >Dick Moores wrote: > > What do I do to see this? > >For example Opera 9 and Firefox 1.5+ are able to view SVG files; >there is a free plugin for IrfanView. Ha. I had tried it with Firefox 2 already, but I st

Where's the Starship's crew?

2007-10-05 Thread Dick Moores
<http://starship.python.net/crew/index.html> I didn't check on all of them, but the only one I found was Mark Hammond <http://starship.python.net/crew/mhammond/>. Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Where's the Starship's crew?

2007-10-05 Thread Dick Moores
At 04:54 AM 10/5/2007, Thomas Heller wrote: >Dick Moores schrieb: > > <http://starship.python.net/crew/index.html> > > > > I didn't check on all of them, but the only one I found was Mark > > Hammond <http://starship.python.net/crew/mhammond/>. > &g

Top Programming Languages of 2013

2007-10-06 Thread Dick Moores
<http://www.redcanary.ca/view/top-programming> Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

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

2007-10-29 Thread Dick Moores
Windows XP Pro, Python 2.5.1 import msvcrt while True: if msvcrt.kbhit(): key = msvcrt.getch() if key == 'Enter' do something Is there a way to catch the pressing of the 'Enter' key? Thanks, Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

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
At 04:26 PM 11/18/2007, Fredrik Johansson wrote: >Basically, sympy.numerics is an old version of mpmath. The >sympy.numerics module is not very well integrated in SymPy, slower >than mpmath, and has a couple bugs that have subsequently been fixed >in mpmath. In sympycore (http://code.google.com/p/

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
At 10:42 AM 11/20/2007, [EMAIL PROTECTED] wrote: >Instead of comparing sum to the "known" value of e**x, why not test >for convergence? I.e., if sum == last_sum: break. Seems like that >would be more robust (you don't need to know the answer to computer >the answer), since it seems like it should

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

  1   2   >