Re: [Tutor] extracting a column from many files

2012-07-13 Thread bob gailer
On 7/13/2012 5:20 AM, susana moreno colomer wrote: [snip] Please post the entire traceback. You did not tell us what error or where in option 1. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] Factor Analysis

2012-07-05 Thread bob gailer
is a funky, through-the-web console that uses Python to drive lots of math software. Note that there's a public server so you can easily take it for a spin: http://www.sagenb.org/ -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor

Re: [Tutor] Dictionary

2012-06-18 Thread bob gailer
On 6/17/2012 2:26 PM, Selby Rowley-Cannon wrote: [snip] Do you have any programming (algorithm development) experience? Do you want to translate words independent of context? -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor

Re: [Tutor] Joining all strings in stringList into one string

2012-05-30 Thread bob gailer
On 5/30/2012 12:21 PM, Akeria Timothy wrote: In addition to the other comments I point out that join is not a /command/, it is a /string method/. Python does not have commands. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor

Re: [Tutor] How to deploy Django project in Google App Engine

2012-05-28 Thread bob gailer
on a django mailing list such as django-us...@googlegroups.com. Thanks Surya -- 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

Re: [Tutor] [OT] Re: Optimally configuring Emacs for W7-64bit and Python

2012-05-27 Thread boB Stepp
commands. Once I feel semi-comfortable with these then I will more thoroughly investigate configuration options for Python within Emacs. Hope you are enjoying your travel time! -- Cheers! boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] How to deploy Django project in Google App Engine

2012-05-26 Thread bob gailer
-on-App-Engine? -- 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

Re: [Tutor] How to deploy Django project in Google App Engine

2012-05-26 Thread bob gailer
On 5/26/2012 5:41 AM, Surya K wrote: I wrote a Django project and would like to deploy on Google App Engine. also: https://developers.google.com/appengine/articles/django-nonrel -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor

Re: [Tutor] Optimally configuring Emacs for W7-64bit and Python

2012-05-22 Thread boB Stepp
three machines. However, there are plans after July 1st to upgrade all three machines to thin clients connected to an enterprise server. Hopefully if this actually happens then Python will be available on everything. Cheers! boB ___ Tutor maillist

Re: [Tutor] Optimally configuring Emacs for W7-64bit and Python

2012-05-22 Thread boB Stepp
but I will not be able to provide much (any?) help in the immediate future. (If emacs seems like you will stick to it, do have a look at orgmode.) Brian, does org-mode amount to a personal information manager? What are the things you especially like about it? Cheers! boB

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-21 Thread bob gailer
). I have no concern with there being features I might not use. I am delighted with the ones I do use. There are numerous IDES for Python that run on Linux systems (most are free). You too may find such IDEs a better choice. -- Bob Gailer 919-636-4239

[Tutor] Optimally configuring Emacs for W7-64bit and Python

2012-05-21 Thread boB Stepp
work and home study. What is the best way for me to get my W7-64bit laptop configured for Python programming? My consultations with the Google oracle have yielded inconclusive results this evening, though I confess I am quite tired, so I may be missing the obvious. -- Cheers! boB

Re: [Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread boB Stepp
('hello world') I think that should work for your version of Python. -- Cheers! boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread boB Stepp
., or, instead, look for the best one that can handle all of the languages I plan to learn and use. Thanks for any guidance you can provide! -- Cheers! boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org

[Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread boB Stepp
, which comes with W95. He seems to be doing fine, but I am wondering if this is the best way to start him in the world of programming? Any thoughts about this? Thanks! -- Cheers! boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread boB Stepp
numbers, he combined a number guessing game with his self-composed musical theme. Has anyone experience using this book? -- Cheers! boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread boB Stepp
get larger and more involved will it be able to do everything I would want it to do? Would I find myself wanting a full-fledged IDE? I don't have enough technical knowledge to answer these questions right now. Your thoughts? Cheers! boB ___ Tutor maillist

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread boB Stepp
) is pretty cool. Now I just have to get Jeremy some updated hardware, so that he can both connect to the Internet and run Python 3. This is an obvious opportunity to convince my wife to allow me to update my hardware, so that both she and Jeremy can update theirs. -- Cheers! boB

Re: [Tutor] table to dictionary and then analysis

2012-05-17 Thread bob gailer
On 5/17/2012 3:27 AM, Russel Winder wrote: Should we be promoting use of the format method in strings rather than the % operator? % is deprecated now. I for one do not like seeing % deprecated. Why? It is not broken, and IMHO the easiest to use of all formatting options. -- Bob Gailer 919-636

Re: [Tutor] syntax error

2012-05-14 Thread bob gailer
guess, and don't want to spend time doing better guessing. Please sign up with pastebin and post your code there. That will guarantee we can copy it as you wrote it. Also please refer to your program as a program or script. It is not a command. -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] syntax error

2012-05-14 Thread bob gailer
compiling. PLEASE ONLY PASTEBIN code that we can run! Line 26 ends with ; should be )) Line 28 is split Line 31 - is that a comment if so put # in front of it. Line 38-51 must be indented Line 44 ifdata[1] == join: Line 51 will never be executed. -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] Multiple DBs per application?

