Re: [Tutor] Python 2.4 IDLE Windows 2000

2004-12-03 Thread Mike Hansen
That rooted out the problem. A while ago, I changed the colors to kind of match my VIM color theme(ps_color). When I did idlelib.PyShell.main(), IDLE came up with my custom color theme. However, there was a bunch of warnings about my theme. From IDLE, I deleted the theme. Now IDLE will launch n

Re: [Tutor] Python 2.4 IDLE Windows 2000

2004-12-07 Thread Mike Hansen
Danny Yoo wrote: On Fri, 3 Dec 2004, Mike Hansen wrote: That rooted out the problem. A while ago, I changed the colors to kind of match my VIM color theme(ps_color). When I did idlelib.PyShell.main(), IDLE came up with my custom color theme. However, there was a bunch of warnings about my theme

Re: [Tutor] Objects, persistence & getting

2005-01-17 Thread Mike Hansen
Subject: Re: [Tutor] Objects, persistence & getting From: "Alan Gauld" <[EMAIL PROTECTED]> Date: Mon, 17 Jan 2005 07:48:28 - To: "Liam Clarke" <[EMAIL PROTECTED]>, "Tutor Tutor" To: "Liam Clarke" <[EMAIL PROTECTED]>, "Tutor Tutor" Well, one thing learning Java is good for is for thoroughly

[Tutor] Re: Newbie question.

2005-03-04 Thread Mike Hansen
Subject: Re: [Tutor] Newbie question. From: Gwyn Evans <[EMAIL PROTECTED]> Date: Fri, 4 Mar 2005 09:37:21 + To: tutor@python.org To: tutor@python.org On Fri, 28 Jan 2005 09:42:07 +0200, Adriaan Louw <[EMAIL PROTECTED]> wrote: I want to learn python as quick as possible, for web programming

Re: [Tutor] What is the best book to start?

2005-04-01 Thread Mike Hansen
Subject: Re: [Tutor] What is the best book to start? From: "Alan Gauld" <[EMAIL PROTECTED]> Date: Fri, 1 Apr 2005 09:05:16 +0100 To: "Hoffmann" <[EMAIL PROTECTED]>, To: "Hoffmann" <[EMAIL PROTECTED]>, I am starting to study

[Tutor] Pychecker

2005-04-22 Thread Mike Hansen
I had a frustrating time yesterday with a small Python program I wrote. I wasn't getting the results I expected, so I sprinkled print statements through it. I wasn't getting anywhere. I tossed it into Komodo to see if the background syntax checker would pick up something I was missing. I then st

Re: [Tutor] Pychecker

2005-04-22 Thread Mike Hansen
Thanks Danny. I'll make sure I use pychecker so I don't shoot myself in the foot with not so easy to catch typos in variable names and syntax blunders. I might check with the pychecker devs to see if there's any effort to get it put into the standard distribution. I think it's too handy to not h

[Tutor] Use Strict or Use Warnings was ( Lists of files)

2005-05-17 Thread Mike Hansen
> > > Subject: > Re: [Tutor] Lists of files > From: > William O'Higgins <[EMAIL PROTECTED]> > Date: > Mon, 16 May 2005 15:50:37 -0400 > > [...] > > One last thing - is there an equivalent of the "use strict" and "use > war

[Tutor] Python debugger under Tiger?

2005-05-19 Thread Mike Hansen
> Subject: > Re: [Tutor] Python debugger under Tiger? > From: > Mike Hall <[EMAIL PROTECTED]> > Date: > Wed, 18 May 2005 15:54:18 -0700 > To: > [EMAIL PROTECTED] > > To: > [EMAIL PROTECTED] > CC: > tutor@python.org > > > I should of specified that I'm looking for an IDE with full debugging. >

Re: [Tutor] Filtering Spreadsheet Data

2005-05-24 Thread Mike Hansen
> Subject: > [Tutor] Filtering Spreadsheet Data > From: > Luke Jordan <[EMAIL PROTECTED]> > Date: > Mon, 23 May 2005 15:30:33 -0500 > To: > tutor@python.org > > To: > tutor@python.org > > > Hi All, > > I have several frighteningly cumbersome reports to review at my new > job. I would like to wr

