RE: Learning Python book, new edition?

2007-01-12 Thread Demel, Jeff
John wrote: >So what happens with google bots etc... Information provided >in the email could be helpful to others that are NOT the original > recipient. And what happens to the archive stuff? I will forward your response to our crack legal department. Perhaps they can help you with your very

RE: Learning Python book, new edition?

2007-01-11 Thread Demel, Jeff
>Demel, Jeff wrote: >> Does anyone know if there's a plan in the works for a new edition of >> Learning Python? The current edition (2nd) is a few years old and >> looks like it only covers Python 2.3. Björn replied: >IIRC, differences to 2.4 are in it, too. In

Learning Python book, new edition?

2007-01-11 Thread Demel, Jeff
Does anyone know if there's a plan in the works for a new edition of Learning Python? The current edition (2nd) is a few years old and looks like it only covers Python 2.3. Anyone on the list have Lutz's ear? -Jeff This email is intended only for the individual or entity to which it is addresse

RE: Learning to program in Python

2007-01-05 Thread Demel, Jeff
If I were you, I'd think up a project and just build it. The best way to really learn is to do, at least for me. If you run into problems, then you can come back and ask the group here. Believe me, I've asked some very basic questions, and everyone's been very friendly and helpful. As an EE maj

RE: Python v PHP: fair comparison?

2006-11-16 Thread Demel, Jeff
> Walterbyrd wrote: >> Okay, where can I get Python and Apache 2.X for $10 a year? > I replied: > Webfaction.com Tkc then came back with: >Um, I think you're off by an order of magnitude. Walterbyrd asked > about $10/*year* and webfaction.com charges $7.50/*month*. >Well, I suppose if one only

RE: Python v PHP: fair comparison?

2006-11-16 Thread Demel, Jeff
Walterbyrd wrote: >Okay, where can I get Python and Apache 2.X for $10 a year? Webfaction.com This email is intended only for the individual or entity to which it is addressed. This email may contain information that is privileged, confidential or otherwise protected from disclosure. Disseminat

RE: Python v PHP: fair comparison?

2006-11-15 Thread Demel, Jeff
-Original Message- Behalf Of walterbyrd The problem is that the system requirements for django and turbogears are sky-high. I think Django requires Apache 2.0 (and maybe mod_python 3.x), and CherryPy (part of turbogears) requires Python 2.4. If you are developing for a hosted environment,

Noob | datetime question

2006-11-14 Thread Demel, Jeff
I'm having trouble finding exactly what I need by googling, so thought I'd try to get a quick answer from the group. This seems like something that should be dead simple. I need to generate a string value of a date in the format MMDD that is 97 days in the future. The datetime module is bran

RE: Noob | datetime question

2006-11-14 Thread Demel, Jeff
import time FORMAT='%Y%m%d' time.strftime(FORMAT,time.gmtime(time.time()+8380800)) output = '20070219' -- Kevin Kelley On 11/14/06, Demel, Jeff <[EMAIL PROTECTED]> wrote: I'm having trouble finding exactly what I need by googling, so thought I'

RE: invert or reverse a string... warning this is a rant

2006-10-20 Thread Demel, Jeff
>Demel, Jeff wrote: >> I've been programming professionally for over 10 years, and have never >> once needed to reverse a string. Maybe it's a lack of imagination on >> my part, but I can't think of a single instance this might be necessary. Carl wrote:

RE: invert or reverse a string... warning this is a rant

2006-10-20 Thread Demel, Jeff
Paul wrote: >"".join(sum(map(list,zip(s,s[len(s)/2:])),[])) > >perhaps? Not quite as elegant as a "string.shuffle" would be, am I right? -Jeff This email is intended only for the individual or entity to which it is addressed. This email may contain information that is privileged, confidential

RE: OT--Shuffling, was Re: invert or reverse a string... warning thisis a rant

2006-10-19 Thread Demel, Jeff
J.Clifford Dyer wrote: >To my mind that would be the exact opposite of shuffling a deck >of cards. In your case, each time, you know exactly which stack >the card comes from, but not which card out of the stack. When >you shuffle cards, it's more like you know exactly which card is > coming n

RE: invert or reverse a string... warning this is a rant

2006-10-19 Thread Demel, Jeff
[EMAIL PROTECTED] wrote: >ONE usage... The old intro-to-programming Palindrome detector >becomes a very simple assignment given an easy means of >reversing a string (vs the "expected" loop comparing from >the ends in to the center) Ok, let me re-phrase: ...[snip]... I've been programming profe

RE: invert or reverse a string... warning this is a rant

2006-10-19 Thread Demel, Jeff
John Salerno wrote: >'m not steeped enough in daily programming to argue that it sn't >necessary, but my question is why do you need to reverse strings? Is it >something that happens often enough to warrant a method for it? I've been programming professionally for over 10 years, and have never o

RE: invert or reverse a string... warning this is a rant

2006-10-19 Thread Demel, Jeff
John Salerno wrote: >'m not steeped enough in daily programming to argue that it >sn't necessary, but my question is why do you need to >reverse strings? Is it something that happens often enough >to warrant a method for it? I've been programming professionally for over 10 years, and have never

RE: Where is Python in the scheme of things?

2006-10-04 Thread Demel, Jeff
Tim Chase wrote: > >Visual Basic compared to Python >--- >VB shares some interesting aspects with Python...namely it's much >more readable than the other two. It's syntax is clunky at best, >with goto's, and cobbled-on exception handling (at least in >VB-Classic, as oppo