[Tutor] IDLE shell indentation?

2012-10-18 Thread boB Stepp
". Also, in the IDLE shell the "p" in "print" actually lines up under the "e" in "zero". However when I copied from IDLE and pasted into gmail, this alignment was changed. I am guessing it is because gmail is not using a fixed-width font. And I have y

Re: [Tutor] IDLE shell indentation?

2012-10-18 Thread boB Stepp
e exec function. Further, my tab, which is set to 4 spaces, becomes 8 spaces at the indent; apparently the tab takes effect after where ">>> " would normally occur. Of course I can just manually type the four spaces. Alas! Perfection here is apparently unattainable! ~(:&g

Re: [Tutor] Reading from a seperate file

2012-10-25 Thread bob gailer
On 10/25/2012 2:15 PM, myles broomes wrote: [snip] Try open('highScores.txt, 'rb'). -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.pyt

Re: [Tutor] Help with class example

2012-10-26 Thread bob gailer
syntax(red char box)error at the X above. Frank ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] Help with class example

2012-10-27 Thread bob gailer
dragge(0,2): get rid of the colon. That is used only at the start a compound statement e;g; if, else, for, while, def class, ... -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription opt

Re: [Tutor] Str Method

2012-11-01 Thread bob gailer
ts Please include the class statement. Give us an example of the desired output when theElementsis not empty. Why not create theElements as a set to start with? what is Set ADT? is it important that we know that? -- Bob Gailer 919-636-4239 Chapel Hill NC __

Re: [Tutor] syntax errir (was need help)

2012-11-01 Thread bob gailer
t. The more info you give us the easier it is for us to help. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] How to print ALL contents of a scrolled Tkinter window?

2015-04-17 Thread boB Stepp
cannot help but feel there is a much better way... I intend to scour my available Tkinter documentation to see if there are root window level and scrolled area commands that might suggest another approach. And what I am doing now, seeking your collective wisdom... Thanks! -- boB

Re: [Tutor] How to print ALL contents of a scrolled Tkinter window?

2015-04-17 Thread boB Stepp
include your suggestion. However, I will look into kivy for my at-home studies/projects! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to print ALL contents of a scrolled Tkinter window?

2015-04-18 Thread boB Stepp
t of OS hassle. In my particular scenario I would desire the ability to output both postscript and pdf, though if I have the first it is easy to get the latter. boB Stepp ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Star imports, was Re: How to get a Tkinter window to print a color copy of itself as a .pdf file?

2015-04-18 Thread boB Stepp
On Thu, Apr 16, 2015 at 2:54 AM, Peter Otten <__pete...@web.de> wrote: > boB Stepp wrote: > >>> import Tkinter as tk >> >> Question: I have been using "from Tkinter import *" as suggested in >> "Programming Python" by Lutz. He remarks t

Re: [Tutor] How (not!) lengthy should functions be?

2015-04-18 Thread boB Stepp
ut decreasing target coverage; etc. Even though I am attempting to make this program as *bulletproof* as my knowledge and experience allows, it cannot affect anyone's treatment. It is purely a supplemental level of checking, much like the many, ... , ma

Re: [Tutor] How (not!) lengthy should functions be?

2015-04-18 Thread boB Stepp
On Thu, Apr 16, 2015 at 4:03 PM, Alan Gauld wrote: > On 16/04/15 17:47, boB Stepp wrote: [...] > 2) I have seen varying recommendations as to number of lines of code > > Most of these come from the days when we worked on dumb terminals with 24 > line screens. Actual measurements

Re: [Tutor] How to print ALL contents of a scrolled Tkinter window?

2015-04-18 Thread boB Stepp
On Fri, Apr 17, 2015 at 2:28 PM, Alan Gauld wrote: > On 17/04/15 14:26, boB Stepp wrote: >> >> Solaris 10, Python 2.4.4 >> [...] > That's why GUI printing generally uses an entirely different > technique to print things (see my earlier email). In essence > thi

Re: [Tutor] lists, name semantics

2015-04-18 Thread boB Stepp
print the original copy of a which b now references which is > [1, ["x", "y"], 3] Uh, oh! You should have checked your work in the interpreter before replying! Peter is being very tricky!! (At least for me...) Look again at that list inside of a list and... boB P.S.: Wat

