mayank0110 / pynguin

Automatically exported from code.google.com/p/pynguin
GNU General Public License v3.0
0 stars 0 forks source link

easy way to find out the number of pynguins total #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
len(Pynguin.mw.pynguins) stored in pynguins?  Or maybe easy/global access to 
the scene?

What version of the product are you using? On what operating system?
HEAD/Ubuntu 9.10

Original issue reported on code.google.com by aresnick...@gmail.com on 17 Jul 2010 at 7:56

GoogleCodeExporter commented 9 years ago
how about just len(pynguins) ?

Original comment by miss...@hotmail.com on 17 Jul 2010 at 9:31

GoogleCodeExporter commented 9 years ago
Yeah!

Original comment by aresnick...@gmail.com on 17 Jul 2010 at 10:18

GoogleCodeExporter commented 9 years ago
Also, remember that you may not really need the # of pynguins, especially if 
all you want to do is perform some action with each one...

for pyn in pynguins:
    some_func(pyn)
    pyn.some_method()

Original comment by miss...@hotmail.com on 31 Jul 2010 at 4:53