[Tutor] Case ?

2005-07-05 Thread Mike Cheponis
Why does Python not have a "case" statement, like C? Thanks! -Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] generating documentation for a module

2005-07-07 Thread Mike Hansen
Is there a utility that generates documentation for your python modules/scripts/programs based on their doc strings that looks similar to the library documentation on the python web site? What do you use to generate documentation for your python modules/scripts/programs? Mike

Re: [Tutor] generating documentation for a module

2005-07-07 Thread Mike Hansen
> Subject: > Re: [Tutor] generating documentation for a module > From: > Wolfram Kraus <[EMAIL PROTECTED]> > Date: > Thu, 07 Jul 2005 16:17:11 +0200 > To: > tutor@python.org > > To: > tutor@python.org > > > Mike Hansen wrote: > >> Is the

[Tutor] Confused "from module import Name" better than "import module"?

2005-07-11 Thread Mike Hansen
27;ve imported many modules. Don't you avoid namespace pollution too by using import module instead of from module import * or from module import Name, Name2, Name3...? What is the preferred/better way to import modules? Mike ___ Tutor maillist

Re: [Tutor] Confused "from module import Name" better than "import module"?

2005-07-11 Thread Mike Hansen
> Subject: > Re: [Tutor] Confused "from module import Name" better than "import module"? > From: > Kent Johnson <[EMAIL PROTECTED]> > Date: > Mon, 11 Jul 2005 12:30:16 -0400 > > CC: > tutor@python.org > > > Mike Hansen wrote: >

[Tutor] python newbie..system call help

2005-07-12 Thread Mike Pindzola
procedures in the mailing list. -Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] python newbie..system call help

2005-07-12 Thread Mike Pindzola
ting and unmounting hardware. So a call to 'su' would be in order as well as sending the user provided password back to it. Aside from that, just so copying of files, making dirs, and changing file permissions. [EMAIL PROTECTED] wrote: >Quoting Mike Pindzola <[EMAIL PROTECTED]>

Re: [Tutor] python newbie..system call help

2005-07-12 Thread Mike Pindzola
any responses Mike Pindzola wrote: > Yes, I have did 'import os'. For starters I want to read the result of > 'pwd' and print it out in the program for the user to see what path is > being read. Also, I need to have a function to handle root access if > the us

[Tutor] deleting files that are older than x days old

2005-07-13 Thread Mike Hansen
this into a datetime object, but I can't seem to figure out how. Once it's a datetime object, I can do simple (datetime.datetime.today() - filedatetime).days to figure out the days old. How do you convert a time represented in seconds from the epoch into a datetime

Re: [Tutor] deleting files that are older than x days old

2005-07-13 Thread Mike Hansen
> Subject: > Re: [Tutor] deleting files that are older than x days old > From: > Kent Johnson <[EMAIL PROTECTED]> > Date: > Wed, 13 Jul 2005 13:50:47 -0400 > > CC: > tutor@python.org > > > Mike Hansen wrote: > >> How do you convert

Re: [Tutor] Error in my code

2007-04-17 Thread Mike Hansen
headers) response = conn.getresponse() print response.status, response.reason conn.close() It looks like your indenting 2 spaces. I believe the recommendation is 4 spaces. You might read the style guide. http://www.python.org/doc/essays/styleguide.html Out of curiosity, what editor

Re: [Tutor] Learning Python in cooperative, challenging way.

2007-04-17 Thread Mike Hansen
ffbot.org/pyfaq/tutor-im-learning-python-what-should-i-program.h tm or http://tinyurl.com/yalvar Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Question about cgi module

2007-04-20 Thread Mike Hansen
Part of the web app that I'm writing will allow users to upload small images to be stored in a database. Is there a way to limit how big of a file that the user can upload? Is there some cgi setting that would prevent a user from upload a huge file, or stop at a certain size and error?

Re: [Tutor] IDE / development environment

