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)