Re: [Tutor] Mainframe Technology (was: aBSOLUTE BEGINNER) (OT)

2007-10-18 Thread Carroll, Barry
> -Original Message- > Date: Thu, 18 Oct 2007 10:53:22 +0100 > From: "Alan Gauld" <[EMAIL PROTECTED]> > Subject: Re: [Tutor] aBSOLUTE BEGINNER > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=origina

Re: [Tutor] Need Some Help

2007-08-22 Thread Carroll, Barry
> -Original Message- > Date: Wed, 22 Aug 2007 02:23:25 -0700 > From: chinni <[EMAIL PROTECTED]> > Subject: [Tutor] Need Some Help > To: tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi All, > > I am new to python.i need so

Re: [Tutor] Question re Tutor List Etiquette

2007-08-14 Thread Carroll, Barry
> Date: Tue, 14 Aug 2007 12:33:16 -0700 > From: Dick Moores <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Question re Tutor List Etiquette > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii"; format=flowed > > At 11:56 AM 8/14/2007, Kent Johnson wro

Re: [Tutor] Design Pattern + Wxpython

2007-08-02 Thread Carroll, Barry
> -Original Message- > Message: 4 > Date: Wed, 1 Aug 2007 19:01:36 +0400 > From: "Pradeep Kumar" <[EMAIL PROTECTED]> > Subject: [Tutor] Design Pattern + Wxpython > To: tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > I am new t

Re: [Tutor] how long?

2007-07-03 Thread Carroll, Barry
> -Original Message- > Message: 7 > Date: Tue, 3 Jul 2007 19:46:42 +1200 > From: Ben Walden <[EMAIL PROTECTED]> > Subject: [Tutor] how long? > To: > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > How long will it take until I successfully create my ow

Re: [Tutor] Invoking Python from Vim

2007-06-08 Thread Carroll, Barry
> -Original Message- > Date: Fri, 8 Jun 2007 00:19:39 +0100 > From: "Alan Gauld" <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Invoking Python from Vim > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=

Re: [Tutor] leave tutorial

2007-06-01 Thread Carroll, Barry
> -Original Message- > Date: Wed, 30 May 2007 14:50:25 -0500 > From: "Grant Hagstrom" <[EMAIL PROTECTED]> > Subject: Re: [Tutor] leave tutorial > To: "Kriti Satija" <[EMAIL PROTECTED]> > Cc: Tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso

Re: [Tutor] range()-like function for dealing with floats...?

2007-03-30 Thread Carroll, Barry
> -Original Message- > Date: Fri, 30 Mar 2007 19:28:51 +0200 > From: Andreas Kostyrka <[EMAIL PROTECTED]> > Subject: Re: [Tutor] range()-like function for dealing with floats...? > To: "Carroll, Barry" <[EMAIL PROTECTED]> > Cc: tutor@python.org >

Re: [Tutor] range()-like function for dealing with floats...?

2007-03-30 Thread Carroll, Barry
> -Original Message- > Date: Fri, 30 Mar 2007 14:47:26 +0530 > From: "Joydeep Mitra" <[EMAIL PROTECTED]> > Subject: [Tutor] range()-like function for dealing with floats...? > To: tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" >

Re: [Tutor] Making table

2007-03-21 Thread Carroll, Barry
> -Original Message- > Date: Tue, 20 Mar 2007 22:53:15 +0100 > From: J?nos Juh?sz <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Making table > To: tutor@python.org > Message-ID: >[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-2" > > Dear Barry, > > >>Using a formatt

Re: [Tutor] Making table

2007-03-19 Thread Carroll, Barry
> -Original Message- > From: Kent Johnson [mailto:[EMAIL PROTECTED] > Sent: Monday, March 19, 2007 12:59 PM > To: Carroll, Barry > Cc: tutor@python.org > Subject: Re: [Tutor] Making table > > Carroll, Barry wrote: > >> -Original Message- > >

Re: [Tutor] Making table

2007-03-19 Thread Carroll, Barry
> -Original Message- > Date: Mon, 19 Mar 2007 11:53:06 -0400 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Making table > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Dave Kuhlman wrote: > > Try l

Re: [Tutor] forth

2007-03-02 Thread Carroll, Barry
> -Original Message- > Date: Fri, 02 Mar 2007 14:54:04 -0800 > From: Bob Gailer <[EMAIL PROTECTED]> > Subject: Re: [Tutor] forth > To: Hilton Garcia Fernandes <[EMAIL PROTECTED]> > Cc: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=

Re: [Tutor] python problem

2007-03-01 Thread Carroll, Barry
> -Original Message- > Date: Thu, 1 Mar 2007 10:54:36 -0500 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] python problem > To: "Purcell, Brittany Nicole" <[EMAIL PROTECTED]>, > > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1

[Tutor] Picking Nits in "Learning to Program"

2007-02-16 Thread Carroll, Barry
Alan: This is arguably a minor detail, and not directly related to Python but, hey, I'm a programmer. Minor details are my stock in trade. So here goes. In "Learning to Program", look at "The Raw Materials", "Real Numbers". The first sentence, "These are fractions" is technically incorrect

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Carroll, Barry
Greetings: I just thought I'd throw my own hat into the ring. I'm trying out my new, asbestos-free, flame-retardant underwear. ;^) > -Original Message- > Date: Fri, 16 Feb 2007 08:14:29 -0500 > From: "Michael P. Reilly" <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Replying to the tutor-li

