Re: Is it more CPU-efficient to read/write config file or read/write sqlite database?

2013-12-18 Thread dick
eliably even >in the event of a major failure. > >Databases protect against that. If you want that protection, use a >database. If you don't, use a file. There's nothing wrong with either >option. > >ChrisA > >[1] on the web here, for those who don't have them handy: >http://linux.die.net/man/2/fsync Don't forget that most hard disks have an option to cache the write data. This is a 'feature' that allows the manufacturers to claim better write performance. You can't be sure when the data is written to the disk if that option is in play. Dick -- https://mail.python.org/mailman/listinfo/python-list

Re: Is it more CPU-efficient to read/write config file or read/write sqlite database?

2013-12-18 Thread dick
On Wed, 18 Dec 2013 12:00:50 -0600, Tim Chase wrote: >On 2013-12-18 09:49, dick wrote: >> Don't forget that most hard disks have an option to cache the write >> data. This is a 'feature' that allows the manufacturers to claim >> better write performance

pyTTS com_error

2007-12-11 Thread Dick
I am trying to get the pyTTS module working. I have Python 2.4, the Microsodt SAPI and pyTTS-3.0.win32-py2.4.exe installed. When I run this script: import pyTTS tts = pyTTS.Create() #set the speech rate tts.Rate = 4 #set the speech volume percentage (0-100%) tts.Volume = 40 #get a list of all

Re: Windows vista

2009-02-16 Thread Dick
y to a firewall popup the first time I run IDLE and tell it to allow IDLE to open a port. The next time I run IDLE, all is OK. I still have the problem that sometimes IDLE does not properly cleanup hung processes, which means IDLE will not restart. Dick Johnson -- http://mail.python.org/mailman/listinfo/python-list

python\bluetooth / wsgi / apache 2.2

2012-12-13 Thread Barry Dick
I'm wanting to read from my bluetooth device (it just sends data/header with a checksum at the end, in a continuous mode "a biofeedback device") and I'm getting a weird error in my logs not allowing me to use multiple sockets. I guess with wsgi, I'm creating a link/module between the two apis (a

Python parsing Bluetooth RFCOMM for 9 bytes

2012-12-13 Thread Barry Dick
My data looks like this when it comes from the device (biofeedback device). There are 9 bytes in total, and I need to buffer so much, and then poll it for new/recent packets. The start packet unfortunately starts with 0x00 So far the only thing I've found that looks like what I want to do is thi

Re: Python parsing Bluetooth RFCOMM for 9 bytes

2012-12-13 Thread Barry Dick
> Is the following more like how you want it? > > > > data = "" > > try: > > while True: > > try: > > more = client_socket.recv(9) > > except bluetooth.BluetoothError, b: > > print "Bluetooth Error: ", b > > else: > >

Re: Tk MouseWheel Support

