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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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"; > >

[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] 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

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] 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] 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] 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

[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] 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

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] .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] 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] 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] 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] 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

[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] 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

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] Python books on sale

2007-04-11 Thread Mike Hansen
> -Original Message- > > "Kent Johnson" <[EMAIL PROTECTED]> wrote > > > Also the TurboGears book is 51% off: > > http://www.bookpool.com/sm/0132433885 > Safari(http://safari.oreilly.com) has both the TurboGears book and Core Python book, so you can check them out before deciding if y

Re: [Tutor] Question about exception

2007-04-05 Thread Mike Hansen
> If the Exception is defined as a class, e will be an instance of > that class so you can have pretty much anything available: > > class MyException(Exception): > def __init__(self, msg, mylist) > self.msg = msg > self.mylist = mylist > Exception.__init__(self, msg) >

[Tutor] Question about exception

2007-04-05 Thread Mike Hansen
When doing a try/except block, is it possible to return a list as part of the exception? try: check_someting() except CheckSomethingError, e: for each_error in e: # do something Can 'e' be a list of errors? If so, how do you construct your exception class? Is it better to do it l

Re: [Tutor] cookie expiration date format

2007-03-19 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Luke Paireepinart > Sent: Friday, March 16, 2007 8:31 PM > To: Tim Johnson > Cc: tutor@python.org > Subject: Re: [Tutor] cookie expiration date format > > Tim Johnson wrote: > > Hi: > > I want to be

Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Mike Hansen
I think Dive Into Python has examples of digital to Roman and it might have Roman to digital. Might be worth looking at after you've come up with a solution. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] help:find a string in a text and replace it with a anotherstring

2007-03-07 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of mastjeptor regli > Sent: Wednesday, March 07, 2007 10:34 AM > To: tutor@python.org > Subject: [Tutor] help:find a string in a text and replace it > with a anotherstring > > Hi,folks. > At firs

Re: [Tutor] recommendation for good OO book?

2007-03-07 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jeff Peery > Sent: Wednesday, March 07, 2007 10:15 AM > To: tutor@python.org > Subject: [Tutor] recommendation for good OO book? > > Hello, I've been using python for a few years now and I > rea

[Tutor] FW: isinstance -> instance

2007-02-26 Thread Mike Hansen
Oops...I replied instead of replied all. > -Original Message- > From: Mike Hansen > Sent: Monday, February 26, 2007 2:43 PM > To: 'Bernard Lebel' > Subject: RE: [Tutor] isinstance -> instance > > > > > -Original Message- >

Re: [Tutor] Convert my .bat and .vbs to .py

2007-02-15 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mark Bystry > Sent: Thursday, February 15, 2007 10:04 AM > To: tutor@python.org > Subject: [Tutor] Convert my .bat and .vbs to .py > > Hello, > > This is my first post. I have just begun to code wi

Re: [Tutor] Replying to the tutor-list

2007-02-14 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Rikard Bosnjakovic > Sent: Wednesday, February 14, 2007 9:21 AM > To: tutor@python.org > Subject: [Tutor] Replying to the tutor-list > > All texts that I reply to this list are automatically sent to

Re: [Tutor] VOT - Similar list for Ruby?

2007-02-01 Thread Mike Hansen
> -Original Message- > > Hello all, > > I may be about to switch jobs to an environment in which the main > utility language is Ruby. I've found this group to be brilliant in > the last few years, and wondered if anyone on the list is also a Ruby > user, and could recommend a similarl

Re: [Tutor] Best IDE for Python

2007-01-25 Thread Mike Hansen
> > > Activestate just released Komodo Edit and Komodo IDE. I > believe both do > > auto-completion that shows a list of possibilities. Komodo > Edit is free > > and Komodo IDE cost some $$. > > IMHO: If one programs in more than one programming language, the > ultimate would be an editor/ID

Re: [Tutor] Best IDE for Python

2007-01-25 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Shadab Sayani > Sent: Wednesday, January 24, 2007 8:12 PM > To: tutor@python.org > Subject: [Tutor] Best IDE for Python > > Hi, > I am using vim editor to code my project in python.Is there a > goo