Re: [Tutor] How (not!) lengthy should functions be?

2015-04-18 Thread boB Stepp
g you can do about this; it's human nature. So I claim that > making sure the advice your program offers has > 1) few bugs. And what it has should be crashes, not just getting the > wrong result. > 2) Careful wording of the messages to indicate the

Re: [Tutor] lists, name semantics

2015-04-18 Thread boB Stepp
On Sat, Apr 18, 2015 at 10:03 PM, Bill Allen wrote: > > On Apr 18, 2015 4:11 PM, "boB Stepp" wrote: >> >> On Sat, Apr 18, 2015 at 3:28 PM, Bill Allen wrote: >> > On Apr 18, 2015 7:50 AM, "Peter Otten" <__pete...@web.de> wrote: >>

Re: [Tutor] lists, name semantics

2015-04-18 Thread boB Stepp
ence to themselves) may cause a recursive loop. Because deep copy copies everything it may copy too much, e.g., administrative data structures that should be shared even between copies." If I am understanding things correctly, should not that last sentence read instead: ".

Re: [Tutor] lists, name semantics

2015-04-19 Thread boB Stepp
On Sun, Apr 19, 2015 at 12:24 AM, Cameron Simpson wrote: > On 19Apr2015 15:09, Cameron Simpson wrote: >> >> On 18Apr2015 23:26, boB Stepp wrote: >>> >>> On Sat, Apr 18, 2015 at 11:08 PM, Cameron Simpson wrote: [...] >>> "Two problems often e

Re: [Tutor] lists, name semantics

2015-04-19 Thread boB Stepp
On Sun, Apr 19, 2015 at 6:47 AM, Dave Angel wrote: > On 04/19/2015 12:07 AM, boB Stepp wrote: [...] >> I hope this is helpful, and, if there are any misstepps, that when >> they are revealed both of our understandings will be enhanced! >> > > Some of your knowledge of

Re: [Tutor] lists, name semantics

2015-04-19 Thread boB Stepp
On Sun, Apr 19, 2015 at 4:05 PM, Dave Angel wrote: > On 04/19/2015 03:08 PM, boB Stepp wrote: >> >> Or is the real point that we are adding an abstraction >> layer so we don't even have to think about where objects are >> physically stored in RAM? > > >

[Tutor] OT: Is there a good book that covers the history/evolution of software? [Inspired by the thread: lists, name semantics]

2015-04-19 Thread boB Stepp
, etc.? As the different threads reveal bits and pieces of the low level guts of Python, I am becoming more and more fascinated about how all of this is managed. Just the brief discussion of garbage collection details going on I find quite interesting. -- boB

[Tutor] How to close a Tkinter window from a different thread?

2015-04-19 Thread boB Stepp
close the particular window I need closed -- IF it is even open. I feel the solution must be in Tkinter's access to the X Window system, but nothing in the documentation is *clicking* with me yet. Thanks! -- boB ___ Tutor maillist - Tutor@

Re: [Tutor] How to close a Tkinter window from a different thread?

2015-04-20 Thread boB Stepp
On Mon, Apr 20, 2015 at 2:10 AM, Alan Gauld wrote: > On 20/04/15 04:34, boB Stepp wrote: > >> So, how do I: >> 1) Check for the existence of an already open window from a previous >> running of the script? >> 2) If such a window exists, how do I close it from th

Re: [Tutor] How to close a Tkinter window from a different thread?

2015-04-20 Thread boB Stepp
On Mon, Apr 20, 2015 at 2:10 AM, Alan Gauld wrote: > On 20/04/15 04:34, boB Stepp wrote: > >> So, how do I: >> 1) Check for the existence of an already open window from a previous >> running of the script? >> 2) If such a window exists, how do I close it from th

Re: [Tutor] How to close a Tkinter window from a different thread?

2015-04-24 Thread boB Stepp
On Fri, Apr 24, 2015 at 8:41 AM, Steven D'Aprano wrote: > On Sun, Apr 19, 2015 at 10:34:43PM -0500, boB Stepp wrote: > >> Scenario B: >> 1) I start out inside the CSA. >> 2) I initiate a script in the CSA's scripting language. >> 3) This script calls a

[Tutor] Introductory questions on test-driven development and implementing Git version control.

