Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
class and runtime
#3
(Mar-15-2024, 08:02 AM)akbarza Wrote: can explain this statement? what is the importance of the creation of a class in runtime? how can a class be modified after creation?

This is not possible with static compiled languages. During the compilation, the compiler needs to know exactly all data types.
A dynamic language allows creation of objects during runtime. In Python, classes are also objects.

This allows to create or change behavior of classes (types), but not everything which is possible, is done.
akbarza likes this post
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
class and runtime - by akbarza - Mar-15-2024, 08:02 AM
RE: class and runtime - by deanhystad - Mar-15-2024, 08:35 AM
RE: class and runtime - by DeaD_EyE - Mar-15-2024, 10:25 AM
RE: class and runtime - by akbarza - Mar-16-2024, 11:34 AM
RE: class and runtime - by deanhystad - Mar-16-2024, 01:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extract args=, value that was passed to Multiprocessing.Proc object during runtime? haihal 1 599 Dec-08-2024, 07:04 AM
Last Post: Gribouillis
  change dataclass to frozen at runtime jpanico 2 1,021 Oct-06-2024, 09:38 AM
Last Post: snippsat
  painfully slow runtime when handling data dadazhu 3 2,001 Jan-20-2023, 07:11 PM
Last Post: snippsat
  Big O runtime nested for loop and append yarinsh 4 2,748 Dec-31-2022, 11:50 PM
Last Post: stevendaprano
  Reducing runtime memory usage in Cpython interpreter david_the_graower 2 2,952 Oct-18-2021, 09:56 PM
Last Post: david_the_graower
  Object reference in Dict - not resolved at runtime benthomson 2 2,533 Apr-02-2020, 08:50 AM
Last Post: benthomson
  PyCharm asking for VC++ runtime 14.0 whereas I have already installed VC++ 19.0 SarmadiRizvi 1 2,447 Apr-02-2020, 06:17 AM
Last Post: snippsat
  EOFError: EOF when reading a line - Runtime Error RavCOder 6 11,503 Sep-27-2019, 12:22 PM
Last Post: RavCOder
  Different runtime programs mhvozdesky 1 66,364 Oct-24-2018, 02:50 PM
Last Post: ichabod801
  PyDev package install/download at runtime user2103 0 2,921 Jan-30-2018, 08:39 AM
Last Post: user2103

Forum Jump:

User Panel Messages

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