Re: [Tutor] Perfect Python web stack?

2007-01-17 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of OkaMthembo > Sent: Wednesday, January 17, 2007 3:59 AM > To: tutor > Subject: [Tutor] Perfect Python web stack? > > Ok pythonistas! > > Please help me to decide. I might have asked some of you > b

Re: [Tutor] python query

2007-01-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Kapshuk > Sent: Tuesday, January 16, 2007 2:50 AM > To: tutor@python.org > Subject: Re: [Tutor] python query > > Dear All, > > > > My name is Alexander Kapshuk. I'm interested in learn

Re: [Tutor] Creating folders

2007-01-10 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Toon Pieton > Sent: Wednesday, January 10, 2007 2:31 PM > To: tutor > Subject: [Tutor] Creating folders > > Hey friendly users! > > My question is pretty simple. How can I create a folder with > P

Re: [Tutor] need help with sending email

2007-01-05 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of shawn bright > Sent: Friday, January 05, 2007 10:18 AM > To: tutor-python > Subject: [Tutor] need help with sending email > > lo there all. > > i am in a tight spot because i need to send an email

Re: [Tutor] SPE - Stani's Python Editor ?

2007-01-04 Thread Mike Hansen
> -Original Message- > From: OkaMthembo [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 04, 2007 9:18 AM > To: Mike Hansen > Subject: Re: [Tutor] SPE - Stani's Python Editor ? > > have you tried Komodo from ActiveState or Wingware? might be > great

Re: [Tutor] python web dev

2007-01-04 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of OkaMthembo > Sent: Thursday, January 04, 2007 9:12 AM > To: tutor@python.org > Subject: [Tutor] python web dev > > hi pythonistas! > > this is my first post. please could you tell me which is th

Re: [Tutor] SPE - Stani's Python Editor ?

2007-01-03 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Chris Hengge > Sent: Tuesday, January 02, 2007 4:57 PM > To: Dick Moores > Cc: tutor@python.org > Subject: Re: [Tutor] SPE - Stani's Python Editor ? > > I've recently started playing with Eclipse an

Re: [Tutor] Python cgi scripting

2006-12-27 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Troy > Sent: Tuesday, December 26, 2006 10:01 PM > To: tutor@python.org > Subject: [Tutor] Python cgi scripting > > Hello. I'm just starting to learn Python, and want to do some python > cgi script

Re: [Tutor] ***SPAM*** List to dictionary

2006-12-07 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Luke Paireepinart > Sent: Wednesday, December 06, 2006 10:54 PM > To: tutor@python.org > Subject: Re: [Tutor] ***SPAM*** List to dictionary > > Also, why is there now a **SPAM* in the subjec

Re: [Tutor] List to dictionary question

2006-12-06 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Morpheus > Sent: Wednesday, December 06, 2006 9:00 AM > To: tutor@python.org > Subject: [Tutor] List to dictionary question > > I'm new to programming, and trying to learn the Python language. > T

Re: [Tutor] Integer?

2006-12-06 Thread Mike Hansen
> > How can I check if a variable is an integer? > > Luke and John have answered your question, but we should also > ask, why > do you want to do that? Explicit type testing is a code > smell, perhaps > there is a better way to do what you want. > > Kent > Kent, Can you explain further? Re

Re: [Tutor] Why is startfile unavailable on my mac?

2006-12-04 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Cain > Sent: Monday, December 04, 2006 9:52 AM > To: tutor@python.org > Subject: [Tutor] Why is startfile unavailable on my mac? > > When I type the following in macpython IDLE,: > > >>> imp

Re: [Tutor] OT: Vim was: free IDE for Python?

2006-11-17 Thread Mike Hansen
From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 11/16/2006 10:32 PM To: [EMAIL PROTECTED] Cc: tutor@python.org Subject: Re: [Tutor] OT: Vim was: free IDE for Python? Hi Alan, Greetings. Alan Gauld wrote: >> I have to chuckle when you

Re: [Tutor] free IDE for Python?

2006-11-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of William > O'Higgins Witteman > Sent: Thursday, November 16, 2006 12:08 PM > To: tutor@python.org > Subject: Re: [Tutor] free IDE for Python? > > On Thu, Nov 16

Re: [Tutor] how to extract time from datetime.date.time()

2006-11-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Asrarahmed Kadri > Sent: Thursday, November 16, 2006 10:29 AM > To: tutor-python > Subject: [Tutor] how to extract time from datetime.date.time() > > Hi, > > I want to extract hh:mm:ss from below

Re: [Tutor] free IDE for Python?

2006-11-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Wednesday, November 15, 2006 4:49 PM > To: tutor@python.org > Subject: Re: [Tutor] free IDE for Python? > > > "wesley chun" <[EMAIL PROTECTED]> wrote > > Eclipse > >http://p

Re: [Tutor] free IDE for Python?

2006-11-13 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Vadhri, Srinivas > Sent: Monday, November 13, 2006 4:03 PM > To: tutor@python.org > Subject: [Tutor] free IDE for Python? > > Hi > > > > A newbie to Python. What is the free IDE for Python > de

Re: [Tutor] question about __init__ in a class

2006-11-13 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of shawn bright > Sent: Monday, November 13, 2006 11:45 AM > To: tutor-python > Subject: [Tutor] question about __init__ in a class > > Hello there all. > i have a class that i need to load some class

Re: [Tutor] winsound mac

2006-11-10 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of max . > Sent: Friday, November 10, 2006 9:01 AM > To: tutor@python.org > Subject: [Tutor] winsound mac > > i am starting a small useless program i got from the show > lost but cant find > a module

Re: [Tutor] SAX, DOM, XSLT api

2006-11-10 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Picio > Sent: Friday, November 10, 2006 8:03 AM > To: tutor@python.org > Subject: [Tutor] SAX, DOM, XSLT api > > Hello, > what are the equivalent Pyhton tools you suggest to handle: > SAX > DOM > >

Re: [Tutor] First realscript + Game of Life

2006-11-10 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Luke Paireepinart > Sent: Friday, November 10, 2006 12:08 AM > To: Carlos > Cc: tutor@python.org > Subject: Re: [Tutor] First realscript + Game of Life > > > > > Since there has been some talk about

Re: [Tutor] Mapping to object attributes

2006-11-01 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Tuesday, October 31, 2006 4:47 PM > To: tutor@python.org > Subject: Re: [Tutor] Mapping to object attributes > > > "Mike Hansen" <[EMAIL

[Tutor] Mapping to object attributes

2006-10-31 Thread Mike Hansen
I've got a web form with a lot of form fields. I'd like to be able to map the form fields to an object's attributes. I'm having a little trouble figuring out how. I was thinking of something like this.. form = cgi.FieldStorage() widget = Widget() form_field_object_map = {'widget_name' : widget.

Re: [Tutor] Generic Application Frameworks?

2006-10-19 Thread Mike Hansen
[...] I don't believe there's any limitation in python. I suspect it's mostly philosophical. <-- What did you mean by this Mike? import this "Simple is better than complex." "Complex is better than complicated." I'm kind of torn on using frame

Re: [Tutor] Generic Application Frameworks?

2006-10-19 Thread Mike Hansen
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Hengge Sent: Thursday, October 19, 2006 1:22 PM To: PyTutor Subject: Re: [Tutor] Generic Application Frameworks? Just incase anyone doesn't want to see that document to k

Re: [Tutor] python equivalent of perl readlink()?

2006-10-16 Thread Mike Hansen
[...] > > I certainly wouldn't like to see python breaking backwards > compatibility, which is probably my primary gripe about open > source software (although Bell Labs was equally guilty when they > did things like change the ``grep -y'' option to ``grep -i''). > > Bill >From what I understand

Re: [Tutor] Equivalent to perl -e

2006-10-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of wesley chun > Sent: Monday, October 16, 2006 12:51 AM > To: Chris Lasher > Cc: Python Tutor > Subject: Re: [Tutor] Equivalent to perl -e > > > His lab maintains a significant amount of Perl code >

Re: [Tutor] Exception and sys.exit() in a cgi script

2006-10-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Paulino > Sent: Sunday, October 15, 2006 10:10 AM > To: tutor@python.org > Subject: [Tutor] Exception and sys.exit() in a cgi script > > This is a peace of a CGI script i have. > > 1 import cgi > 2

Re: [Tutor] Creating folders in windows...

2006-10-11 Thread Mike Hansen
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Hengge Sent: Wednesday, October 11, 2006 4:00 PM To: Python Tutor Subject: [Tutor] Creating folders in windows... I found this from a 2004

Re: [Tutor] VIM & Python

2006-10-11 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Wednesday, October 11, 2006 2:41 PM > To: tutor@python.org > Subject: Re: [Tutor] VIM & Python > > > I use VIM to write my Python programs. I usually have a shell open > > to run

Re: [Tutor] VIM & Python

2006-10-11 Thread Mike Hansen
> -Original Message- > From: Carlos Hanson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 11, 2006 10:50 AM > To: Mike Hansen > Cc: tutor@python.org > Subject: Re: [Tutor] VIM & Python > > > On Tue, October 10, 2006 1:44 pm, Mike Hansen wrote:

[Tutor] VIM & Python

2006-10-11 Thread Mike Hansen
This is slightly off topic... I use VIM to write my Python programs. I usually have a shell open to run pyflakes on the file I just edited. Is there a way to run pyflakes from within VIM and have it display the errors in another buffer? The :make stuff is confusing me. Mike ___

Re: [Tutor] module loading

2006-10-05 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > Sent: Thursday, October 05, 2006 12:06 AM > To: tutor@python.org > Subject: [Tutor] module loading > > Newbie BioGrad student here (again): > > First, thanks for the help on the

Re: [Tutor] What is a Python "project"?

2006-10-03 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dick Moores > Sent: Tuesday, October 03, 2006 12:41 PM > To: tutor@python.org > Subject: Re: [Tutor] What is a Python "project"? > > At 10:

Re: [Tutor] What is a Python "project"?

2006-10-03 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dick Moores > Sent: Tuesday, October 03, 2006 12:52 AM > To: tutor@python.org > Subject: [Tutor] What is a Python "project"? > > I tried out Wing IDE Personal > (

Re: [Tutor] [Fwd: Re: database web app, what tool?]

2006-10-03 Thread Mike Hansen
> To: Liam Clarke <[EMAIL PROTECTED]> > References: <[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> > > > > Thank you Liam, > > > Our web server is IIS, but it would be no problem to use > another one for this > particular purpose. > > I'v been looking for information on h

Re: [Tutor] module file copy ?

2006-09-21 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave S > Sent: Thursday, September 21, 2006 2:41 PM > To: Python Tutor > Subject: [Tutor] module file copy ? > > OK have I missed it - but which module is file copy in ? I > looked all around > OS

Re: [Tutor] Python CGI Script

2006-09-21 Thread Mike Hansen
> -Original Message- > From: Alan Gauld [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 21, 2006 2:51 AM > To: Mike Hansen; tutor@python.org > Subject: Re: [Tutor] Python CGI Script > > >sql_statement = "INSERT I

Re: [Tutor] Python CGI Script

2006-09-20 Thread Mike Hansen
> -Original Message- > Subject: Re: [Tutor] Python CGI Script > > >query1 = """SELECT ABC FROM %s limit %s,%s"""\ > > % (self.tableid,self.rangeid1,self.rangeid2) > > Just as a note: please don't do this! *grin* > > Don't build query strings up like this:

Re: [Tutor] Hi All

2006-09-05 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Amit Rane > Sent: Saturday, September 02, 2006 4:52 AM > To: tutor@python.org > Subject: [Tutor] Hi All > > Hi , > This is Amit from India ... > i have just started working on Python ... >

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

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] 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] 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] 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] 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] 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] 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] 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] 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] (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] 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] 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] 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] 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] 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

[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

[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

  1   2   >