2015-04-24 Thread boB Stepp
e special strategies and techniques for accomplishing such a feat? And any other suggestions to best start learning all of this as well as possible? As always, many thanks in advance! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] Introductory questions on test-driven development and implementing Git version control.

2015-04-24 Thread boB Stepp
On Fri, Apr 24, 2015 at 5:03 PM, Alan Gauld wrote: > On 24/04/15 20:09, boB Stepp wrote: >> >> allowed to install anything else, strange as this may sound! Since the >> only functional editors in these bare-bones Solaris 10 environments >> are some simplistic defaul

Re: [Tutor] Introductory questions on test-driven development and implementing Git version control.

2015-04-24 Thread boB Stepp
On Fri, Apr 24, 2015 at 3:00 PM, Laura Creighton wrote: > In a message of Fri, 24 Apr 2015 14:09:45 -0500, boB Stepp writes: > You need the testing-in-python mailing list. Come on over ... > http://lists.idyll.org/listinfo/testing-in-python > You will find lots of familiar

Re: [Tutor] Introductory questions on test-driven development and implementing Git version control.

2015-04-24 Thread boB Stepp
tools to support it than I did a few minutes ago. I highly recommend watching this video -- Mr. Batchelder is a very good speaker and presents his material very effectively. Many thanks, Mark, for this link! boB ___ Tutor maillist - Tutor@python.org T

[Tutor] Questions (and initial responses) on using version control [Was: Introductory questions on test-driven development and implementing Git version control.]

2015-04-25 Thread boB Stepp
id not include those portions of the original thread here. In a message of Fri, 24 Apr 2015 14:09:45 -0500, boB Stepp writes: [...] >My wife (A teacher.) has been after me a lot lately to write some >programs to make her teaching life better. So I would like to start >one of her projects us

Re: [Tutor] Introductory questions on test-driven development and implementing Git version control.

2015-04-25 Thread boB Stepp
On Sat, Apr 25, 2015 at 3:21 AM, Alan Gauld wrote: > Having looked at this thread and its early responses I think it > would be good to break it up into its two natural parts. TDD > and version control are pretty much separate concepts and > should be on separate threads. > &

Re: [Tutor] Introductory questions on test-driven development and implementing Git version control.

2015-04-25 Thread boB Stepp
On Sat, Apr 25, 2015 at 3:20 AM, Laura Creighton wrote: > In a message of Fri, 24 Apr 2015 20:24:38 -0500, boB Stepp writes: >>The Python versions at work are 2.4.4 and 2.6.4(?)(Not certain about >>the last digit there.) Based on responses to date, the fact that >>unitte

Re: [Tutor] Introductory questions on test-driven development and implementing Git version control.

2015-04-25 Thread boB Stepp
On Sat, Apr 25, 2015 at 10:58 AM, boB Stepp wrote: > On Sat, Apr 25, 2015 at 3:20 AM, Laura Creighton wrote: >> In a message of Fri, 24 Apr 2015 20:24:38 -0500, boB Stepp writes: >>>I think that I can get an exception here (See a post in response that >>>I made

Re: [Tutor] Introductory questions on test-driven development and implementing Git version control.

2015-04-25 Thread boB Stepp
On Fri, Apr 24, 2015 at 7:36 PM, Steven D'Aprano wrote: > So many questions... let's hope I don't miss any... :-) > > On Fri, Apr 24, 2015 at 02:09:45PM -0500, boB Stepp wrote: > >> First question: What testing modules/frameworks should I start out >> with?

Re: [Tutor] Questions (and initial responses) on using version control [Was: Introductory questions on test-driven development and implementing Git version control.]

2015-04-25 Thread boB Stepp
On Sat, Apr 25, 2015 at 10:30 AM, boB Stepp wrote: > On Fri, Apr 24, 2015 at 7:36 PM, Steven D'Aprano wrote: >>On Fri, Apr 24, 2015 at 02:09:45PM -0500, boB Stepp wrote: > > [...] > >>> And what would be the best approach to integrating Git with these >>>

[Tutor] How to use Git from Windows PC for files on Solaris machine where Git cannot be installed?

2015-04-29 Thread boB Stepp
sting projects and from the get-go on new ones. -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to use Git from Windows PC for files on Solaris machine where Git cannot be installed?

2015-04-29 Thread boB Stepp
On Wed, Apr 29, 2015 at 12:04 PM, Albert-Jan Roskam wrote: > > -- > On Wed, Apr 29, 2015 4:21 PM CEST boB Stepp wrote: > >>I now have Git installed on my Windows 7 PC at work. The files that I >>wish to put under Git version control exist on a

[Tutor] Is there a way to store and later use comparison operators (<, <=, =, >=, >) ?

2015-04-29 Thread boB Stepp
tion I have done to date has not worked. Also, what about the first function above? I could use 2 dictionaries, 1 for calling the 5 functions and one to pass the arguments, but is it worth doing this? Or, I would not be surprised if there is a much better way! ~(:>)) Thanks! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Is there a way to store and later use comparison operators (<, <=, =, >=, >) ?