2012-05-14 Thread bob gailer
(as in dBase) a collection of tables (as an Access file) a database management system (MySQL)? -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman

Re: [Tutor] table to dictionary and then analysis

2012-05-14 Thread bob gailer
for a very simple task. I will not attempt to figure out what it does. ___ 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] Multiple DBs per application?

2012-05-14 Thread bob gailer
aware of. Seems like a good idea. Right tool for right purpose. -- 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

Re: [Tutor] (no subject)

2012-05-12 Thread bob gailer
. All we need is to see more of the program (especially the lines before the one you posted. It is always a good idea to post more of the code regardless of the problem. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org

Re: [Tutor] syntax error

2012-05-12 Thread bob gailer
oh - and always provide a specific meaningful subject -- 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

Re: [Tutor] threading mind set

2012-05-12 Thread bob gailer
: in future please post plain text rather than HTML. -- 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

Re: [Tutor] threading mind set

2012-05-12 Thread bob gailer
) print 'the file size of', x, 'is',S -- 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

Re: [Tutor] Displaying data in columns

2012-05-07 Thread bob gailer
to read about. the basic tool you'd use is string formatting. I prefer the original %. %24s%24s%8s%7s % tuple-of-data -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] Curious dictionary printing

2012-05-07 Thread bob gailer
sequence. - Do you want order by key or by value? - how would you order {1 : 'cat', a: 3, (2,3): True}? -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread bob gailer
On 5/3/2012 9:57 AM, spa...@gmail.com wrote: Hello all, I have encountered the following scenario. Here is the code - on IDLE on Windows XP. * while True:* Please do not use color. Post plain text. That is very hard for me to read and there is no need for color. -- Bob Gailer 919-636-4239

Re: [Tutor] Game of python, help please.

2012-04-18 Thread bob gailer
in range(1,x+1): for c in range1,(y+1): surrounding = sum([sum(space[r+z][c-1:c+2]) for z in(-1,0,1)]) New suggestion: def determinelife(surronding,space,i,j): return sum(space[i-1][j-1:j+2]) + sum(space[i][j-1:j+2:2]) + sum(space[i+1][j-1:j+2]) HTH -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] Iterate Suggestion

2012-04-16 Thread bob gailer
On 4/15/2012 10:54 PM, bob gailer wrote: On 4/14/2012 11:27 AM, Tom Tucker wrote: Hello all. Any suggestions how I could easily iterate over a list and print the output 3 across (when possible)? One method I was considering was removing the recently printed item from the list, checking

Re: [Tutor] Iterate Suggestion

2012-04-15 Thread bob gailer
serverG print '\n'.join(' '.join(mylist[i:i+3]) for i in range(0,len(mylist),3)) -- 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

Re: [Tutor] Game of python, help please.

2012-04-10 Thread bob gailer
On 4/9/2012 10:56 PM, Dave Angel wrote: On 04/09/2012 10:33 PM, bob gailer wrote: On 4/9/2012 2:26 AM, leo degon wrote: Hello all, Im trying to learn python and programming in my free time, and I'm trying to do a little personal project to trying and gain some skills. Im trying to do version

Re: [Tutor] ADO with python 2.6 without additional installs

2012-04-10 Thread bob gailer
of 3rd party software. True? I presume that policy is to prevent malicious code from running. True? Please say more about your objectives. Can you export the Access data and operate on it outside the Access environment? -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] Game of python, help please.

2012-04-09 Thread bob gailer
calculating the neighbor count a lot easier, at the cost of maintaining the extra rows/columns. for r in range(1,x+1): for c in range1,(y+1): surrounding = sum([sum(space[r+z][c-1:c+2]) for z in(-1,0,1)]) OK enough for now - there's more but I'm out of time/energy right now. -- Bob