2007-04-23 Thread Mike Hansen
anks much. > > Always looking for a faster way, > Rohan > I primarily use VIM. What do you mean by "switching between files"? You might look at the mini-buffer explorer plug-in. It makes it easy to switch between buffers. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Type Conversion

2007-05-09 Thread Mike Hansen
essica Brink > Business/Computer Teacher > Northland Pines High School > Eagle River, WI > 715-479-4473 ext. 0701 Instead of int(C), I think you need C = int(C) Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Another string-manipulation question

2007-05-09 Thread Mike Hansen
0]: for chr in x: :if chr.isalpha(): :newx += chr : In [41]: print newx rakanishu Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Generating simple HTML from within Python

2007-05-10 Thread Mike Hansen
hat is the preferred way of generating simple HTML > or XHTML files these days? Is there a 'son of HTMLgen' or > similar module? > > Cheers > Duncan > > PS. Apologies if this shows up twice. My first post seems to be MIA. Did you search the Cheese Shop. I did a search

Re: [Tutor] .NET web services

2007-05-11 Thread Mike Hansen
> http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython > > Kent Did the original poster mean to create a web service and have a .NET program consume it? Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] File access by os.system

2007-05-15 Thread Mike Hansen
op iteration. > (possibly after printing an error message with the pdb name > in it so you can check why it failed later) > > >print(type(Pdb)) > >os.system("dsspcmbi -v Pdb temp1") Should the os.system command be something like command = "dsspcmbi -v %s %s" %(Pdb, temp1) os.system(command) ? Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] words and lengths

2007-05-16 Thread Mike Hansen
['colorless', 'green', 'ideas', 'sleep', 'furiously'] > lengths = {} > for word in phrase2: > lengths = lengths[word, len(word)] > > print lengths > > > Thank you in an

[Tutor] GRUMPY?

2007-05-18 Thread Mike Hansen
oster should have put a subject. On the other hand, we need to be nicer too. More like... "Glad you figured it out. Hey, could you do us a favor next time and put a subject on your message?" Mike ___ Tutor maillist - Tutor@python.org htt

Re: [Tutor] MS SQL Connection

2007-05-21 Thread Mike Hansen
Any examples would be awesome. Thanks! > I did a quick search on Google for MS SQL Python, and this came up. It looks like it will do the trick. http://pymssql.sourceforge.net/ Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] smtplib howto send with a subject line