2015-04-29 Thread boB Stepp
On Wed, Apr 29, 2015 at 3:46 PM, Marc Tompkins wrote: > On Wed, Apr 29, 2015 at 1:10 PM, boB Stepp wrote: >> >> Python 2.4.4, Solaris 10. >> >> I have some functions that I believe I could collapse into a single >> function if I only knew how: >> >>

Re: [Tutor] Is there a way to store and later use comparison operators (<, <=, =, >=, >) ?

2015-04-29 Thread boB Stepp
studying of this topic. But as you point out, not ready for it yet! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to use Git from Windows PC for files on Solaris machine where Git cannot be installed?

2015-04-29 Thread boB Stepp
On Wed, Apr 29, 2015 at 9:40 PM, Cameron Simpson wrote: > On 29Apr2015 12:12, boB Stepp wrote: >>> >>> ... (3) install git if needed ... >> >> >> It seems Git is needed, but I am not allowed to install it on the >> Solaris workstation. So is there

Re: [Tutor] Is there a way to store and later use comparison operators (<, <=, =, >=, >) ?

2015-04-29 Thread boB Stepp
re much easier on the eyes, I do say! Anyway, Mark, thanks for the link! This looks quite straightforward and I will be able to side-step the evils of eval() once again. -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscrip

Re: [Tutor] Is there a way to store and later use comparison operators (<, <=, =, >=, >) ?

2015-04-29 Thread boB Stepp
On Wed, Apr 29, 2015 at 5:49 PM, Peter Otten <__pete...@web.de> wrote: > boB Stepp wrote: >> So I have stumbled (With your gracious help!) into a legitimate use of >> eval()? > > No. To expand on Marks hint here's how to do it without evil eval(

Re: [Tutor] How to use Git from Windows PC for files on Solaris machine where Git cannot be installed?

2015-04-29 Thread boB Stepp
On Wed, Apr 29, 2015 at 10:39 PM, Cameron Simpson wrote: > On 29Apr2015 22:10, boB Stepp wrote: >> On the smart enterprise where we (now) do our clinical planning they >> are very strict: no installing any external software; no accessing the >> Internet; no email; etc. Not

Re: [Tutor] How to use Git from Windows PC for files on Solaris machine where Git cannot be installed?

2015-04-30 Thread boB Stepp
On Wed, Apr 29, 2015 at 11:38 PM, Dave Angel wrote: > On 04/30/2015 12:28 AM, boB Stepp wrote: >> >> The main danger as I see it is that if I am not careful, then the code >> on the dev environment could diverge from the state of code on my >> Windows PC, i.e., I for

Re: [Tutor] Ancient Python versions (was: Is there a way to store and later use comparison operators (<, <=, =, >=, >) ?)

2015-04-30 Thread boB Stepp
On Thu, Apr 30, 2015 at 12:15 AM, Ben Finney wrote: > boB Stepp writes: > >> One problem I have with searching the Python documentation is this: >> https://docs.python.org/release/2.4.4/lib/lib.html > > If you actually need to read the documentation specifically for a P

Re: [Tutor] Questions (and initial responses) on using version control: Why cannot I push my single (master) branch to origin without an error occurring?

2015-04-30 Thread boB Stepp
ttempted to push to the remote repository and got this: boB Stepp@DREAMMACHINE1 /e/Projects/project_name (master) $ git push origin master Counting objects: 5, done. Delta compression using up to 8 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 328 bytes | 0 bytes/s, don

Re: [Tutor] Python 2.4 (was comparison operators)

