List of Objects

Steve Holden steve at holdenweb.com
Fri Apr 20 00:52:21 EDT 2007


Steven D'Aprano wrote:
[...]
> 
> Forth method: create identical gazelles, then modify them:
> 
> list_of_beasties = [Gazelle(defaults) for i in xrange(1000)]
> for i, beastie in enumerate(xrange(1000)):
>     list_of_beasties[i] = modify(beastie)
> 
Nope, 'sorry, that's Python a's well. Forth u'se's rever'se Poli'sh 
notation.

regard's
  "Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb     http://del.icio.us/steve.holden
Recent Ramblings       http://holdenweb.blogspot.com




More information about the Python-list mailing list