2007-05-23 Thread Mike Hansen
""" % (recip, smtpresult[recip][0], smtpresult[recip][1], errstr) > raise smtplib.SMTPException, errstr > > Thanks in advance, > > -- > Daniel McQuay > Jaluno.com > H: 814.825.0847 > M: 814-341-9013 > It seems a little easier to use the email module along with the smtp module to create and send a message. http://docs.python.org/lib/node162.html Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] smtplib howto send with a subject line

2007-05-23 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Daniel McQuay > Sent: Wednesday, May 23, 2007 3:52 PM > Cc: tutor@python.org > Subject: Re: [Tutor] smtplib howto send with a subject line > > Thanks Mike, it seems that I&#

Re: [Tutor] python exercises

2007-05-30 Thread Mike Hansen
im-learning-python-what-should-i-program.h tm or http://tinyurl.com/yalvar Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Design Question

2007-06-01 Thread Mike Hansen
n > > was removed, False otherwise > > Doesn't sound like, better to use a question style name like > is_removed(question) > Would it be better to have remove_question remove the question or raise an exception if it can't remove the question? Then you'd put

[Tutor] New programming tutorials

2007-06-04 Thread Mike Hansen
I was just looking at the Daily Python URL and there are two new Python tutorials: Building Skills in Programming How To Write Your Own Software Using Python http://homepage.mac.com/s_lott/books/nonprog/htmlchunks/index.html Hands-on Python http://www.cs.luc.edu/~anh/python/hands-on/ Mike

Re: [Tutor] Invoking Python from Vim

2007-06-08 Thread Mike Hansen
pt > > (actually nowadays I'm using a a PyCrust shell) > > > > And I alt-tab between the windows. I also use the three window solution(VIM, IPython, and shell to run program.) You might look at Pida which turns VIM into a IDE. I'm not sure, but I think it's Python friendly since it's written in Python. http://pida.co.uk/ Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] How do I delete all Files of certain extension type?

2007-06-20 Thread Mike Hoy
quot;: print "GoodBye" deleteAll() Any pointers you can offer would be appreciated. Thanks, Mike Hoy ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Regular Expression help

2007-06-27 Thread Mike Hansen
Argh... My e-mail program really messed up the threads. I didn't notice that there was already multiple replies to this message. Doh! Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Regular Expression help

2007-06-27 Thread Mike Hansen
27; In [70]: vr = row_items.pop() In [71]: vr Out[71]: 'LO' In [72]: desc = ' '.join(row_items) In [73]: new_row = "%s; %s; %s; %s" %(tag, desc, vr, vm, ) In [74]: new_row Out[74]: '(0012,0042); Clinical Trial Subject Reading ID; LO; 1' Someone might think of a better way with them thar fancy lambdas and list comprehensions thingys, but I think this will work. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] put data from text file into list

2007-07-01 Thread Mike Hoy
is it possible to take information contained inside a text file and put it into a list? My text file contains info derived from a list so it looks like this: ['foo','bar']. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo

Re: [Tutor] how long?

2007-07-03 Thread Mike Hansen
a program you want into pieces and work on a piece of it. Maybe you want some sort of GUI program. Well, first you can create a command line version on it. Then later you can make it a GUI program. The tutor list can help when you have questions. Mike ___ T

Re: [Tutor] file methods

2007-07-10 Thread Mike Hansen
e line at a time and use > this .ini file as a configuration file. > Take a look at the ConfigParser module. It can read ini files easily. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] curses

2007-07-13 Thread Mike Hansen
iolent psychopath who knows where you live." Even if the code you are writing is supposed to be a one off that will never be used again(famous last words), it's best to keep up the practice of commenting your code. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] while Loop

2007-07-26 Thread Mike Hansen
you did not define UsedPocketsOne. > > I've been out of the office for the last week, so I'm catching up. You might use something like PyChecker, PyLint, or PyFlakes. Those utilities would catch errors like this. I have a hotkey in VIM that kicks off PyFlakes on

Re: [Tutor] comparing two numpy arrays

2007-08-07 Thread Mike Hansen
ng that you'd need to convert the arrays to sets. Maybe convert the arrays to lists or tuples then to sets? Maybe you might be able to directly convert the numpy arrays to sets? I haven't used numpy, so you'll need to experiment. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Large Scale Python websites

2007-08-07 Thread Mike Hansen
> >> Is anyone aware of any large scale web apps developed in Python? > >> Please let > >> me know of any that you know of... I think that reddit.com switched from LISP to Python a while back. Mike ___ Tutor maillis

Re: [Tutor] Bookpool sale on Addison Wesley

2007-08-09 Thread Mike Hansen
r Powells. They're generally the > first place I look. > > (my only assocation with any of them is as a customer). > > ... > Bill Bookpool is pretty good. Half.com and nerdbooks.com are other places I look for cheaper tech books. Mike

Re: [Tutor] FAQ [Was Re: Python Book Recommendations [Was:....]]

2007-08-16 Thread Mike Hansen
ot;Tim Michelsen" <[EMAIL PROTECTED]> wrote > > > is there a FAQ for this list where we could put all these > > recommendations? > > Someone (Mike Hansen?) started one a while back, but like most such > ventures the trick is in maintaining it! I'm not sure wh

Re: [Tutor] the and command

2007-08-24 Thread Mike Hansen
een, Sixteen). I'd avoid using variables named like that since the lowercase L looks like a one (l, 1) in many fonts. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Take if offline

2007-09-25 Thread Hansen, Mike
quot; user. I'd prefer to read about Python not read lessons in net/mail-list etiquette. Thanks, Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Take if offline

2007-09-25 Thread Hansen, Mike
ROTECTED]"[EMAIL PROTECTED]> wrote: All jokes aside now (glad you took it that way Mike). Maybe I havn't gave the tutor enough attention, but I have never witnessed someone jump down anothers throat because they posted in all caps, didn't enter a subject etc... etc... The on

[Tutor] Combining dictionaries

2005-09-06 Thread Mike Cheponis
; b = {'1':1, '2':2, '3':3} >> c = a + b # doesn't seem to work >> >> desired: >> c = {'a':'a', 'b':'b', 'c':'c', '1':1, '2':2, '3':3} >>

Re: [Tutor] Combining dictionaries

2005-09-06 Thread Mike Cheponis
uot;foo" + "bar "*3 'foobar bar bar ' This also seems like a nasty bug (to me, at least). Because one would think that the "*" operator would bind more closely than the '"' or implied concatenation would. How can I actively help fix these Python bugs? > Best of wishes to you! Same to you! Thanks! -Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How do you organize code snippets?

2005-09-20 Thread Mike Hansen
oping to find some sort of snippets plug-in for VIM, but haven't come across anything. I found a couple of open source snippet database programs for Windows. One kept crashing on my machine and the other was kind of klunky. LEO looks promising. I'm reading through the tutorial no

[Tutor] 2 questions......novice but not beginner

2005-09-26 Thread Mike Pippin
to anyone who can help me!!   Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] HTTP GET Request

2005-09-27 Thread Mike Hansen
pacity. > From what others have told me, I wouldn't say that cgi is out of date. The couple of apps I've done perform just fine. Also, I'd recommend that every programmer do at least a little app using cgi to get a good understanding of the

Re: [Tutor] web development

2005-09-28 Thread Mike Hansen
all my time getting it up and running on a development server. Then having problems when it's time to install on a production server or other servers at different locations. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Book recommendations?

2005-09-30 Thread Mike Hansen
e Design of Existing Code > http://martinfowler.com/books.html#refactoring > > Beck, Extreme Programming Explained > http://www.amazon.com/exec/obidos/ASIN/0201616416/ref%3Dnosim/armaties/102-7636110-6481700 > > > > Kent All of the above are great picks. I'd al

[Tutor] Simple Tkinter question

2005-10-06 Thread Mike Cheponis
27;s 0" (right away) "Now it's 1" (after 1 second pause) "Now it's 2" (after another 1 second pause) Any idea what's going on here? Why doesn't "tv.set("") happen immediately? Thanks, -Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] __slots__

2005-10-13 Thread Mike Hansen
't used them yet, they seem like a way to lock down a class so you don't accidentally add new attributes to that class. (emp.name vs emp.nmae) Might be handy when working on a team too. Although something like Pychecker would most likely catch those accidents. I dunno. Mike __

[Tutor] File IO help

2005-10-26 Thread Mike Haft
y grateful. I hope I'm not asking too much of the list but I haven't found anything that says READ THIS BEFORE POSTING! on it to tell me otherwise. Thanks in advance Mike Haft ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] File IO Help again

2005-10-27 Thread Mike Haft
oming soon. Sorry for the vague post earlier, multitasking isn't my specialty, especially without coffee. Thanks Mike >From the previous post: --- The data in each file looks liek: MONTH RAIN AVTEMP RAD EVAP 1 1

[Tutor] RSH?

2005-11-03 Thread Mike Hansen
Anyone know of a way to have Python run a command on a remote machine? In my particular case, I want to run a python program on Windows and run a command on VMS. Would the telnetlib module do it, or is there something better? Mike ___ Tutor maillist

Re: [Tutor] File IO

2005-11-03 Thread Mike Haft
x27;, '57.67.631.3', '23.43.919.1', '14.00.712.5'] might work Its worth pointing out that there are more than eight fields in my actual files, I'm using a shorter version just to test stuff on. Actual fields are: MONTHRAIN AVTEMP S10RAD S

Re: [Tutor] RSH?

2005-11-04 Thread Mike Hansen
If we had Python on VMS(which I'm working on), I'd definitely look into Pyro. Thanks, Mike > Subject: > Re: [Tutor] RSH? > From: > Pujo Aji <[EMAIL PROTECTED]> > Date: > Thu, 3 Nov 2005 18:44:11 +0100 > To: > Mike Hansen <[EMAIL PROTECTED]> &

Re: [Tutor] RSH?

2005-11-04 Thread Mike Hansen
That's exactly what I'm looking for! Thanks, Mike > Subject: > Re: [Tutor] RSH? > From: > Bernard Lebel <[EMAIL PROTECTED]> > Date: > Thu, 3 Nov 2005 14:16:40 -0500 > To: > tutor@python.org > > To: > tutor@python.org > > > I use

[Tutor] File IO and writing lists

2005-11-04 Thread Mike Haft
#x27;12.5']] done >>> I don't know how to print these values in a new file sperated by new lines and white space between the values (each line needs to be three values corresponding to RAIN AVTEMP and EVAPW). I know how to open a file and use out_file.write() type commands but no

[Tutor] lists and strings

2005-11-08 Thread Mike Haft
ifferent format. But the easiest way to get the data from the first set of files is in a list(s). So, is there any way to convert lists to strings? Or a way to write lists to a file? Thanks Mike ___ Tutor maillist - Tutor@python.org http://mail.pyt

[Tutor] Seeking PYTHON Mentor

2005-11-12 Thread mike donato
Greetings, I am an Information Technology student and am seeking a mentor for the Python Language. Primarily my areas of specialization have been Local Area Network and PC Tech Support however have a data structure class as a degree requirement. The class is in Python. I have downloaded python

[Tutor] TRULY NEWBIE - MENTOR NEEDED

2005-11-22 Thread mike donato
Greetings, I am new student to programming and am experimenting with PYTHON. >From what I have read, seems to be a very versatile language. In the following excercise I am getting an error class String(str, Object): shift = 6 mask = ~0 << (31 - shift) def __hash__(self): r

Re: [Tutor] python-based system programming and admin?

2006-01-23 Thread Mike Hansen
D, and BSD is a flavor of unix. There's not a lot to learn. Basic file management(copy, delete, move, rename), setting the permissions(chmod, chown), navigating the directory structure(cd, ls), and finally running a python program. Some editors have FTP built into them, so he could write

[Tutor] templates

2006-01-27 Thread Mike Hansen
. I wouldn't be opposed to a little bit of code in the template. I just don't want to go the other extreme of something like PHP or ASP. i.e. all code in the template. What web templating systems do you use and why? Mike ___ Tutor maillist

Re: [Tutor] IDE - Editors - Python

2006-02-06 Thread Mike Hansen
at PyDev, it was still in it's infancy. Personally, I'd stick to VIM or Emacs instead of messing around with IDEs. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] cannonical matrix representation?

2006-02-10 Thread Mike Cheponis
ython functions to be inserted into particular cells in the 4-D matrix. I did't see any package that exactly does this; do I write my own Matrix class and base it on lists? Thanks! -Mike p.s. This seems to me like it ought to be built into the base language - multidimensional obj

[Tutor] Object Oriented Programmin

2006-03-28 Thread Mike Hansen
ction was a little thick to me. I read the book, The Object Oriented Thought Process. Then I went back and read the chapters on OOP in Learning Python, and it made a lot more sense. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] OT: Tutor Digest and Outlook 2003

2006-03-30 Thread Mike Hansen
The company I work for is moving to Outlook 2003 and Exchange server. I used to use Thunderbird. Anyway, when digest messages show up in Outlook 2003, all the posts are attachments. Does anyone know how to get them to display in-line? Thanks, Mike

Re: [Tutor] Protected methods/variables

2006-04-04 Thread Mike Hansen
ots__? Does it have something to do with memory? Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Database Connectivity

2006-04-11 Thread Mike Hansen
s The module for Postgre called psycopg has a nice PDF about the DB-API http://initd.org/pub/software/psycopg/dbapi20programming.pdf Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Tutor FAQ?

2006-04-20 Thread Mike Hansen
iki) FAQ for common questions to the list would include - ord() and chr() - Common GUI programming questions - String module is deprecated, use string methods - ??? I'm sure you can come up with more of the common questions. Does this sound like

Re: [Tutor] Tutor FAQ?

2006-04-20 Thread Mike Hansen
on the site above. I'll post to this list when I have something worth looking at. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Invoking Excel Macro

2006-04-21 Thread Mike Hansen
In the macro, you might try Application.DisplayAlerts = False  and reset it to True after you save. I think it might be trying to display a dialog box before it saves.   Mike From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of arunSent: Friday, April 21, 2006 1:44

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Mike Hansen
as quite keen on the idea, but I've been busy the > last couple of days and haven't got around to doing anything about it. > > Mike, if you're volunteering that would be perfect. If > anyone here has ideas for questions that get asked a lot > (like "How do I wr

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Mike Hansen
p; I'm getting an error in my program. What should I do? If you are getting an error in your Python program that you don't understand, post the error message and any relevant code. Copy and paste the entire error message into your email, including the traceback. Don'

Re: [Tutor] Tutor FAQ?

2006-04-24 Thread Mike Hansen
f I don't get any corrections or clarifications in a day or so after posting, I'll add it to the tutor suggestion page. Ed mentioned that you are using restructured text. Should I put the entry in restructured text? I spent some time last night reading up on restructured text and docutils. Thanks, Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Invoking Excel Macro

2006-04-24 Thread Mike Hansen
been saved. That's where the Application.DisplayAlerts comes in. So I may have been a little off on the part of saving. It might be the closing of Excel. Other than that, I'm stumped. Mike On Apr 24, 2006, at 7:32 AM, arun wrote: > Hi Mike, >    It doesn't  display any dialog

[Tutor] Cheetah

2006-04-26 Thread Mike Hansen
I'm having a little trouble populating a cheetah template. I thought I'd ask here first before checking the cheetah mailing list or c.l.p. I have a simple template This is a test $title #for $item in $items category: $item.category name: $item.name price: $item.pric

[Tutor] Tutor FAQ

2006-04-26 Thread Mike Hansen
Here's the next batch of questions and answers for the tutor FAQ. If you have any clarifications or corrections, please let me know. I'll try to post this on the web site in a couple of days. - How do I get data out of HTML?

Re: [Tutor] Tutor FAQ

2006-04-26 Thread Mike Hansen
Thanks Kent. I'll make those additions/corrections and rework the question about private and public attributes and methods. Mike On Apr 26, 2006, at 7:42 PM, Kent Johnson wrote: > Mike Hansen wrote: >> Here's the next batch of questions and answers for the tutor FAQ.

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
Well, I posted a few questions to http://pyfaq.infogami.com/tutor-index late last week. Since the next questions and answers are a bit on the long side, I'll send them to this list in multiple messages. Please let me know if you have any corrections or clarifications. Below is a reworked questi

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
- What's the difference between "import foo" and "from foo import *"? import sys This brings the *name* "sys" into your module. It does not give you access to any of the names inside sys itself (such as exit for example). To acc

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
I need some help with this question and answer. It appears that useless Python is gone. uselesspython.com. Is it still around? Does anyone have any ideas on this one? - I'm learning Python. What should I program? If you have a

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
- What are some good books on Python? See the Python wiki http://wiki.python.org/moin/PythonBooks or search comp.lang.python or the tutor archives since this is a very frequently asked. If you have no programming experience, tr

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
- What is if __name__ == "__main__" for? The 'if __name__ == "__main__": ..." trick exists in Python so that our Python files can act as either reusable modules, or as standalone programs. As a toy example, let's say that we hav

[Tutor] Tutor FAQ

2006-05-17 Thread Mike Hansen
Here's a small batch of questions/answers for the tutor FAQ. Let me know if you have any corrections or clarifications. I'll post them to the web site in a couple of days. Mike - How much code should I post? Po

Re: [Tutor] making a python program part of xhtml

2006-06-08 Thread Mike Hansen
ight point to articles about doing simple cgi stuff in Python. http://wiki.python.org/moin/CgiScripts http://www.devshed.com/index2.php?option=content&task=view&id=198&pop=1&page =0&hide_js=1 Is an article on cgi programming with Python. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python related mags

2006-06-12 Thread Mike Hansen
as Python is, it's probably not popular enough to sustain a magazine devoted just to it. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] die or exit function?

2006-06-13 Thread Mike Hansen
catch the exception and deal with it and then sys.exit() if need be. Mike http://users.adelphia.net/~mahansen/programming/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] If then else question

2006-06-14 Thread Mike Hansen
accomplishing the same thing? > > > - -- > Thank you, > Andrew Robert > Maybe... elif ch_val in ['040', '011', '012']: Mike http://users.adelphia.net/~mahansen/programming/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] projects for beginners

2006-06-19 Thread Mike Hansen
, I'm thinking about text editor. Can someone give me pointers like (where and how to start, etc.)? Or maybe another project suitable for beginners.     http://pyfaq.infogami.com/tutor-im-learning-python-what-should-i-program   Has a couple of ideas for projects.   Mike

Re: [Tutor] (no subject)

2006-06-26 Thread Mike Hansen
//mail.python.org/mailman/listinfo/tutor > Go to http://mail.python.org/mailman/listinfo/tutor See the bottom of the page to unsubscribe. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] classes and functions

2006-06-30 Thread Mike Hansen
aren't clear enough, and we can probably help. I hope these links help you. Mike http://users.adelphia.net/~mahansen/programming/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] need problems to solve

2006-07-12 Thread Mike Hansen
  Hi, I was wondering where I could get problems in python for practicing. Thanks Regards   Devayani    http://pyfaq.infogami.com/tutor-im-learning-python-what-should-i-program has some suggestions. ___ Tutor maillist - Tutor@

Re: [Tutor] IDE for Python

2006-07-25 Thread Mike Hansen
tutor-whats-the-best-editor-ide-for-python Mike http://users.adelphia.net/~mahansen/programming/editorides.html ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] python processing of web html forms

2006-08-03 Thread Mike Hansen
want to take a look at the cgi module. Devshed has an article on getting started with it. http://www.devshed.com/c/a/Python/Writing-CGI-Programs-in-Python/ IMO, I think if you want to do web stuff, you should learn the basics first(cgi), then move on to cherrypy, quixote, django, turbo gears... Mike

Re: [Tutor] Community documentation framework?

2006-08-08 Thread Mike Hansen
d to adress that need. What would you like to see? You might take a look at http://pyfaq.infogami.com/ Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Which Book

2006-08-17 Thread Mike Hansen
> > Hi All, > > I have very little programming experience, I have decided to learn > Python..there are tons of material and refernces on the web-pages, can > you guys please suggest what is the best way to start or which ONE > book which I should follow to start. > > thanks.. > > Nagendra http

Re: [Tutor] tkinter events:

2006-08-24 Thread Mike Hansen
mi.com/tutor-how-do-i-make-public-and-private-attribu tes-and-methods-in-my-classes Mike ** IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named re

[Tutor] help

2006-08-24 Thread mike viceano
hello i need a little help with a common multiple module i am haveing problems with the best i can get it is to show the least common multiple i think the problem is eather the and command ot the if command # finds common multiples def nums(a,b): # assigns numbers to a and b print "enter

<    1   2   3   4   >