[Tutor] Property Question (Was: RE: Overloading assignment operator)

2007-02-08 Thread Carroll, Barry
> -Original Message- > From: Tony Cappellini [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 08, 2007 5:41 PM > To: Carroll, Barry > Subject: re:Overloading assignment operator > > Hello Barry > > I'm trying to understand you post > > my que

Re: [Tutor] converting tab-delimited text files to csv

2007-01-29 Thread Carroll, Barry
> -Original Message- > Date: Fri, 26 Jan 2007 22:40:24 -0500 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] converting tab-delimited text files to csv > To: Luke Paireepinart <[EMAIL PROTECTED]> > Cc: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/p

Re: [Tutor] Telepathic Python (was: Division doesn't work)

2007-01-18 Thread Carroll, Barry
> -Original Message- > Date: Thu, 18 Jan 2007 14:16:07 +0100 > From: Zara <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Division doesn't work > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=us-ascii > > On Thu, 18 Jan 2007 13:09:48 +0100, Geoframer

Re: [Tutor] python dictionaries

2007-01-05 Thread Carroll, Barry
> -Original Message- > Message: 7 > Date: Fri, 05 Jan 2007 15:43:56 -0800 > From: "Raven Of Night Raven Of Night" <[EMAIL PROTECTED]> > Subject: [Tutor] python dictionaries > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; format=flowed > > Hi, there was

Re: [Tutor] basic python question/getting values

2007-01-02 Thread Carroll, Barry
Joe: See below: > -Original Message- > Date: Tue, 2 Jan 2007 19:16:33 + (UTC) > From: Joe M <[EMAIL PROTECTED]> > Subject: [Tutor] basic python question/getting values > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

Re: [Tutor] Accessing the name of a Function

2006-12-13 Thread Carroll, Barry
> -Original Message- > From: Kent Johnson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 13, 2006 3:42 PM > To: Carroll, Barry > Cc: tutor@python.org > Subject: Re: [Tutor] Accessing the name of a Function > <> > > You could also do this very si

Re: [Tutor] Accessing the name of a Function

2006-12-13 Thread Carroll, Barry
and Kent for their help Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed > -Original Message- > From: Kent Johnson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December

Re: [Tutor] Accessing the name of a Function

2006-12-12 Thread Carroll, Barry
MAIL PROTECTED] > Sent: Tuesday, December 12, 2006 4:05 PM > To: Carroll, Barry > Cc: tutor@python.org > Subject: Re: [Tutor] Accessing the name of a Function > > * Carroll, Barry <[EMAIL PROTECTED]> [061212 23:54]: > >Greetings: > > > > > &g

[Tutor] Accessing the name of a Function

2006-12-12 Thread Carroll, Barry
Greetings: Is it possible, from inside a stand-alone function (not a member of a class), to access the string representation of the function's name? If so, how? Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning

Re: [Tutor] How to generate permutations of a given string

2006-11-28 Thread Carroll, Barry
pe: text/plain; charset="us-ascii"; format=flowed > > At 02:49 PM 11/27/2006, John Fouhy wrote: > >On 28/11/06, Carroll, Barry <[EMAIL PROTECTED]> wrote: > > > I'm not sure these qualify as "simple", but they work. This was one > of &g

Re: [Tutor] How to generate permutations of a given string