Re: [Tutor] Planning a program with algorithm?

2005-06-01 Thread Mike Hansen
> > > Subject: > [Tutor] Planning a program with algorithm? > From: > ". ," <[EMAIL PROTECTED]> > Date: > Sun, 29 May 2005 19:21:33 + > To: > tutor@python.org > > To: > tutor@python.org > > > I know how to write a pro

[Tutor] question about "hiding" a function/method in a class

2005-06-03 Thread Mike Hansen
cript. So I started to write the Python program. - #!/usr/bin/env python """ SQLGEN takes a csv file of a database schema and writes the sql script that will create the tables and fields in the database Mike Hansen Jun 2005 """ class DBFi

Re: [Tutor] question about "hiding" a function/method in a class

2005-06-03 Thread Mike Hansen
> Subject: > Re: [Tutor] question about "hiding" a function/method in a class > From: > Kent Johnson <[EMAIL PROTECTED]> > Date: > Fri, 03 Jun 2005 09:45:20 -0400 > > CC: > tutor@python.org > > > Mike Hansen wrote: > >>

Re: [Tutor] question about "hiding" a function/method in a class

2005-06-03 Thread Mike Hansen
Alan G wrote: >>I haven't done much OO in Python yet. For various web apps we write, > > we usually > >>write up a DB schema in a spreadsheet. > > > Wow! How exactly do you represent a schema in a spreadsheet? > I confess I cannot conceive of such a thing. Can you send a > representative sampl

Re: [Tutor] Controlling Where My Program Ends

2005-06-15 Thread Mike Hansen
> Subject: > Re: [Tutor] Controlling Where My Program Ends > From: > Don Parris <[EMAIL PROTECTED]> > Date: > Tue, 14 Jun 2005 23:03:59 -0400 > To: > tutor@python.org > > To: > tutor@python.org > > > On Wed, 15 Jun 2005 00:59:24 - > "DC Parris" <[EMAIL PROTECTED]> wrote: > > >>Never mind.

[Tutor] loading an image into a Postgre database

2005-06-21 Thread Mike Hansen
I'm having trouble loading an image into a Postgre database. The code is below as well as the traceback in the apache log. Is something up with my sqlStatement? Do I need to use something other than %s? How can I avoid that type error? Thanks, Mike #! /usr/bin/env python import cgi from pyP

Re: [Tutor] loading an image into a Postgre database

2005-06-22 Thread Mike Hansen
Thanks Danny. That did the trick. I think I had thought about putting the variables in the execute statement, but I didn't run across any examples. I'll need to read the DB API 2.0 docs some more. Mike Danny Yoo wrote: >>Thankfully, you don't have to change much to fix the formatting bug. The

[Tutor] getting an image out of a postgre database

2005-06-23 Thread Mike Hansen
Well, I've managed to get an image into a postgre database, but now I'm having trouble getting it out. #! /usr/bin/env python from pyPgSQL import PgSQL def main(): connectdb = PgSQL.connect('server:port:database:username:password') cur = connectdb.cursor() sqlStatement = """SELEC

[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
I'm confused. I was just reading the URL below.. http://jaynes.colorado.edu/PythonGuidelines.html and this statement confused me: "Always use from module import Name, Name2, Name3.. syntax instead of import module or from module import *. This is more efficient, reduces typing in the rest of th

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] deleting files that are older than x days old

2005-07-13 Thread Mike Hansen
From a python program, I want to delete certain files that are older than x days old. To get the time that the file was last modified, it looks like I need to use os.path.getmtime(path). This gives you the time represented in the number of seconds from the epoch. I'd like to convert this into

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
If what you posted is exactly what your code looks like, then you've got an indentation problem. Since Python doesn't use {}'s for code blocks, it uses indentation instead, and it's somewhat picky about indentation. I think all the code after the first conn.request should line up with the conn.req

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

2007-04-17 Thread Mike Hansen
> -Original Message- > > To clarify point #2: Python - as any learning - IS > challenging, but as I am > learning it "just for fun" and without any real need to > fulfil, I don't have any > "operational challenge", if that makes any sense in English... :-/ > > So far the best I could