Re: [Tutor] generators

2012-04-04 Thread bob gailer
. for i in y:print i 0 1 2 x in this case is equivalent to xrange() with exactly 1 argument. There is more that can be said regarding x.next(). x.send(), raise StopIteration but I've said enough for now. -- Bob Gailer 919-636-4239 Chapel Hill NC

[Tutor] How to reply - best practice.

2012-04-04 Thread bob gailer
of questions but I feel confident that I have your support. Glad we could help. To make our lives easier please only include relevant text, and make the subject also relevant. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor

Re: [Tutor] Open source projects build using Python

2012-04-03 Thread bob gailer
. There is much more that can be accomplished. --- end reply --- If this sparks your interest I will send you the developer's guide. -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] Syntax error help

2012-03-31 Thread bob gailer
of these (or what else) do you do -- 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

Re: [Tutor] Syntax error help

2012-03-30 Thread bob gailer
with. then there is a missing ) then there is a missing ( Once you fix all the problems then you should see good bye since that is the only executable code in Area.py other than def statements. Suggestion: start with a VERY SIMPLE program and get that working. Then add one new feature at a time. -- Bob

Re: [Tutor] Syntax error help

2012-03-30 Thread bob gailer
On 3/30/2012 6:20 PM, x23ch...@gmail.com wrote: Thanks I've fixed Great. Please share with us your new program and tell us what you do to run it. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] Problem Stripping

2012-03-30 Thread bob gailer
Then, of course, there's 15:45.replace(':','') -- 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

Re: [Tutor] Syntax error help

2012-03-30 Thread bob gailer
such as IDLE. within IDLE you can write the program in an edit window then RUN or you can use the interactive window and type import Area Which of these (or what else) do you do -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor

Re: [Tutor] I/O operation on closed file?

2012-03-27 Thread bob gailer
for line_data in f: Could you please advise the resolution for this? What does I/O operation on closed file suggest to you? -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] Library of Module for Analyzing Answer Cards

2012-03-24 Thread bob gailer
Remember to always reply-all so a copy goes to the list. On 3/24/2012 7:49 AM, Khalid Al-Ghamdi wrote: thanks a lot that was extremely helpful. On Fri, Mar 23, 2012 at 3:58 AM, bob gailer bgai...@gmail.com wrote

Re: [Tutor] Library of Module for Analyzing Answer Cards

2012-03-22 Thread bob gailer
forms. Worked like a charm. -- 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

Re: [Tutor] Library of Module for Analyzing Answer Cards better link

2012-03-22 Thread bob gailer
100,000 copies of 4 different forms. Worked like a charm. -- 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

Re: [Tutor] Unable to open .py files directly

2012-03-21 Thread bob gailer
want. -- 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

Re: [Tutor] Unable to open .py files directly

2012-03-21 Thread bob gailer
\pythonw.exe C:\Python27\Lib\idlelib\idle.pyw -e %1 If you don't have an Edit with IDLE entry, click New and add one. If you want that to be the double-click behavior click Set Default. If your OS is different the route to the file associations may be different. -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] Unable to open .py files directly

2012-03-19 Thread bob gailer
-click or what? The more precise you are regarding what you want and what you do makes it a lot easier for us to help. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] seeing the results of a python program in windows7

2012-03-14 Thread bob gailer
ensures that any exception in your code will be visible. -- 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

Re: [Tutor] Creating a Polyline Feature class

2012-03-04 Thread bob gailer
, attr, ao) RuntimeError: ERROR 99: Error executing function. Any ideas? I'm feeling a little lost at this point. Diagnosing that requires a knowledge of ArcGIS which I lack. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor

Re: [Tutor] Creating a Polyline Feature class

2012-03-03 Thread bob gailer
the difference between coord = arcpy.Point and coord = arcpy.Point() ? The first gets you a reference to the class. The 2nd gets you an instance of the class. Quite different. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org

Re: [Tutor] number of mismatches in a string

2012-03-02 Thread bob gailer
the above in the hopes of gaining insight. Perhaps you could restate the problem in a way that makes it crystal clear. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options

Re: [Tutor] how to stop a program in python which is running for long time , I am using windows

2012-02-29 Thread bob gailer
GUI - task manager cmd line - taskkill running for long time is relative and irrelevant. Above stops regardless. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] initialising all elements of a matrix