2015-04-30 Thread boB Stepp
me tons of time. Even though the link you gave was for a package add, I just *know* there will be missing dependencies. Guess I will have to learn how to resolve all the issues that come up. Should be fun! Thanks, Laura! -- boB ___ Tutor maillist

Re: [Tutor] Questions (and initial responses) on using version control: Why cannot I push my single (master) branch to origin without an error occurring?

2015-05-01 Thread boB Stepp
On Thu, Apr 30, 2015 at 11:21 PM, Alex Kleider wrote: > On 2015-04-30 20:39, boB Stepp wrote: >> >> I created my remote repository on, say my C-drive, with "git init". I >> then copied and pasted a file to that location and put it under >> version control wi

Re: [Tutor] Questions (and initial responses) on using version control: Why cannot I push my single (master) branch to origin without an error occurring?

2015-05-01 Thread boB Stepp
On Fri, May 1, 2015 at 1:41 PM, Albert-Jan Roskam wrote: > > > On Fri, May 1, 2015 5:39 AM CEST boB Stepp wrote: > >>I created my remote repository on, say my C-drive, with "git init". > > Not with 'git init --bare'?

Re: [Tutor] Questions (and initial responses) on using version control: Why cannot I push my single (master) branch to origin without an error occurring?

2015-05-02 Thread boB Stepp
e it crashing. While still there I typed "git clone remote_repo_location" and voila! My files returned!! I don't totally understand everything yet, but it makes a lot more sense now. boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help Learn python - Step by Step

2015-05-09 Thread boB Stepp
system and version of Python; think carefully about your question(s) and trim your code down to something that is self-contained and shows the exact problem you are experiencing; and, always post the *full* error report Python generates. HTH, -- boB ___ T

Re: [Tutor] How to close a Tkinter window from a different thread?

2015-05-27 Thread boB Stepp
n this stored pid, what is the likelihood that the pid will be reassigned to something other than one of my program's windows left open? -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Should error checking be duplicated for both functions if one function calls another one?

2015-06-01 Thread boB Stepp
2 is only ever called by function 1? My inclination is to say yes, as in some future incarnation of the program function 2 might get called in new ways. What are your thoughts? -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] Should error checking be duplicated for both functions if one function calls another one?

2015-06-01 Thread boB Stepp
e raised errors. I guess my question was not clearly worded. The idea is that function 1 calls another function. Function 1 checks for possible errors that are relevant. Some or all of these checks are also relevant to the called function. Should the called function also include these relevant err

[Tutor] How to use tkinter with a touch screen device?

2015-07-17 Thread boB Stepp
what happens! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to use tkinter with a touch screen device?

2015-07-17 Thread boB Stepp
e more an advertisement for a new touch screen monitor for Raspberry Pi. In fact most of the search results I got earlier involve the Raspberry Pi. Nothing leaped out at me. I may have to sift through those results more carefully if nothing else turns up. But thanks

[Tutor] Design question: Web-based vs. desktop-based vs. desktop-based with data backed up to web server with a tablet thrown in for all cases?

2015-07-17 Thread boB Stepp
ing at least this one project? Of course, I have not a clue as to how to do any of this (yet!). As always, many thanks in advance! P.S.: My wife has researched existing software and has found everything lacking. She wants custom solutions to her custom needs. Oh, joy. But very interesting! -

Re: [Tutor] How to use tkinter with a touch screen device?

2015-07-17 Thread boB Stepp
the code looks even simpler than tkinter. Does everything have to be written as classes? Thanks, Laura! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Design question: Web-based vs. desktop-based vs. desktop-based with data backed up to web server with a tablet thrown in for all cases?

2015-07-17 Thread boB Stepp
assessment project, it is going to have to be without all the desired bells and whistles to have something that will be practically useful for her when school starts. Especially when I am certain Vonda is still figuring out what she *really* needs! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Design question: Web-based vs. desktop-based vs. desktop-based with data backed up to web server with a tablet thrown in for all cases?

2015-07-18 Thread boB Stepp
out of sheer necessity. As things develop more concretely and I get puzzled and stumped, I will post more detailed questions. Thanks for your thoughts! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Design question: Web-based vs. desktop-based vs. desktop-based with data backed up to web server with a tablet thrown in for all cases?

