Feb-18-2022, 01:48 PM
Really, that's nearer as a list comprehension:
players = [Player() for _ in range(1, x + 1)]
Init an indefinite number of class
|
|
Messages In This Thread |
Init an indefinite number of class - by MathisDELAGE - Feb-18-2022, 01:20 PM
RE: Init an indefinite number of class - by ndc85430 - Feb-18-2022, 01:35 PM
RE: Init an indefinite number of class - by MathisDELAGE - Feb-18-2022, 01:38 PM
RE: Init an indefinite number of class - by dboxall123 - Feb-18-2022, 01:40 PM
RE: Init an indefinite number of class - by MathisDELAGE - Feb-18-2022, 01:43 PM
RE: Init an indefinite number of class - by MathisDELAGE - Feb-18-2022, 06:46 PM
RE: Init an indefinite number of class - by ndc85430 - Feb-18-2022, 01:41 PM
RE: Init an indefinite number of class - by ndc85430 - Feb-18-2022, 01:48 PM
RE: Init an indefinite number of class - by dboxall123 - Feb-18-2022, 01:55 PM
RE: Init an indefinite number of class - by deanhystad - Feb-18-2022, 07:49 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Which GUI can have indefinite loop ? | jst | 20 | 2,074 |
Nov-16-2023, 10:23 PM Last Post: jst |
|
PyRun_SimpleFile calling multiprocessing Python Class cause endless init loop | Xeno | 2 | 1,131 |
Sep-19-2022, 02:32 AM Last Post: Xeno |
|
Basic Inheritance, Why Use init | udinjelek | 5 | 2,275 |
Sep-29-2021, 06:03 PM Last Post: deanhystad |
|
Indefinite loop ( I think ) | marsh20 | 2 | 2,006 |
Aug-20-2020, 12:33 PM Last Post: deanhystad |
|
Error: How to to close and restart your shell after running 'conda init' | angelica | 3 | 10,389 |
May-27-2020, 10:00 AM Last Post: snippsat |
|
Is it mandatory to call superclass init inside the class init? | psolar | 3 | 6,252 |
Feb-14-2020, 09:16 PM Last Post: wavic |
|
indefinite loop | Johnygo | 3 | 2,212 |
Jul-03-2019, 12:53 PM Last Post: Johnygo |
|
init vs_init_ while defining method/function? | hsunteik | 1 | 3,699 |
Dec-24-2016, 08:27 AM Last Post: micseydel |