2012-02-28 Thread bob gailer
On 2/28/2012 11:40 AM, Peter Otten wrote: def product(factors, product=1): for factor in factors: product *= factor return product can be simplified def product(factors): import operator return reduce(operator.mul, factors) -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] roman to arabic

2012-02-26 Thread bob gailer
. print Please enter command - r for roman-arabic would be much better. -- 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

Re: [Tutor] Attribute error message received on Card Game program

2012-02-24 Thread bob gailer
or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- 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

Re: [Tutor] Help with Python Program

2012-02-24 Thread bob gailer
statement, and the use of Python's random number generator. Do you know how to create a loop? If not, why not? Do you know how to test for low or high? If not why not? If your answers to these questions is no then (IMHO) you are in the wrong class. -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] Writing to a file/changing the file name

2012-02-23 Thread bob gailer
you get stronger. HTH -- 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

Re: [Tutor] Help Designing a simple Program called Life

2012-02-22 Thread bob gailer
. Then step back, say well done,Leo then add code to advance to subsequent states with some limit. I'll post the code that I already have later today. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] Recognizing real numbers

2012-02-22 Thread bob gailer
/tutor -- 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

Re: [Tutor] how to rewrite area.py

2012-02-21 Thread bob gailer
options: http://mail.python.org/mailman/listinfo/tutor -- 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

Re: [Tutor] arrays, while loops

2012-02-20 Thread bob gailer
it by itself, and added the last line to actually run the test. Once the getInteger function is working then you can add the other logic. Another approach is using try and except as others have mentioned. However I doubt whether your course has introduced exception handling. -- Bob Gailer 919

Re: [Tutor] __name__=='__main__'

2012-02-20 Thread bob gailer
': print GetUserInput() To fix both problems replace multiplier.isdigit() with multiplier = int(multiplier) -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] arrays, while loops

2012-02-18 Thread bob gailer
or explain. -- 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] formatting sql Was: Some help Please

2012-02-15 Thread bob gailer
to decrement the account as in withdrawing?? joseph -- 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

Re: [Tutor] Running Files with Command Lines

2012-02-12 Thread bob gailer
system is configured. Once we see the error you are getting we can better 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

Re: [Tutor] how to print a string in desired colour

2012-02-12 Thread bob gailer
you get the idea that that would do what you want? Did you read the documentation regarding print? Please do not post stuff that is obviously wrong! No one can tell you how to create colored output until we know where you are trying to get it to display. -- Bob Gailer 919-636-4239

[Tutor] Ongoing problems with Pam's new computer

2012-02-09 Thread bob gailer
computer to publish events. -- 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

Re: [Tutor] Character Buffer Object Error

2012-02-09 Thread bob gailer
Always reply-all so a copy goes to the tutor list. On 2/8/2012 11:04 PM, Michael Lewis wrote: Thanks Bob, Thanks for what if you did not follow my suggestions? Your code is still pretty buggy. Please test it by running it, seeing that the result is not correct, then try the desk checking

Re: [Tutor] Character Buffer Object Error OOPS

2012-02-09 Thread bob gailer
On 2/8/2012 11:04 PM, Michael Lewis wrote: Thanks Bob, My Bad - I did not examine all your code - I broke my own rule. Your code is still a little buggy. The below code is what I came up with without using your suggestion. On a scale, how novice is mine compared to what you offered? I am

Re: [Tutor] Ongoing problems with Pam's new computer

2012-02-09 Thread bob gailer
On 2/9/2012 6:56 PM, Steven D'Aprano wrote: bob gailer wrote: Today is the third time Pam (connecting to the web site for event publication) has run into an inexplicable Access error. I don't think this has anything to do with learning Python. You are right. I was surprised to discover I

Re: [Tutor] Character Buffer Object Error

2012-02-08 Thread bob gailer
this problem! Since this is homework we we probably should not be offering alternative solutions. However I can't resist offering the one-line solution: ''.join(str(int(x)+1) if x.isdigit() else x for x in 'user_input) -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] Question on how to do exponents

2012-02-07 Thread bob gailer
to find out! To delve any deeper you'd have to inspect the c source for pow. I'd assume it uses the c exponent operator -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] (no subject)

2012-02-07 Thread bob gailer
-- 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

Re: [Tutor] Sandbox Game

2012-02-06 Thread bob gailer
. I even tried the Play Online and got to another messy connfusing site, Could you give an overview of the game? -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] Sandbox Game

