Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45931 > unrolled thread

Re: Prepending string "@" to usernames

Started byThomas Murphy <thomasmurphymusic@gmail.com>
First post2013-05-24 20:02 -0400
Last post2013-05-24 20:02 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Prepending string "@" to usernames Thomas Murphy <thomasmurphymusic@gmail.com> - 2013-05-24 20:02 -0400

#45931 — Re: Prepending string "@" to usernames

FromThomas Murphy <thomasmurphymusic@gmail.com>
Date2013-05-24 20:02 -0400
SubjectRe: Prepending string "@" to usernames
Message-ID<mailman.2090.1369440146.3114.python-list@python.org>
> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web