2006-11-27 Thread Carroll, Barry
Hello, Asrarahmed > -Original Message- > Date: Mon, 27 Nov 2006 12:06:54 + > From: "Asrarahmed Kadri" <[EMAIL PROTECTED]> > Subject: [Tutor] How to generate permutations of a given string > To: tutor-python > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=

Re: [Tutor] Ruby Code Blocks vs. Python Lambdas

2006-11-09 Thread Carroll, Barry
Hello, John > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Fouhy > Sent: Tuesday, November 07, 2006 6:56 PM > To: Carroll, Barry > Cc: tutor@python.org > Subject: Re: [Tutor] Ruby Code Blocks vs. Python Lambdas > > On

Re: [Tutor] Ruby Code Blocks vs. Python Lambdas

2006-11-07 Thread Carroll, Barry
pe: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=original > > "Carroll, Barry" <[EMAIL PROTECTED]> wrote > <> > > > The consensus was that Python was much better than Ruby in > > all ways. > > That

Re: [Tutor] Ruby Code Blocks vs. Python Lambdas

2006-11-07 Thread Carroll, Barry
OTECTED]> > Content-Type: text/plain; charset="us-ascii" > > Am Dienstag, den 07.11.2006, 09:56 + schrieb Alan Gauld: > > "Carroll, Barry" <[EMAIL PROTECTED]> wrote > > > > > Thank you for this post. I was in a discussion of Ruby vs. Pytho

[Tutor] Ruby Code Blocks vs. Python Lambdas

2006-11-06 Thread Carroll, Barry
Danny: > -Original Message- > Date: Mon, 6 Nov 2006 14:28:30 -0800 (PST) > From: Danny Yoo <[EMAIL PROTECTED]> > Subject: Re: [Tutor] (OT) Flame wars > To: Chris Hengge <[EMAIL PROTECTED]> > Cc: Tutor > Message-ID: <[EMAIL PROTECTED]> > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=f

[Tutor] (OT) Flame wars (was: Amazing power of Regular Expressions...)

2006-11-06 Thread Carroll, Barry
Greetings, all: > -Original Message- > Date: Mon, 6 Nov 2006 10:32:32 + > From: Michael Sparks <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Amazing power of Regular Expressions... > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" >

[Tutor] (OT) Non-Python discussions (Was: I am terribly confused about "generators" ...)

2006-10-27 Thread Carroll, Barry
Greetings: I agree completely with David. There are plenty of places to discuss controvercial topics. Let's not do it here, where it will only disrupt, and possibly ruin, an exceptionally useful teaching and learning channel. Regards, Barry [EMAIL PROTECTED] 541-302-1107 ___

Re: [Tutor] Why is this only catching one occurance?

