Python Forum
Init an indefinite number of class
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Init an indefinite number of class
#7
Really, that's nearer as a list comprehension: players = [Player() for _ in range(1, x + 1)]
Reply


Messages In This Thread
RE: Init an indefinite number of class - by ndc85430 - Feb-18-2022, 01:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Which GUI can have indefinite loop ? jst 20 1,909 Nov-16-2023, 10:23 PM
Last Post: jst
  PyRun_SimpleFile calling multiprocessing Python Class cause endless init loop Xeno 2 1,083 Sep-19-2022, 02:32 AM
Last Post: Xeno
  Basic Inheritance, Why Use init udinjelek 5 2,216 Sep-29-2021, 06:03 PM
Last Post: deanhystad
  Indefinite loop ( I think ) marsh20 2 1,971 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,328 May-27-2020, 10:00 AM
Last Post: snippsat
  Is it mandatory to call superclass init inside the class init? psolar 3 6,127 Feb-14-2020, 09:16 PM
Last Post: wavic
  indefinite loop Johnygo 3 2,157 Jul-03-2019, 12:53 PM
Last Post: Johnygo
  init vs_init_ while defining method/function? hsunteik 1 3,676 Dec-24-2016, 08:27 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020