Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45931
| References | <CAEcwjcx6WtUMTg=QpqjEZ3fyfUhOLWQ2v-pF4qQ9ypFd3DtByA@mail.gmail.com> <CAGGBd_okY709NyG0BBZSHzv709oTAUNbicMgfOMjo3LjFDipwQ@mail.gmail.com> <CAEcwjcyFYMg6sxND7XE6cKOkab3HB2nA89CBJLp2Cq9g5F3h-A@mail.gmail.com> <20130524181940.620d18ad@bigbox.christie.dr> |
|---|---|
| Date | 2013-05-24 20:02 -0400 |
| Subject | Re: Prepending string "@" to usernames |
| From | Thomas Murphy <thomasmurphymusic@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2090.1369440146.3114.python-list@python.org> (permalink) |
> Which can be tidily written as a list comprehension: > > final_address = ['@' + address for address in raw_address.split()] > > -tkc > > Ah! Thanks Tim…that tidiness is something I'm trying to head towards in my own code. I'm trying to transition from the need to visually write every little step out and write in these more powerful chunks. -- Sincerely, Thomas Murphy Code Ninja 646.957.6115
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Prepending string "@" to usernames Thomas Murphy <thomasmurphymusic@gmail.com> - 2013-05-24 20:02 -0400
csiph-web