2015-07-19 Thread boB Stepp
e. It's easy to use, share, and collaborate. It works in the browser >>or you can use their mobile apps. You can set up checklists, attach images >>and files, work with due dates, comment and activity streams, etc. Plus, >>using their RESTful API, you could whip up some slick

Re: [Tutor] Design question: Web-based vs. desktop-based vs. desktop-based with data backed up to web server with a tablet thrown in for all cases?

2015-07-19 Thread boB Stepp
On Sun, Jul 19, 2015 at 1:27 AM, Steven D'Aprano wrote: > On Sun, Jul 19, 2015 at 12:49:50AM -0500, boB Stepp wrote: > >> In this thread, I kept it very general on purpose. I was probing this >> community for their thoughts on two things: 1) Should I make the >>

Re: [Tutor] Design question: Web-based vs. desktop-based vs. desktop-based with data backed up to web server with a tablet thrown in for all cases?

2015-07-19 Thread boB Stepp
On Sun, Jul 19, 2015 at 8:23 PM, boB Stepp wrote: > Would it be off-putting later to ask specific questions about > implementing features of kivy on this list? I imagine that they would > tend to be basic questions that would probably apply to any GUI > development. But I'm sur

[Tutor] _ vs. _name vs. __name vs. name_ vs. __name__ usages

2015-07-25 Thread boB Stepp
ut I cannot (yet) bring it to mind. And for (5), surely I should never violate this one? It seems that in some future edition of Python they might add any particular __name__ that I might try to use presently in their future version of Python (however miniscule

[Tutor] OT: Test to see if ibisMail app is truly sending in plain text

2015-08-01 Thread boB Stepp
in plain text emails. If someone would tell me if I have been successful or not, I would be very appreciative! If successful, Python questions will soon follow. Thanks! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change

[Tutor] How to design object interactions with an SQLite db?

2015-08-01 Thread boB Stepp
sophisticated server-based db in the future incarnations of this project. Thoughts? -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] OT: Test to see if ibisMail app is truly sending in plain text

2015-08-01 Thread boB Stepp
rare times when I must communicate with programming fora from my iPad. At least you have demonstrated that it is truly in plain text! I show in its entirety what I see just for the record: > On Sat, Aug 01, 2015 at 10:27:27AM -0500, boB Stepp wrote: > > > I apologize for the noise, b

Re: [Tutor] OT: Test to see if ibisMail app is truly sending in plain text

2015-08-02 Thread boB Stepp
t present in the Gmail App. Why it would not be beats me, but unless there is a hidden setting or gesture I have missed, both by futzing around my actual iPad as well as searching the 'Net, then it is not available. -- boB ___ Tutor mail

[Tutor] How to effectively use a Student class with SQLite [Was Re: How to design object interactions with an SQLite db?]

2015-08-13 Thread boB Stepp
Beware! Lengthy post!! Sign of a confused boB. ~(:>) I believe that I understand now all of the things I want my project (Tentatively named "Montessori Classroom Manager".) to *do*. But I am currently spinning my wheels on how to implement classes, SQLite, and the kivy UI, so

Re: [Tutor] How to effectively use a Student class with SQLite [Was Re: How to design object interactions with an SQLite db?]

2015-08-13 Thread boB Stepp
Whew, Alan! You've given me quite a lot to mull over. Thank you very much for the time you've invested in your responses!! On Thu, Aug 13, 2015 at 6:38 PM, Alan Gauld wrote: > On 13/08/15 20:18, boB Stepp wrote: > [...] > Yes, that's a standard problem in any HR type

[Tutor] Does composition only work with particular instances of objects?

2015-08-13 Thread boB Stepp
ut() This duck has a wide orange bill and a long tail. >>> duck0 = Duck(bill0, tail0) >>> duck0.about() This duck has a wide orange bill and a long tail. >From this I am forced to conclude that composition will only work with particular instances of objects and not with

Re: [Tutor] How to effectively use a Student class with SQLite [Was Re: How to design object interactions with an SQLite db?]

2015-08-13 Thread boB Stepp
ot allowed to have contact with their children, legal guardians who are not parents, etc. Ay, yi, yi! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Does composition only work with particular instances of objects?