2012-02-06 Thread bob gailer
you are to get answers. We volunteer our time to help you; we are not paid money for our service. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org

Re: [Tutor] Problem with smtplib

2012-02-06 Thread bob gailer
with the internet connection between your computer and the SMTP server. Best strategy I know of is to trap the exception and retry, but for a limited # of times. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org

Re: [Tutor] python editor

2012-02-06 Thread bob gailer
previous command. I can think of several unrelated meanings. Personally I prefer an IDE. My favorites are PyCharm ($) and Python for Windows (free). -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] Sandbox Game

2012-02-06 Thread bob gailer
could become a sand grain. That's all for now. Good coding! I don't want to copy the game Is there a Python version out there? , I want to make my own to play around with Py(thon/game). -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist

Re: [Tutor] Backwards message program

2012-02-06 Thread bob gailer
is always False -- 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

Re: [Tutor] factorial of anumber

2012-02-04 Thread bob gailer
I for one prefer plain text rather than HTML for email. Please in the future post plain text. No colors, no unusual fonts. Makes it a LOT easier to read. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org

Re: [Tutor] Return T/F vs print T/F

2012-02-04 Thread bob gailer
will return None; in the interactive window nothing is displayed. Is that sufficient? -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman

Re: [Tutor] Return T/F vs print T/F

2012-02-04 Thread bob gailer
, start with # or is a statement the interpreter does not print anything (unless it is a print statement). For a messy example: if 1:3;a=4;a ... 3 4 -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] Importing functions in IPython

2012-01-22 Thread bob gailer
to do this, preferably without closing IPython? in normal python: import sys reload(sys.modules['mymodule ']) from mymodule import myfunc -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] Importing functions in IPython

2012-01-22 Thread bob gailer
module, but I confess I don't know how to reload a function using import like that... reload doesn't seem to have any option for that I'll watch this space to see if anyone else knows how. Good idea. And now you know. -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] append index out of range

2012-01-12 Thread bob gailer
. List indexing starts at 0, so tobetranslatedparts[2] refers to the 3rd item of the list that was created by split(). If that does not help, please show us some sample lines. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor

Re: [Tutor] Trying to access a random value in a list

2012-01-12 Thread bob gailer
something like ['joe', pete'] since you are printing a list. true? In general copy and paste the undesired output in the email. Try print(','.join(names) -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] x%2

2012-01-10 Thread bob gailer
for negative a. 5%3 2 -5%3 1 FWIW the Python documentation (at least as of 2.7.2 has this wrong!) -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org

Re: [Tutor] [Python-Help] What is lambdas in Python??

2011-12-27 Thread bob gailer
of tuples containing the corresponding items from all iterables (a kind of transpose operation). The /iterable/ arguments may be a sequence or any iterable object; the result is always a list. print map(lambda x, y : x + y, (1,2,3), (4,5,6)) [5, 7, 9] -- Bob Gailer 919-636-4239 Chapel Hill

Re: [Tutor] question about the build-in function reversed in Python2.5

2011-12-24 Thread bob gailer
the sequence is empty), the suite in the else #else clause, if present, is executed, and the loop terminates. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

[Tutor] What is ™

2011-12-22 Thread bob gailer
™ '\xe2\x84\xa2' What is this hex string? -- 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

Re: [Tutor] PYTHONPATH (Mac OS X)

2011-12-18 Thread bob gailer
On 12/18/2011 5:45 PM, Stayvoid wrote: Hey there! How to set it right? You may not get an answer as your question is pretty vague. Please clarify, or expand, or tell us what problem you are having or trying to solve. -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] where I am going wrong?

2011-12-15 Thread bob gailer
the same sum-of-5th-powers as 23154. Compute the sum then see if it is composed of the source digits. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org

Re: [Tutor] unexpected list entry

2011-12-02 Thread bob gailer
is returning user entry as unicode. -- 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

Re: [Tutor] is there a better way to organise this code

2011-12-01 Thread bob gailer
it elsewhere to even read it. Check out the drop-down box on the upper right. Choose Clean -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman

Re: [Tutor] pass tuples to user defined function(beginner)

2011-11-29 Thread bob gailer
On 11/29/2011 6:40 PM, emile wrote: Dave Angel wrote: ... single use punch cards... You didn't have an IBM 719 CARD punch? (ChAd Restoration Device). Made reuse of punch cards very easy. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor

<    4   5   6   7   8   9   10   11   12   13   >