2011-03-11 Thread Dick Holmes
On Thu, 10 Mar 2011 21:56:52 +0100, Alexander Kapps wrote: >Can you post your code please (if it's too long, strip it down to >the smallest program which still shows the problem.) First, thanks to MRAB for showing me how to get the wheel working. In the following code (Windows only), rolling

setuptools for 64-bit 2.7.1 on 64-bit Windows 7?

2011-05-06 Thread Dick Bridges
64-bit python 2.7.1? If there is an installer that works, what terms might I use to Google for information on how to acquire and install it? Regards, Dick Bridges (\(\ Western Digital ¸". .. ( . .) The opinions and data

RE: setuptools for 64-bit 2.7.1 on 64-bit Windows 7?

2011-05-09 Thread Dick Bridges
me back to that link - I was clearly too hasty dismissing it during my so-called "due diligence". 8-P Dick Bridges (\(\ Western Digital ¸". .. ( . .) The opinions and data in this missive are my own and do not necessarily | ° ¡ represent Western Dig

Installing tkinter on FreeBSD

2017-10-23 Thread Dick Holmes
_tkinter. Despite this report, Python works for non-tkinter applications. Is there a magical formula for configuring tkinter during or after a build?? TIA! -- Dick Holmes -- https://mail.python.org/mailman/listinfo/python-list

Winpdb-reborn anomalies

2021-05-18 Thread Dick Holmes
over, step into, etc.) I haven't been able to find any way to turn off this output. Any suggestions greatly appreciated! Dick -- https://mail.python.org/mailman/listinfo/python-list

Re: Winpdb-reborn anomalies - workaround

2021-05-18 Thread Dick Holmes
ourput starts with a > get_namespace() call. It does this > after each debug action (step over, step into, etc.) I haven't been able > to find any way to turn off this output. > > Any suggestions greatly appreciated! > > Dick I found the code that forces debug info

Interacting with Subprocesses

2016-05-04 Thread Dick Holmes
o I can't change the communication medium. Is there some feature that will allow me to initiate the process and execute multiple message/response pairs between the Python program and the process during a single execution of the process? Thanks! Dick -- https://mail.python.org/mailman/listinfo/python-list

Subprocess Popen confusion

2020-05-13 Thread Dick Holmes
e operation. I have tried using read but the read call doesn't return (I'm using winpdb-reborn to monitor the operations). I'm using Python 3.7, Windows 10, winpdb-reborn 2.0.0, rpdb2 1.5.0. If it makes any difference, I'm trying to communicate with GDB using the MI in

Re: Subprocess Popen confusion

2020-05-14 Thread Dick Holmes
In article , __pete...@web.de says... > > Dick Holmes wrote: > > > https://occovid19.ochealthinfo.com/coronavirus-in-oc > > > I'm trying to > > communicate using a continuing dialog between two > > processes on the same system. > > I think

Re: Subprocess Popen confusion

2020-05-18 Thread Dick Holmes
In article , __pete...@web.de says... > > Dick Holmes wrote: > > > https://occovid19.ochealthinfo.com/coronavirus-in-oc > > > I'm trying to > > communicate using a continuing dialog between two > > processes on the same system. > > I think

[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

Potential improvement on delegation via explicit calls and super

2004-12-17 Thread Robert Dick
ably ways to make its use more intuitive, but I'm new to the language so I don't know the tricks yet. Thanks for any tips, -Robert Dick- '''See the example at the bottom.''' import inspect def flatten_tree(tree): '''Flatten a tree repr

Re: Calling __init__ with multiple inheritance

2005-03-28 Thread Robert Dick
nd problems with the approach, I hope it becomes standard. I found it distracting that python's default argument passing approach conflicts with its default delegation approach. Good luck, -Robert Dick- -- http://mail.python.org/mailman/listinfo/python-list

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
is called? (Sorry for the OT question.) BTW I found a nice set of SCO UNIX man pages at <http://www.rt.com/man/>. Dick -- http://mail.python.org/mailman/listinfo/python-list

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
on some version of windows. To be safe, invoke the interpreter explicitly, e.g., python myscript.py [whatever args here] > pi3003.txt Thanks very much for this. What kind of args could I use here? Dick -- http://mail.python.org/mailman/listinfo/python-list

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

wrappers for C/C++

2015-12-11 Thread Ginga, Dick
I have inherited a product build that uses SWIG to product wrapper libraries for our C/C++ code. It currently builds these wrappers for 2.5, 2.6, 3.1 and 3.2. Is it necessary to have version specific wrappers? -- https://mail.python.org/mailman/listinfo/python-list

RE: wrappers for C/C++

2015-12-11 Thread Ginga, Dick
: wrappers for C/C++ On Sat, Dec 12, 2015 at 5:40 AM, Ginga, Dick wrote: > Thank you Chris for this answer. These are the _only_ versions the build > creates. Are you saying that wrappers for 3.5 "may" continue to support > future versions? That's a Windows-specifi

RE: wrappers for C/C++

2015-12-11 Thread Ginga, Dick
Of Chris Angelico Sent: Friday, December 11, 2015 1:29 PM Cc: python-list@python.org Subject: Re: wrappers for C/C++ On Sat, Dec 12, 2015 at 4:21 AM, Ginga, Dick wrote: > I have inherited a product build that uses SWIG to product wrapper libraries > for our C/C++ code. It currently build

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

RPC client class?

2006-03-02 Thread Dick Watson
We have a legacy device that exposes an RPC server. We have an RPCL defininition of its interface. We want to develop an RPC client of this interface in Python that will be usable in both Win32 and open systems environments. I can find some *very* dated references to a demo/rpc.py, but I can't

Re: RPC client class?

2006-03-03 Thread Dick Watson
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > if the RPC you're talking about is Sun RPC, the whole concept is pretty > dated (the original RFCs are from the late eighties). Just because it's dated doesn't meant it isn't still something that occasionally needs don

Re: MRO problems with diamond inheritance?

2005-05-01 Thread Robert Dick
M.E.Farmer: > Your answer lies somewhere in this page ;) > http://www.python.org/2.2.2/descrintro.html > M.E.Farmer delegate.py (use PyPI) may also be useful. -Robert Dick- -- http://mail.python.org/mailman/listinfo/python-list

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
" here. Would 2.5 for Windows, Mac, Linux all be different implementations? Would Iron Python be another? ActivePython? Thanks, Dick -- http://mail.python.org/mailman/listinfo/python-list

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
> def _add_prime(self): > # take a prime off the iterator and update the prime set > self._last_prime = self._prime_iter.next() > self._prime_set.add(self._last_prime) I'm afraid my next question is "How do I run this"? Dick -- http://mail.python.org/mailman/listinfo/python-list

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
At 07:35 AM 8/13/2007, Robert Dailey wrote: Just curious Dick, why are you making your own to_base method? Doesn't the source I provided in my earlier email give you all that you need? I was hoping my source might be useful to a few people, even though it's pretty trivial code. I didn

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

Matplotlib axis control problem

2007-10-16 Thread Dick Crepeau
falls within one decade so I don't want the full 10-100 limits. I'm rather new at matplotlib so if I'm making trivial errors please feel free to criticize. Thanks Dick C from pylab import * from matplotlib.ticker import MaxNLocator x=[10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0] y

why doesn't have this list a "reply-to" ?

2007-10-16 Thread Dick Crepeau
s note was sent to: python-list@python.org with the subject copied from an earlier note. No need to discuss the politics of the choice. Dick C -- http://mail.python.org/mailman/listinfo/python-list

Matlab axis control problem - solved

2007-10-16 Thread Dick Crepeau
I don't understand my earlier problem but the following code works no matter what the ylim is set to: I reworked the example major_minor_demo1.py to find the answer. thanks Dick C ps: I still can't post a reply since I read the list with my mozilla or konqueror browser and email

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

  1   2   >