2015-08-13 Thread boB Stepp
On Thu, Aug 13, 2015 at 11:46 PM, Zachary Ware wrote: > On Thu, Aug 13, 2015 at 11:31 PM, boB Stepp wrote: >> I was looking at an example illustrating composition from the book, >> "Introducing Python" by Bill Lubanovic on p. 140: >> >>>>> class B

Re: [Tutor] How to effectively use a Student class with SQLite [Was Re: How to design object interactions with an SQLite db?]

2015-08-14 Thread boB Stepp
gether.) ... I have been thinking in terms of only my wife using the software. If I have the good (or mis-) fortune to create a successful and utile bit of software, I might find others using the program. So your points suggest I should look for a more flexible approach that any potential user will

Re: [Tutor] Does composition only work with particular instances of objects?

2015-08-14 Thread boB Stepp
is one wasn't his fault." So obviously the quality control process let this one slip through the cracks. -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] cannot get a label message to display immediately

2015-08-14 Thread boB Stepp
te the main part of your function? Also, just before your function returns its result, it could clear/rewrite the label. Additionally, tkinter has the ability to change the cursor to an hourglass. You could handle this analogously to what I already said. HTH, -- boB ___

[Tutor] SQLite, Python and SQL injection attacks

2015-08-14 Thread boB Stepp
SQL strings will be rejected? Having seen this example, are there any other security surprises that I need to avoid by adopting certain coding techniques when I am using Python with SQLite? -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] try and file existence

2015-08-15 Thread boB Stepp
s.path.exists()? That is, in what types of circumstances would it be both appropriate and safe to use? boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] How best to determine if a db exists before trying to open it? [Was: try and file existence]

2015-08-15 Thread boB Stepp
On Sat, Aug 15, 2015 at 6:00 PM, Cameron Simpson wrote: > On 15Aug2015 15:20, Clayton Kirkwood wrote: >>> >>> Behalf Of Laura Creighton > > [..] >>> >>> To: boB Stepp >>> In a message of Sat, 15 Aug 2015 14:24:21 -0500, boB Stepp writes:

Re: [Tutor] try and file existence

2015-08-15 Thread boB Stepp
On Sat, Aug 15, 2015 at 6:41 PM, Steven D'Aprano wrote: > On Sat, Aug 15, 2015 at 02:24:21PM -0500, boB Stepp wrote: >> I understand your points, but wonder then what is the intended use for >> os.path.exists()? That is, in what types of circumstances would it be >> bo

[Tutor] Where should unit test files go in a project directory structure and some related questions?

2015-08-15 Thread boB Stepp
s probably not its function. And I don't know what set-up needs setup.py would typically serve. I will have to search for answers to these. Does this cover everything I need to be concerned about as far as project organization so that I do

Re: [Tutor] Where should unit test files go in a project directory structure and some related questions?

2015-08-15 Thread boB Stepp
On Sat, Aug 15, 2015 at 9:10 PM, boB Stepp wrote: > Right now I am trying to figure out how to arrange my unit test > file(s). My initial thoughts are to have a single test directory with > separate subdirectories corresponding to each folder which has source > code. Is this a go

[Tutor] How to test my code's interactions with SQLite db?

2015-08-15 Thread boB Stepp
ser(s) will populate are in agreement? Or am I over-analyzing here? TIA! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to test my code's interactions with SQLite db?

2015-08-16 Thread boB Stepp
On Sun, Aug 16, 2015 at 4:03 AM, Steven D'Aprano wrote: > On Sun, Aug 16, 2015 at 01:18:06AM -0500, boB Stepp wrote: >> 1) It would seem that I need to install a stand-alone version of >> SQLite, so that I can create this test db. Either that or write a >> separate

Re: [Tutor] How to test my code's interactions with SQLite db?

2015-08-16 Thread boB Stepp
On Sun, Aug 16, 2015 at 6:04 PM, Alan Gauld wrote: > On 16/08/15 23:29, boB Stepp wrote: > >> http://www.sqlite.org/download.html > > > You definitely want this. > You treat it like the >>> prompt in Pyython. I had just finished installing and testing the in

Re: [Tutor] How to test my code's interactions with SQLite db?

2015-08-16 Thread boB Stepp
bjects; although we can use > real files, we can find in-memory structures like io.StringIO useful, > since they leave no residue once the tests are completed. Likewise thanks for opening my eyes to this perspective as well! -- boB ___ Tuto

