[Tutor] NYC Python User Group Meeting Announcement....

2008-05-29 Thread John Clark
users group wiki page: http://www.nycpython.org Hope to see you there! -John Clark ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] NYC Python Users Meetup February Meeting Announcement....

2008-02-08 Thread John Clark
Please pardon the PSA: The New York City Python Users Meetup Group is planning on having our February meeting on February 12th, from 6:30pm - 8:00pm. For more information, please see: http://python.meetup.com/172/calendar/7082384/ Anyone in the NYC area interested in using Python, learning m

[Tutor] New York City Python Users Group Meeting - Tuesday May 8th

2007-05-03 Thread John Clark
Greetings! The next New York City Python Users Group meeting is this Tuesday, May 8th, 6:30pm at at the Millennium Partners office at 666 Fifth Avenue (53rd St. and 5th Ave.) on the 8th Floor. We welcome all those in the NYC area who are interested in Python to attend. However, we need a list of f

Re: [Tutor] Exceptions while dealing with MySQL

2007-04-22 Thread John Clark
he objects in the domain of the solution? I know that there is a text book out there called "Database Access Patterns", can anyone provide a recommendation or a critique of the book? Are there other (better) references I should be consulting in designing the da

[Tutor] ANN: Next NYC Python User Group meeting, Tues May 8th, 2007, 6:30 pm

2007-04-11 Thread John Clark
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Clark Sent: Wednesday, April 04, 2007 3:46 PM To: python-list@python.org; [EMAIL PROTECTED]; tutor@python.org Subject: New York City Python Users Group Meeting Greetings! The next New York City Python Users Group meeting

Re: [Tutor] Addressing a variable whose name is the value of a string

2007-04-08 Thread John Clark
Bob Gailer wrote: >Andreas Pfrengle wrote: >> Hello, >> >> I want to change the value of a variable whose name I don't know, but >> this name is stored as a string in another variable, like: >> >> x = 1 >> var = 'x' >> >> Now I want to change the value of x, but address it via var. > >exec is the

Re: [Tutor] windows and python and shebangs, oh my!

2007-04-05 Thread John Clark
Be aware that by default the Apache web server _WILL_ use the shebang line even when running on Windows to try to find the Python interpreter when python is run as a CGI script. There is a setting in the configuration file that controls whether to use the shebang line or to reference the window

[Tutor] New York City Python Users Group Meeting

2007-04-04 Thread John Clark
Greetings! The next New York City Python Users Group meeting is this Tuesday, April 10th, 6:30pm at at the Millennium Partners office at 666 Fifth Avenue (53rd St. and 5th Ave.) on the 8th Floor. We welcome all those in the NYC area who are interested in Python to attend. However, we need a list o

[Tutor] Nested list comprehensions

2006-05-05 Thread John Clark
Hello Tutors, I am having trouble wrapping my mind around nested list comprehensions and am hoping that someone can either verify my thinking or provide insight as to what I am doing wrong. I have a list of objects C1 and each object in the list has a method m() that will return a list of sub

[Tutor] Help with re.sub()

2006-03-16 Thread John Clark
Hi, I have a file that is a long list of records (roughly) in the format [EMAIL PROTECTED] So, for example: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] What I would like to do is run a regular expression against this and wind up with: [EMAIL

Re: [Tutor] Generator function question?

2005-05-08 Thread John Clark
Jacob, The "z loop" is in fact just to take time while the screen refreshes with each output of the status character - as someone else pointed out I could use a wait() call as well - if I don't put something there to eat up time, I don't get to display the "spinning wheel" produced by the sys.std

Re: [Tutor] Generator function question?

2005-05-07 Thread John Clark
hearing about it, I thank Max and Karl for their guidance... -jdc On 5/7/05 10:06 AM, "Max Noel" <[EMAIL PROTECTED]> wrote: > > On May 7, 2005, at 13:22, John Clark wrote: > >> (Either that, or I am not following what you mean when you say: >> >>

Re: [Tutor] Generator function question?

2005-05-07 Thread John Clark
t removes the need for the client code to call .next() to get the next status character. However, this is my first foray into the world of function attributes and local functions, so this may not be the best way to do this - any suggestions / critiques? Thanks, -jdc On 5/7/05 8:00 AM, "Max

Re: [Tutor] Generator function question?

2005-05-07 Thread John Clark
Ooops - sorry - I spoke too soon... It's clear that your code is a more elegant implementation of neverEndingStatus() but I am still having to initialize a global variable and call .next() when I want to get the next value... So the generator function has been cleaned up, but the client code inter

Re: [Tutor] Generator function question?

2005-05-07 Thread John Clark
Lightbulb! It's clear that I don't yet fully understand the power of generator functions... It never occurred to me to yield out of the middle of a loop, and yet, seeing your code, it's obvious that that's one of the primary purposes of "yield". Thanks, -jdc On 5/7/05 8:00 AM, "Max Noel" <[EMAI

[Tutor] Generator function question?

2005-05-07 Thread John Clark
Hello, I am working on learning Python and writing some console applications to apply what I am learning - I am using a generator function to implement a status indicator as follows: import sys def neverEndingStatus(currentChar_ = '|'): while 1: if currentChar_ == '|':