[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? Mike _

Re: [Tutor] IDE / development environment

2007-04-23 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Rohan Deshpande > Sent: Sunday, April 22, 2007 2:51 AM > To: tutor@python.org > Subject: [Tutor] IDE / development environment > > Hey guys, > > I've been using Linux for a long time but this is my

Re: [Tutor] Type Conversion

2007-05-09 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jessica Brink > Sent: Wednesday, May 09, 2007 12:38 PM > To: Teresa Stanton; Python Tutor > Subject: [Tutor] Type Conversion > > I am doing a simple program that takes input from the user (a > t

Re: [Tutor] Another string-manipulation question

2007-05-09 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gilfoy > Sent: Wednesday, May 09, 2007 2:42 PM > To: tutor@python.org > Subject: [Tutor] Another string-manipulation question > > Given a string, how would I?: > > 1. Make sure only the first

Re: [Tutor] Generating simple HTML from within Python

2007-05-10 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Gibson > Sent: Thursday, May 10, 2007 10:25 AM > To: tutor@python.org > Subject: [Tutor] Generating simple HTML from within Python > > > I'm updating an application at the moment that genera

Re: [Tutor] .NET web services

2007-05-11 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Kent Johnson > Sent: Friday, May 11, 2007 4:18 AM > To: shiv k > Cc: tutor@python.org > Subject: Re: [Tutor] .NET web services > > shiv k wrote: > > Dear All, > > I want to implement web services in

Re: [Tutor] File access by os.system

2007-05-15 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Tuesday, May 15, 2007 1:44 AM > To: tutor@python.org > Subject: Re: [Tutor] File access by os.system > > > "lohith madireddy" <[EMAIL PROTECTED]> > > >I have files named 'x.pd

Re: [Tutor] words and lengths

2007-05-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Emad Nawfal > Sent: Wednesday, May 16, 2007 9:40 AM > To: Tutor@python.org > Subject: [Tutor] words and lengths > > Hi All, > I'm beginning to learn Python for linguistic research using > the Natur

[Tutor] GRUMPY?

2007-05-18 Thread Mike Hansen
> No, but we will all hereby remember you forever for posting a new > thread without a proper subject on this list. Perhaps at the same time > as our eyes will start peering. > I would imagine that the original poster didn't have any remnants of the previous thread. Yes, the poster should have pu

Re: [Tutor] MS SQL Connection

2007-05-21 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Leon Keylin > Sent: Monday, May 21, 2007 3:52 PM > To: tutor@python.org > Subject: [Tutor] MS SQL Connection > > Been trying to do a very small and simple select via Python. > First I tried a modul

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 1:49 PM > To: tutor@python.org > Subject: [Tutor] smtplib howto send with a subject line > > Hey Guys, I'm having a problem with my script that sends ou

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'll be easy to incorporate

Re: [Tutor] python exercises

2007-05-30 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Michael Revelle > > Anyone know where I can get some python excercises, like > labs/someone's old homework assignments? There are some ideas at http://effbot.org/pyfaq/tutor-im-learning-python-what-

Re: [Tutor] Design Question

2007-06-01 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Friday, June 01, 2007 12:24 PM > To: tutor@python.org > Subject: Re: [Tutor] Design Question > > remove_question(self,question) -- returns True if the question > > was removed, False

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

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
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gardner, Dean > Sent: Wednesday, June 27, 2007 3:59 AM > To: tutor@python.org > Subject: [Tutor] Regular Expression help > > Hi > > I have a text file that I would like to split up so that I > ca

Re: [Tutor] how long?

2007-07-03 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ben Waldin > Sent: Tuesday, July 03, 2007 1:47 AM > To: tutor@python.org > Subject: [Tutor] how long? > > How long will it take until I successfully create my own > working program that is useful?

Re: [Tutor] file methods

2007-07-10 Thread Mike Hansen
> -Original Message- >[...] > I have a file like this one: > > command = func_babara > parameter_1 = 300 > parameter_2 = 300 > parameter_3 = 50 > parameter_4 = 0 > parameter_5 = 0 > parameter_6 = 0 > > > ,as you see, i need to process it one line at a time and use > this .ini file

Re: [Tutor] curses

2007-07-13 Thread Mike Hansen
> > ok after reading a few tutorials i think i know enough to write my > program > here it is > not commented yet though sorry: > For me, I need to put comments in while I'm coding or I'll never put them in. I _try_ to put in a doc string for every class and function/method. With Python being

Re: [Tutor] while Loop

2007-07-26 Thread Mike Hansen
> -Original Message- > Subject: Re: [Tutor] while Loop > > Oops, didn't notice the uppercase U, thanks Luke. > > - Original Message - > Subject: Re: [Tutor] while Loop > > > >> define it with usedPocketsOne = 192000? > > no, I said UsedPocketsOne was not defined. Note the > d

Re: [Tutor] comparing two numpy arrays

2007-08-07 Thread Mike Hansen
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Andy Cheesman > > Hi people, > > If I've two numpy arrays, is there a non-looping way of finding common > values. (the example below has identical shapes for the > arrays but this > may not be the case in my scenario) > > e.g >

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 maillist - Tutor@python.org http://mail.py

Re: [Tutor] Bookpool sale on Addison Wesley

2007-08-09 Thread Mike Hansen
> -Original Message- > From: Bill Campbell > Sent: Thursday, August 09, 2007 10:54 AM > To: tutor@python.org > Subject: Re: [Tutor] Bookpool sale on Addison Wesley > > I've found bookpool.com to generally have better prices on > technical books than Amazon or Powells. They're generally th

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
> -Original Message- > ... > > for num in l2: > > if num in l3 and num in l4 and num in l5 and num in l6: > > possible.append(num) Yikes! Glancing at the code, I was reading l3, l4, l5, l6 as the numbers 13, 14, 15, 16..(Thirteen, Fourteen, Fifteen, Sixteen). I'd avoid us

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

2005-09-20 Thread Mike Hansen
> > > Subject: > Re: [Tutor] How do you organize code snippets? > From: > Poor Yorick <[EMAIL PROTECTED]> > Date: > Sun, 18 Sep 2005 13:28:10 -0400 > > CC: > tutor@python.org > > > List wrote: > >> Is there a way of namin

Re: [Tutor] HTTP GET Request

2005-09-27 Thread Mike Hansen
> Subject: > Re: [Tutor] HTTP GET Request > From: > paul brian <[EMAIL PROTECTED]> > Date: > Tue, 27 Sep 2005 17:04:46 +0100 > To: > Jerl Simpson <[EMAIL PROTECTED]> > > To: > Jerl Simpson <[EMAIL PROTECTED]> > CC: > tutor@python.org > > >>Basicall, what I need is a stand alone CGI. Instead of

Re: [Tutor] web development

2005-09-28 Thread Mike Hansen
> Subject: > [Tutor] web development > From: > Don Jennings <[EMAIL PROTECTED]> > Date: > Tue, 27 Sep 2005 22:13:30 -0400 > To: > tutor@python.org > > To: > tutor@python.org > > > Earlier this month, Kent posted that Jython and Velocity are a good way > to develop dynamic web sites. After a lit

Re: [Tutor] Book recommendations?

2005-09-30 Thread Mike Hansen
> Subject: > Re: [Tutor] Book recommendations? > From: > Kent Johnson <[EMAIL PROTECTED]> > Date: > Fri, 30 Sep 2005 05:57:51 -0400 > > CC: > Python Tutor list > > > Andrew P wrote: > >> Does anybody have any recommendations for other books on programming >> practices in general? Any fun or

Re: [Tutor] __slots__

2005-10-13 Thread Mike Hansen
> Subject: > Re: [Tutor] __slots__ > From: > Kent Johnson <[EMAIL PROTECTED]> > Date: > Wed, 12 Oct 2005 18:22:46 -0400 > > CC: > Python Tutor Mailing List > > > Liam Clarke wrote: > >> Well, all I can say is, don't use them unless you need them, they're a >> lot of hassle. > > > I think the

[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] 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
[EMAIL PROTECTED] %s' % ( password, user, > hostIP, > 'cd /blah/blah/' ) ) > os.system( 'plink -pw %s -ssh [EMAIL PROTECTED] %s' % ( password, user, > hostIP, > 'python scriptname.py' ) ) > > [...] >>On 11/3/05, Mike Hansen <[EMAIL P

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

2006-01-23 Thread Mike Hansen
> > > Subject: > [Tutor] python-based system programming and admin? > From: > Neal McBurnett <[EMAIL PROTECTED]> > Date: > Fri, 20 Jan 2006 21:01:03 -0700 (MST) > To: > tutor > > To: > tutor > > > I'm an experienced linu

[Tutor] templates

2006-01-27 Thread Mike Hansen
For some of the web programming I've done in Python, I've used htmltmpl. I had some experience with it in Perl, and found a Python version. http://htmltmpl.sourceforge.net/ I like that there's nearly a complete separation between the presentation and the code. This is great when one person is d

Re: [Tutor] IDE - Editors - Python

2006-02-06 Thread Mike Hansen
> Subject: > [Tutor] IDE - Editors - Python > From: > Paul Kraus <[EMAIL PROTECTED]> > Date: > Mon, 6 Feb 2006 09:46:42 -0500 > To: > tutor@python.org > > To: > tutor@python.org > > > Which editors does everyone use and why. Please keep the discussion to IDE's > rather then any editors. I am we

[Tutor] Object Oriented Programmin

2006-03-28 Thread Mike Hansen
> Subject: > [Tutor] Object Oriented Programmin > From: > "Kaushal Shriyan" <[EMAIL PROTECTED]> > Date: > Tue, 28 Mar 2006 12:57:58 +0530 > To: > tutor@python.org > > To: > tutor@python.org > > > Hi ALL > > I have gone through the object oriented programming in Python, I am > not able to unders

[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
> > - you can use __slots__ to restrict arbirtrary creation of > (dynamic) > > instrance attributes > > You can do this, but it is generally considered a misuse of > __slots__ and potentially problematic. > I'll bite. What is the proper/intended use of __slots__? Does it have something to do

Re: [Tutor] Database Connectivity

2006-04-11 Thread Mike Hansen
> Kaushal Shriyan wrote: > > Hi ALL > > > > How do i connect my python program to MySQL DB or Oracle DB > or can you > > please specify the URL which gives a detailed explanation on this. > > Basic connectivity is through modules that implement the > DB-API standard. Read the spec and find

[Tutor] Tutor FAQ?

2006-04-20 Thread Mike Hansen
I'd like to send a big Thank You to Danny, Alan, Kent and others(whos names escape me) for being such an asset to the Python community by relentlessly answering questions on the tutor list.(Do these guys sleep? They must work in shifts.) This list is one of the most civilized and responsive lists I

Re: [Tutor] Tutor FAQ?

2006-04-20 Thread Mike Hansen
> Thanks! I do sleep but I have my email tied in to my clock > radio so whenever an email arrives on the tutor list I am > awakened to answer it ;) Hmmm.. I wouldn't be surprised if there's an X10 module that does that. =) [...] > Maybe this could be integrated with the main Python FAQ in a

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 AM

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Mike Hansen
> > Maybe this could be integrated with the main Python FAQ in a > > beginner's section? Fredrik Lundh is experimenting with a > FAQ wiki here: > > http://pyfaq.infogami.com/ > > Actually I put something about this on PyFAQ just the other day. > Fredrik was quite keen on the idea, but I've b

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Mike Hansen
> - > > I need help; 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. Post the > > exac

Re: [Tutor] Tutor FAQ?

2006-04-24 Thread Mike Hansen
On Apr 22, 2006, at 3:15 AM, Fredrik Lundh wrote: > Ed wrote: > >> I don't think the FAQ is open to public editing yet. I'm not sure >> when it will be, but Fredrik might be able to give a timescale. > > There are a few known conversion issues to deal with (the FAQ uses > a lot more "looks like

Re: [Tutor] Invoking Excel Macro

2006-04-24 Thread Mike Hansen
box rather it gives a temporary name > to the file. > Ex >  newsheet.xls as newsheet1.xls > So i'm not able to save it. Is  there an alternative to invoke the  > macro and save the file from my script itself .(saving it through > macro wud be a better option : )  ) >   >

[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? Post as much relev

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

2006-06-08 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Emily Fortuna > Sent: Thursday, June 08, 2006 7:20 AM > To: tutor@python.org > Subject: [Tutor] making a python program part of xhtml > > Hola everyone, > I'm working on creating a webpage in which

Re: [Tutor] Python related mags

2006-06-12 Thread Mike Hansen
On Jun 12, 2006, at 5:53 AM, Andrew Robert wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi everyone, > > Does anyone know of any Python related magazines available that would > be > worth subscribing to? > > Ideally, a free one, but I would not object to a reasonably priced one >

Re: [Tutor] die or exit function?

2006-06-13 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Andy Koch > Sent: Tuesday, June 13, 2006 8:42 AM > To: tutor@python.org > Subject: [Tutor] die or exit function? > > Bkgd: I've been doing PHP for the last several years. > > Q: In PHP there are

Re: [Tutor] If then else question

2006-06-14 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Robert > Sent: Wednesday, June 14, 2006 12:41 PM > To: Python Tutor > Subject: [Tutor] If then else question > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Everyone, > > In the

Re: [Tutor] projects for beginners

2006-06-19 Thread Mike Hansen
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of josipSent: Monday, June 19, 2006 8:39 AMTo: tutor@python.orgSubject: [Tutor] projects for beginners Hi!   I have read learning python and mede some smaller examples. Now I want to make smoe project,

Re: [Tutor] (no subject)

2006-06-26 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of shane davin > Sent: Monday, June 26, 2006 9:15 AM > To: Tutor@python.org > Subject: [Tutor] (no subject) > > Stop the emails??? > im getting more than i need > regards > > _

Re: [Tutor] classes and functions

2006-06-30 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of anil maran > Sent: Thursday, June 29, 2006 12:51 PM > To: Tutor > Subject: [Tutor] classes and functions > > how to use classes and functions in python > thanks What do you need to know? Have you r

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
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Basavaraj SP. Sent: Tuesday, July 25, 2006 9:05 AM To: tutor@python.org Subject: [Tutor] IDE for Python Dear All, I am new to Pyth

Re: [Tutor] python processing of web html forms

2006-08-03 Thread Mike Hansen
__ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Peery Sent: Thursday, August 03, 2006 11:38 AM To: tutor@python.org Subject: [Tutor] python processing of web html forms Hello, I want to us

Re: [Tutor] Community documentation framework?

2006-08-08 Thread Mike Hansen
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Nienhuis Sent: Sunday, August 06, 2006 3:56 PM To: tutor@python.org Subject: [Tutor] Community documentation framework? Have you had the experience of finding a nifty bit

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
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Zsiros Levente > Sent: Thursday, August 24, 2006 2:21 PM > To: Danny Yoo > Cc: python tutor > Subject: Re: [Tutor] tkinter events: > > If we're talking about data hiding, let me ask: why Python doe

Re: [Tutor] tkinter events:

2006-08-28 Thread Mike Hansen
Yep...across multiple lines. Here's a tinyurl of it http://tinyurl.com/n93au Mike > -Original Message- > From: Zsiros Levente [mailto:[EMAIL PROTECTED] > Sent: Friday, August 25, 2006 11:37 PM > To: Mike Hansen > Cc: python tutor > Subject: Re: [Tutor] tkinter

Re: [Tutor] making independent program?

2006-08-28 Thread Mike Hansen
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kay White Sent: Monday, August 28, 2006 1:45 PM To: tutor@python.org Subject: [Tutor] making independent program? Hello again, Can you make programs that don't r

Re: [Tutor] omnicomplete vim python

2006-08-29 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Tuesday, August 29, 2006 1:26 AM > To: anil maran > Cc: tutor@python.org > Subject: Re: [Tutor] omnicomplete vim python > [...] > > This isn't answering Anil's question but I'm c

  1   2   >