Re: [Tutor] How to test my code's interactions with SQLite db?

2015-08-16 Thread boB Stepp
On Sun, Aug 16, 2015 at 7:55 PM, Alan Gauld wrote: > On 17/08/15 00:52, boB Stepp wrote: > >>> sqlite3> .read populate_base_data.sql >> >> >> I am assuming that the .read command would be replaced inside the >> program by the cursor.executescript() me

[Tutor] Is it possible to archive subsets of data from an SQLite db and restore it later?

2015-08-17 Thread boB Stepp
ealize that the method I was hoping to start coding tonight was ill-conceived! ARGH! To bed I now go ... Is TDD the programmer's version of writer's block? ~(:>) -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change

[Tutor] Test discovery not locating module to test

2015-08-19 Thread boB Stepp
-__init__.py test_mcm_db_mgr.py --ui/ __init__.py .gitignore LICENSE.txt README.txt All __init__.py files are currently empty. Alex had asked a question very similar to this situation, and I thought I had understood the answer Laura had given, but apparent

Re: [Tutor] Test discovery not locating module to test

2015-08-20 Thread boB Stepp
tually *known* about this, but have not used the standard library much to this point, and this is the first time I have tried this *package* structure of a project, so that aspect is all new to me. Thanks, Peter! boB ___ Tutor maillist - Tutor@pyth

[Tutor] Do not understand why test is running.

2015-08-20 Thread boB Stepp
er -v test_open_db (test.db.test_manager.ManagerTestCase) ... ok -- Ran 1 test in 0.000s OK Obviously I was not expecting this! Why did the test run? I thought it would not happen without those final t

Re: [Tutor] Do not understand why test is running.

2015-08-20 Thread boB Stepp
On Thu, Aug 20, 2015 at 10:13 PM, Steven D'Aprano wrote: > On Thu, Aug 20, 2015 at 09:01:50PM -0500, boB Stepp wrote: > > >> import unittest >> >> # import modules to be tested: >> import mcm.db.manager >> >> class ManagerTestCase(unittest.Test

Re: [Tutor] Do not understand why test is running.

2015-08-21 Thread boB Stepp
On Fri, Aug 21, 2015 at 1:16 AM, Peter Otten <__pete...@web.de> wrote: > boB Stepp wrote: > >> On Thu, Aug 20, 2015 at 10:13 PM, Steven D'Aprano >> wrote: >>> On Thu, Aug 20, 2015 at 09:01:50PM -0500, boB Stepp wrote: >>> >>> >

Re: [Tutor] Do not understand why test is running.

2015-08-23 Thread boB Stepp
On Sat, Aug 22, 2015 at 3:18 AM, Peter Otten <__pete...@web.de> wrote: > boB Stepp wrote: > >> In the cold light of morning, I see that in this invocation, the path >> is wrong. But even if I correct it, I get the same results: >> >> e:\Projects\mcm>p

Re: [Tutor] Do not understand why test is running.

2015-08-23 Thread boB Stepp
On Sun, Aug 23, 2015 at 11:47 AM, Peter Otten <__pete...@web.de> wrote: > boB Stepp wrote: >> And am I misreading the docs at >> https://docs.python.org/3/library/unittes

Re: [Tutor] Do not understand why test is running.

2015-08-23 Thread boB Stepp
On Sun, Aug 23, 2015 at 11:47 AM, Peter Otten <__pete...@web.de> wrote: > boB Stepp wrote: > >> On Sat, Aug 22, 2015 at 3:18 AM, Peter Otten <__pete...@web.de> wrote: >>> boB Stepp wrote: >> ... I was not in the directory, E:\Projects\mcm. It is m

[Tutor] How should my code handle db connections? Should my db manager module use OOP?

2015-08-26 Thread boB Stepp
a real benefit here, but, then again, I am learning how to OOP during this project as well, so I don't have enough knowledge yet to realistically answer this question. TIA! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or c

Re: [Tutor] I don't understand why this program is said to be "not defined" when I test it.

2015-10-17 Thread Bob Gailer
Also: Briefly describe problem 22 Show us what you did to test the program It would be better to test for integer before doing a numeric comparison There is no need ever to compare a boolean expression to true or false. All you need is either if condition or if not condition. A good short cut for a

<    9   10   11   12   13   14   15   16   17   18   >