2006-10-27 Thread Carroll, Barry
Chris: See below. > -Original Message- > Message: 7 > Date: Fri, 27 Oct 2006 12:20:51 -0700 > From: "Chris Hengge" <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Why is this only catching one occurance? > To: "Bob Gailer" <[EMAIL PROTECTED]> > Cc: Tutor > Message-ID: > <[EMAIL PROTE

Re: [Tutor] VIM & Python

2006-10-11 Thread Carroll, Barry
I'm a Vim user, too. I usually have three windows open: IPython to try out snippets of code, ViM to edit the target program, and a command shell to execute the module/run the self tests. A while back I asked the ViM mailing list (vim@vim.org) if there was a way to open a shell window from within

Re: [Tutor] Question about startswith() and endswith() in 2.5

2006-09-25 Thread Carroll, Barry
> -Original Message- > Date: Mon, 25 Sep 2006 02:59:45 -0700 > From: Dick Moores <[EMAIL PROTECTED]> > Subject: [Tutor] Question about startswith() and endswith() in 2.5 > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii"; format=flowed >

[Tutor] Overloading the assignment operator in a class

2006-09-20 Thread Carroll, Barry
Greetings: I have a class that implements a die (singular or dice). Here is the class definition: >>> class Die(object): """Implements a gaming die. Attributes: n: the number of sides Must correspond to the number of sides on a physical die. val

[Tutor] Where to post a Python Program

2006-09-05 Thread Carroll, Barry
Greetings:   I have written a console version of the dice game Yahtzee).  I would like to post it for comment. It is too long to post here and I don’t have a web site.  Is there some place where I can post my code and get feedback about it?   Regards,   Barry [EMAIL PROTECTED] 541-3

Re: [Tutor] Tutor Digest, Vol 30, Issue 68

2006-08-21 Thread Carroll, Barry
Hello, Marcus > Date: Mon, 21 Aug 2006 16:50:37 -0400 > From: "Marcus Goldfish" <[EMAIL PROTECTED]> > Subject: [Tutor] custom container subclassing list-- slices are > lists!? > To: Tutor > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, >

Re: [Tutor] Big wad of Python tutorials

2006-08-21 Thread Carroll, Barry
> -Original Message- > Date: Mon, 21 Aug 2006 13:52:45 -0700 (PDT) > From: Terry Carroll <[EMAIL PROTECTED]> > Subject: [Tutor] Big wad of Python tutorials > To: tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: TEXT/PLAIN; charset=US-ASCII > > > This page, consis

Re: [Tutor] Python on network problems

2006-08-15 Thread Carroll, Barry
Hello, Diana, I have had a little experience with networking problems. Here's my take on your situation. Regards, > Date: Tue, 15 Aug 2006 11:19:35 +1000 > From: Diana Hawksworth <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Python on network problems > To: Alan Gauld <[EMAIL PROTECTED]> > Cc:

Re: [Tutor] syntax error

2006-07-31 Thread Carroll, Barry
Hello Chris, > -Original Message- > Date: Mon, 31 Jul 2006 15:29:13 -0700 (PDT) > From: Christopher Spears <[EMAIL PROTECTED]> > Subject: [Tutor] syntax error > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=iso-8859-1 > > My brain has gone squi

Re: [Tutor] confused by linked queue

2006-07-26 Thread Carroll, Barry
Danny, et al: > -Original Message- > Date: Tue, 25 Jul 2006 15:43:34 -0700 (PDT) > From: Danny Yoo <[EMAIL PROTECTED]> > Subject: Re: [Tutor] confused by linked queue > To: Christopher Spears <[EMAIL PROTECTED]> > Cc: Tutor > Message-ID: <[EMAIL PROTECTED]> > Content-Type: TEXT/PLAIN; ch

Re: [Tutor] Tutor Digest, Vol 29, Issue 66

2006-07-26 Thread Carroll, Barry
Greetings: > -Original Message- > Date: Wed, 26 Jul 2006 10:11:28 +0100 > From: "Alan Gauld" <[EMAIL PROTECTED]> > Subject: Re: [Tutor] loops to assign variables > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > <> > > "John CORRY" <[EMAIL PROTECTED]> wrote > > > For example, I

Re: [Tutor] IDE for Python

2006-07-25 Thread Carroll, Barry
Raj: I prefer ViM as well. I have tried several IDEs: Idle, SlickEdit, Eclipse/PyDev, Stani's Python Editor (SPE). None of them manages multiple editing windows as well as ViM, and that is the feature I use most. In a typical editing session I will have six or more editing windows open, acces

Re: [Tutor] How do you implement a config file?

2006-07-17 Thread Carroll, Barry
Tracy: > Date: Sat, 15 Jul 2006 22:44:43 -0700 (PDT) > From: Danny Yoo <[EMAIL PROTECTED]> > Subject: Re: [Tutor] How do you implement a config file? > To: Tracy R Reed <[EMAIL PROTECTED]> > Cc: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: TEXT/PLAIN; charset=US-ASCII; format

Re: [Tutor] Python Programming Books

2006-07-14 Thread Carroll, Barry
Greetings: Like Matthew, I have a been programming for several years, mostly in C-like languages and various assembly languages. I started using Python about two years ago. "Learning Python" is my text book; "Python in a Nutshell" is my language reference. Both are excellent. I use one or both

Re: [Tutor] Unit testing

2006-06-26 Thread Carroll, Barry
Regards, Tino: I agree with Kent on this. As much as possible, a unit test should test what it is supposed to do. > Date: Mon, 26 Jun 2006 15:50:36 -0400 > From: "Tino Dai" <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Unit testing > To: "Kent Johnson" <[EMAIL PROTECTED]>, tutor@python.org >

Re: [Tutor] for teachers and students: xturtle.py a new turtle graphics module

2006-06-26 Thread Carroll, Barry
Gregor: Doesn't this really belong on Python-announce-list instead of here? You aren't asking any questions and you are announcing a new python-based application. That's what Python-announce-list is for. Post your announcement there and you will get plenty of feedback for your next release.

[Tutor] Machine Vs. Human Parsing (Was: XML: Expletive Deleted) (Way OT!)

2006-06-16 Thread Carroll, Barry
d this up after being out for most of the week... > > "Carroll, Barry" <[EMAIL PROTECTED]> wrote in message > > > One reason to for choosing a human-readable format is the desire to > > visually confirm the correctness of the stored data and format. > > That

[Tutor] Python related mags

2006-06-12 Thread Carroll, Barry
Hello, Andrew: > -Original Message- > Date: Mon, 12 Jun 2006 07:53:05 -0400 > From: Andrew Robert <[EMAIL PROTECTED]> > Subject: [Tutor] Python related mags > To: Python Tutor > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > -BEGIN PGP SIGNED MES

Re: [Tutor] XML: Expletive Deleted (OT)

2006-06-12 Thread Carroll, Barry
Alan, Ralph, et al: This is a little off-topic, I guess, being not directly related to Python. Oh, well. Here are a couple of personal opinions and a question about XML. > -Original Message- > Date: Sun, 11 Jun 2006 08:55:17 +0100 > From: "Alan Gauld" <[EMAIL PROTECTED]> > Subject: Re:

[Tutor] Files and Modules

2006-06-09 Thread Carroll, Barry
Kermit: > -- > > Message: 7 > Date: Fri, 09 Jun 2006 11:02:44 -0400 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] file attribute of module > Cc: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=

[Tutor] [Off topic] Is Zero Positive (was: Not Really Questions)

2006-06-05 Thread Carroll, Barry
Greetings: > -Original Message- > Date: Sun, 04 Jun 2006 18:43:25 -0700 > From: Yi Qiang <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Not Really Questions > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > -BEGIN PGP SIGNED MESSAG

Re: [Tutor] Trouble with os.path.isfile

2006-06-05 Thread Carroll, Barry
Jun 2, 2006 11:10 PM > Subject: Re: [Tutor] Trouble with os.path.isfile > To: "Carroll, Barry" <[EMAIL PROTECTED]> > > > Here is the problem IMO: > > I did some modifications to your code (very minimal on ifs) and it worked: > > im

[Tutor] Trouble with os.path.isfile

2006-06-02 Thread Carroll, Barry
Greetings:   One of the functions of my test system web server program is to allow the user to view the contents of the image file directories and select files to load onto the hardware.  Obviously, a central part of this function is to identify and display the names of directories and fi

Re: [Tutor] implementing config files

2006-06-02 Thread Carroll, Barry
Carlos: Where does one find the objxml module? I have looked on python.org and Google and can't find it. Thanks in advance, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed > -Original Mes

Re: [Tutor] selecting and ordering file names on a remote machine

2006-05-12 Thread Carroll, Barry
Kent: <> > > > > Essentially, page must do the following: > > > >1. present the files in the directory to the user as some sort > > of list from which multiple names can be selected, > >2. present the selected file names in the order in which they > > were selected, > >3. a

[Tutor] selecting and ordering file names on a remote machine

2006-05-11 Thread Carroll, Barry
Greetings: I'm adding a new page to our test system's browser based UI. This page implements the process of sending one more barcode 'images' to the system for decoding by the unit under test. Each 'image' is in a file in a known directory on the test system. The file(s) to be presented, and

Re: [Tutor] Books

2006-05-03 Thread Carroll, Barry
Greetings, John, For my money, that book is: Learning Python, 2nd Edition By David Ascher, Mark Lutz Publisher: O'Reilly Pub Date: December 2003 ISBN: 0-596-00281-5 Pages: 620 $25.19 new, 18.47 used (+ shipping) From amazon.com I taught myself Python wit

Re: [Tutor] looking to hire a tutor

2006-04-24 Thread Carroll, Barry
Hello, Meenakshi, > -Original Message- > Date: Fri, 21 Apr 2006 19:44:57 -0700 (PDT) > From: [EMAIL PROTECTED] > Subject: [Tutor] looking to hire a tutor > To: tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain;charset=iso-8859-1 > > > Hi, > I apo

Re: [Tutor] locations

2006-04-21 Thread Carroll, Barry
Hi, Linda, > -Original Message- > I have a question. in the LIST M= > [[1,1,1,1], > [0,1,1,1], > [1,1,0,1], > [1,1,1,1]] > If treat them as the locations of 16 points, I want to generate another > list > N to hold the corresponding value for each point to its nearest 0. > For example: > th

Re: [Tutor] Tutor Digest, Vol 26, Issue 71

2006-04-20 Thread Carroll, Barry
Terry: > -Original Message- > Date: Thu, 20 Apr 2006 10:14:23 -0700 (PDT) > From: Terry Carroll <[EMAIL PROTECTED]> > Subject: Re: [Tutor] FW: Splitting a number into even- and odd- > numbered digits > To: tutor@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: TEX

[Tutor] Apology (Was: Re: Splitting a number into even- and odd- numbered digits)

2006-04-20 Thread Carroll, Barry
cs: > >1. Re: Config file parsing (Kent Johnson) >2. FW: Splitting a number into even- and odd- numbered digits > (Carroll, Barry) >3. Re: Tutor FAQ? (Eric Walker) >4. Re: Splitting a number into even- and odd- numbered digits > (Carroll, Barry) >

Re: [Tutor] Splitting a number into even- and odd- numbered digits

2006-04-20 Thread Carroll, Barry
Greetings: Unfortunately, my problem description was incomplete. I forgot to include two important requirements: 1. the length of the input string is arbitrary, 2. the order of the digits must be maintained. I could not find a way to include these requirements in a single, simple expres

Re: [Tutor] Splitting a number into even- and odd- numbered digits

2006-04-20 Thread Carroll, Barry
Greetings: First of all, thanks to those who contributed suggestions. Unfortunately, my description was incomplete. > I am writing a function that accepts a string of decimal digits, > calculates a checksum and returns it as a single character string. > The first step in the calculation is to

[Tutor] FW: Splitting a number into even- and odd- numbered digits

2006-04-20 Thread Carroll, Barry
Greetings: First of all, thanks to those who contributed suggestions. Unfortunately, my description was incomplete. > I am writing a function that accepts a string of decimal digits, > calculates a checksum and returns it as a single character string. > The first step in the calculation is to

[Tutor] Splitting a number into even- and odd- numbered digits

2006-04-19 Thread Carroll, Barry
Greetings: I am writing a function that accepts a string of decimal digits, calculates a checksum and returns it as a single character string. The first step in the calculation is to split the input into two strings: the even- and odd- numbered digits, respectively. The least significant digi

Re: [Tutor] Tutor Digest, Vol 26, Issue 55

2006-04-17 Thread Carroll, Barry
Payal: > -Original Message- > Date: Mon, 17 Apr 2006 13:24:31 -0400 > From: Payal Rathod <[EMAIL PROTECTED]> > Subject: Re: [Tutor] functions in Python > To: Steve Nelson <[EMAIL PROTECTED]> > Cc: "Python\[Tutor\]" > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=us-a

Re: [Tutor] failing to learn python

2006-04-13 Thread Carroll, Barry
_ We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed > -Original Message- > From: Alan Gauld [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 13, 2006 2:46 PM > To: Carroll, Barry; tutor@python.org > Subject: Re: [Tutor] fail

Re: [Tutor] failing to learn python

2006-04-13 Thread Carroll, Barry
Greetings: The discussion surrounding this topic (by Payal, Kent, Alan and others) has been very interesting. It illustrates the fact that software engineering remains very much a craft. As with all crafts, is heavily influenced by the preferences (style if you will) of the individual artisan. T

[Tutor] Python for sysadmins (Was: failing to learn python)

2006-04-10 Thread Carroll, Barry
Payal: I agree with Kent: the Python Cookbook is an excellent resource. And, it has a whole section on System Administration. try this URL: http://aspn.activestate.com/ASPN/Cookbook/Python?kwd=System You can also try Google. I entered 'Python sysadmin'. Here are just a few potentially in

Re: [Tutor] Unittest not running all test cases

2006-04-07 Thread Carroll, Barry
Kent: > -Original Message- > From: Kent Johnson [mailto:[EMAIL PROTECTED] > Sent: Friday, April 07, 2006 3:59 PM > To: Carroll, Barry > Subject: Re: [Tutor] Unittest not running all test cases > > Carroll, Barry wrote: > > Kent: > > > > I just rec

Re: [Tutor] Unittest not running all test cases

2006-04-07 Thread Carroll, Barry
Kent: I just rechecked my class names, and there are no duplicates. I was careful to preface all of the classes in testsymc39 with 'C39...', and used 'S25...' in testsym25. Likewise, the classes in each module have names that describe the type of data being tested, so names are unique within eac

[Tutor] Unittest not running all test cases

2006-04-07 Thread Carroll, Barry
Greetings: I'm not certain this is the right forum for this question. If not, please point me to the correct one. I am using the unittest module to test a package our team is writing. I presently have three modules of test cases and a top level module to run the entire suite. The hierarch

Re: [Tutor] Logical Operators

2006-04-06 Thread Carroll, Barry
Greetings, Kaushal: There are two topics to understand here: 1. what "TRUE" and "FALSE" mean in Python, and 2. how Python evaluates "X and Y". The tutorial "Instant Python" by Magnus Lie Hetland has good, short descriptions of these two topics, so I'll borrow from it. You can find the doc

Re: [Tutor] Tutor Digest, Vol 25, Issue 70

2006-03-28 Thread Carroll, Barry
John: Well, I haven't made a custom container class before. This looks like a good time to start. And the sample code you provided looks like a good starting place. Thanks for your help. Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must alwa

Re: [Tutor] setdefault method

2006-03-28 Thread Carroll, Barry
Terry and Kent: Thanks for your timely replies. I agree: its creator could have chosen a more intuitive name for setdefault. Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed _

[Tutor] Data Type with Dictionary and List Behavior

2006-03-27 Thread Carroll, Barry
Greetings: I have a function that computes the checksum of an integer, including or excluding digits in the computation based on the content of a mask string. For example, cksum(123456789, '***...***') will do its computation on 123789, masking out the three non-significant digits. M

[Tutor] setdefault method

2006-03-27 Thread Carroll, Barry
Greetings: What is the purpose of the dictionary method setdefault(k[, x])? For example assume the following dictionary: >>> colors = {'green':(0,255,0), 'red':(255,0,0), 'blue':(0,0,255), >>> 'white':(255,255,255), 'black':(0,0,0)} >>> Now, execute the statement: >>> colors.setdefault('black

Re: [Tutor] (no subject)

2006-03-02 Thread Carroll, Barry
Jacob, What, exactly, do you mean by 'hack'? The free dictionary wiktionary http://en.wiktionary.org/wiki gives the following definitions hack Verb to hack (third-person singular simple present hacks, present participle hacking, simple past hacked, past participle hacked) 1. To coug

Re: [Tutor] Unexpected Behavior in unittest

2006-03-01 Thread Carroll, Barry
TED] > Sent: Tuesday, February 28, 2006 2:57 PM > To: Carroll, Barry > Cc: tutor@python.org > Subject: RE: [Tutor] Unexpected Behavior in unittest > > > > > I wish it were that simple. 'test3.py' is the name of the file > > containing the test case clas

Re: [Tutor] Unexpected Behavior in unittest

2006-02-28 Thread Carroll, Barry
AIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed > -Original Message- > From: Danny Yoo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 28,

[Tutor] Unexpected Behavior in unittest

2006-02-28 Thread Carroll, Barry
Greetings: This is a fairly long-winded question. I beg your indulgence. I am writing unit tests for our bar code scanner test software, and I have encountered some results that I cannot explain nor get around. Here is the scenario. Our program implements a generator class for creating 'la

Re: [Tutor] Iterating over a string: index and value

2006-02-10 Thread Carroll, Barry
e it keeps its brain" JK Rowling   > >From: Adam [mailto:[EMAIL PROTECTED] >Sent: Friday, February 10, 2006 1:42 PM >To: Carroll, Barry >Cc: tutor@python.org >Subject: Re: [Tutor] Iterating over a string: index and value > >He

[Tutor] Iterating over a string: index and value

2006-02-10 Thread Carroll, Barry
I seem to recall reading somewhere that it is possible to concurrently generate the index and value of a string’s characters in a single for statement.  Is this true or did imagine it?   Here is the scenario:   Given an ASCII string of arbitrary length and content, generate a sequence o

Re: [Tutor] nutshell review

2006-02-10 Thread Carroll, Barry
Greetings: I have been programming in Python for about a year. We use Python 2.3; we haven't migrated to 2.4 because the Real-time OS we use in our test systems doesn't yet support it. I have the four O'Reilly 'standards' as well ("Nutshell", "Learning", "Cookbook", and "Programming"). I use "N

[Tutor] More Doubt with classes

2006-01-24 Thread Carroll, Barry
Greetings: I took Edgar's script and added some more people. Here is the script as I ran it. class Person: '''Represents a person.''' population = 0 def __init__(self, name): '''Initializes the person's data.''' self.name =

Re: [Tutor] Scope Problem with Files

2005-12-14 Thread Carroll, Barry
Thanks, Bob. I figured it was something simple. BGC "Never trust anything that can think for itself if you can't see where it keeps its brain" JK Rowling <> > > > > sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) > > sock.settimeout(timetowait) > >

[Tutor] Scope Problem with Files

2005-12-14 Thread Carroll, Barry
Greetings: I am implementing a (crude but useful) debug facility in my test system client software. Basically, I test the value of a global Boolean. It True, I write pertinent data to a text file. I want to do this in multiple functions in a module. Rather than open and close the file each t

Re: [Tutor] Newbie question

2005-11-22 Thread Carroll, Barry
Hello, Erik, Welcome to the maillist. >From your description, is sounds like you are attempting to run the scripts by double clicking on them from Windows Explorer, or from the Run dialog on the Start menu. Both these methods open a command window in a new process, run the script, then termina

[Tutor] File extension for CGI scripts written in Python

2005-11-11 Thread Carroll, Barry
Greetings: I am writing the first of the handler routines for my test system web interface. They will be Common Gateway Interface (CGI) scripts written in Python. In the literature I have studied, I have seen the extensions .cgi and .py applied to such files. Is one preferred over the other, or

Re: [Tutor] Namespace Problem

2005-11-07 Thread Carroll, Barry
Kent: Thank you for the explanation. This is a subtlety of Python that has tripped me up before. Barry > Date: Mon, 07 Nov 2005 16:26:39 -0500 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Namespace Problem > Cc: "'tutor@python.org'" > Message-ID: <[EMAIL PROTECTED]> > Cont

Re: [Tutor] Namespace Problem

2005-11-07 Thread Carroll, Barry
e 15, in do_stuff hdr = struct.pack('@2BH',ABC|DEF,seq,len(in_str)) UnboundLocalError: local variable 'seq' referenced before assignment>>>>>>>>>>>>>>>>>>>>>>>> I can't figure it out. Barry >

[Tutor] Namespace Problem

2005-11-04 Thread Carroll, Barry
I have a function that makes use of several global variables: ## Include struct ABC = 1 DEF = 2 xyz = 0 # Other variables def do_stuff(in_str): hdr = struct.pack('@2BH',ABC|DEF,xyz,len(in_str)) newstr = hdr+in_str # rest of code snipped ## When I run the program c

[Tutor] Converting a String to a Tuple

2005-11-04 Thread Carroll, Barry
Greetings: My UDP client is receiving responses from the server, and now I need to process them. A typical response string looks like this: "(0, ''),some data from the test system" The tuple represents the error code and message. If the command had failed, the response would look like this

Re: [Tutor] File IO

2005-11-03 Thread Carroll, Barry
Mike: I see two issues here: First, do you really want to apply your field selection logic to ALL the lines in each file? It seems to me that the first five lines of the file are header information that you want to ignore. If so, and if all the files have the same format, you can use a loop to

Re: [Tutor] Talking to UDPServer: Follow-up

2005-11-02 Thread Carroll, Barry
Greetings: After studying the socket examples and tutorials y'all pointed me to, I settled on Examples 19.3 and 19.4 in Alex Martelli's " Python in a Nutshell" as my starting point. They worked fine, of course, right out of the box. My task now is to extend the client script to handle the command

Re: [Tutor] Tutorials on the web

2005-11-02 Thread Carroll, Barry
Johan: The link is helpful indeed. In five minutes I found six tutorials I want to check out for my current project. Thank you. Barry > Message: 5 > Date: Wed, 02 Nov 2005 11:02:45 +0200 > From: Johan Geldenhuys <[EMAIL PROTECTED]> > Subject: [Tutor] Tutorials on the web > To: Tutor > Messa

Re: [Tutor] Talking to UDPServer

2005-11-01 Thread Carroll, Barry
: Tuesday, November 01, 2005 11:39 AM > To: Kent Johnson > Cc: Carroll, Barry; 'tutor@python.org' > Subject: Re: [Tutor] Talking to UDPServer > > I've done some network programming mostly with TCP and I don't think > that the way the client connects to the server is a l

  1   2   >