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

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: 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

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

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

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

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

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

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

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: 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

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: 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: > >

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

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

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

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: 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

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

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

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

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

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

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: 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.

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: 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

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: 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

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: 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

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: 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: 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-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-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 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

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: 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

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
)) 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 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 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

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

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

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: 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 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
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() > >

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

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

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

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

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

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

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: 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: 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: '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: 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: 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: 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

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: 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

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-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: 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: 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

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: 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

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
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-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-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,) > >&

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

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

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

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: 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

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: 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

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: 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

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 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: 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

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
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

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: 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

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: 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: 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: 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: 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: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
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-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

  1   2   >