Re: [Tutor] List slicing and joining

2007-04-11 Thread Andreas Kostyrka
* Ben Sherman <[EMAIL PROTECTED]> [070411 22:02]: > I've got a list that contain a bunch of information, including the > FQDN of a host. > > host_data=['foo.example.com', 'other unimportant data'] > > I need to seperate the hostname from the domain name. > > This is how I'm doing it, and it work

[Tutor] List slicing and joining

2007-04-11 Thread Ben Sherman
I've got a list that contain a bunch of information, including the FQDN of a host. host_data=['foo.example.com', 'other unimportant data'] I need to seperate the hostname from the domain name. This is how I'm doing it, and it work, but it seems *really* hacky. Is there a better (or more pythony)

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

2007-04-11 Thread Alan Gauld
"Kent Johnson" <[EMAIL PROTECTED]> wrote > Also the TurboGears book is 51% off: > http://www.bookpool.com/sm/0132433885 FWIW I've just finished this one and its pretty good but full of bad typos and inconsistencies(*). If you bear with it and type in the examples it starts to become obvious whe

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

2007-04-11 Thread Kent Johnson
Luke Paireepinart wrote: > John Clark wrote: >> My apologies for the comical timing of the below announcement - I >> actually sent the announcement on April 4th, but it obviously didn't >> clear the moderator's desk in time for the meeting mentioned below. >> In an attempt to avoid this same pr

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

2007-04-11 Thread Luke Paireepinart
John Clark wrote: > My apologies for the comical timing of the below announcement - I > actually sent the announcement on April 4th, but it obviously didn't > clear the moderator's desk in time for the meeting mentioned below. > In an attempt to avoid this same problem, let me announce next mon

[Tutor] Python books on sale

2007-04-11 Thread Kent Johnson
For anyone interested in a copy of Wesley Chun's recently updated book Core Python Programming, it is 50% off at bookpool.com at the moment: http://www.bookpool.com/sm/0132269937 Also the TurboGears book is 51% off: http://www.bookpool.com/sm/0132433885 Kent _

Re: [Tutor] File storage vs DB storage.

2007-04-11 Thread Christopher Arndt
OkaMthembo schrieb: > Indeed, using directories may be a better bet when there are many files > involved. At least, this has been my feeling, and i gather the same from > your replies. I suggest that you take a look at a database abstraction layer or ORM like SQLAlchemy [1], that makes handling th

Re: [Tutor] File storage vs DB storage.

2007-04-11 Thread Alan Gauld
"OkaMthembo" <[EMAIL PROTECTED]> wrote > I'll be using Lighttpd + FastCGI + Python + MySQL on > Win. XP SP2. Any known caveats of this combo > before i plunge? That should be fine I think. Alan G. ___ Tutor maillist - Tutor@python.org http://mail.

Re: [Tutor] urllib2_realm??

2007-04-11 Thread Kent Johnson
govind goyal wrote: > > Hi, > > Use of Basic HTTP Authentication: > > import urllib2 > auth_handler.add_password(*'realm'*, 'host', 'username', 'password') > > What is realm and its use in above line of code? Realm is set by the host. It is usually displayed in the login dialog in a browser

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

2007-04-11 Thread John Clark
My apologies for the comical timing of the below announcement - I actually sent the announcement on April 4th, but it obviously didn't clear the moderator's desk in time for the meeting mentioned below. In an attempt to avoid this same problem, let me announce next month's meeting now. The next

[Tutor] urllib2_realm??

2007-04-11 Thread govind goyal
Hi, Use of Basic HTTP Authentication: import urllib2 auth_handler.add_password(*'realm'*, 'host', 'username', 'password') What is realm and its use in above line of code? If I want to access a web page and I don't know what the realm is,then what should I write in place of realm? Can anybody

Re: [Tutor] File storage vs DB storage.

2007-04-11 Thread OkaMthembo
Thanks, gentlemen. Indeed, using directories may be a better bet when there are many files involved. At least, this has been my feeling, and i gather the same from your replies. I'll be using Lighttpd + FastCGI + Python + MySQL (maybe PostGRE here) on Win. XP SP2. Any known caveats of this combo