POV-Ray : Newsgroups : povray.off-topic : Programming style question - specifically Python : Re: Programming style question - specifically Python Server Time
29 Jul 2024 14:25:54 EDT (-0400)
  Re: Programming style question - specifically Python  
From: Darren New
Date: 17 Aug 2011 22:45:44
Message: <4e4c7cd8@news.povray.org>
Hmm.

     y = (x for x in List)
     if some_funk(y) or some_other_func(y) and a_third_func(y):

Why would you even want to calculate (x for x in List) three times?

Or am I misunderstanding "x for x in List"? Isn't that a list comprehension 
in Python?

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.